尝试在watchOS2应用程序中使用Parse时出错

时间:2015-09-06 14:57:59

标签: ios objective-c parse-platform watch-os-2

我尝试使用可可豆荚将Parse添加到watchOS2 App这里是pod文件

target 'OS2Test WatchKit Extension' do
    pod 'Parse',                    '~> 1.8.2'
end

编译时出现以下错误:

In file included from ~/Xcode_Projects/OS2Test/OS2Test WatchKit Extension/InterfaceController.m:10:
In file included from ~/Xcode_Projects/OS2Test/Pods/Headers/Public/Parse/Parse.h:36:
~/Xcode_Projects/OS2Test/Pods/Headers/Public/Parse/PFPurchase.h:11:9: fatal error: 'StoreKit/StoreKit.h' file not found
#import <StoreKit/StoreKit.h>
        ^
1 error generated.

似乎StoreKit框架无法添加到应用程序中,因此是否有支持watchOS2的解析版本?或者什么?

1 个答案:

答案 0 :(得分:0)

您确定Pods项目中存在StoreKit.h文件吗?通常我做的是安装pod,只需导入我想要使用的头文件,而不必先导入类。只需尝试安装pod:

#import "Storekit.h"