3
我收到兩個錯誤在我的項目中添加解析後:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ParseClientConfiguration", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
步驟我跟着如下:
下載從 解析iOS SDK https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/releases
在項目中手動解析iOS SDK
添加#進口在AppDelegate.m
,然後在加入didFinishLaunchingWithOptions下面的代碼。
[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
configuration.applicationId = @"YOUR_APP_ID";
configuration.clientKey = @"YOUR_APP_CLIENT_KEY";
configuration.server = @"http://localhost:1337/parse";
}]];
注:因爲當我通過吊艙安裝FBSDKCoreKit,螺栓被添加作爲一個依賴我沒加Bolts.Framework。
請在開啓新問題前使用谷歌搜索問題。這是問題[未定義的架構符號](https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/477) – Nazir
爲什麼不通過pod添加SDK? – Cliffordwh
通過Pod安裝Parse還會安裝與作爲FBSDKCoreKit的依賴項安裝的Bolts衝突的Bolts。 –