在我的项目中添加Parse后出现两个错误:
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)我遵循的步骤如下:
从https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/releases下载解析iOS SDK
在Project中手动添加了Parse iOS SDK
在AppDelegate.m中添加了#import
然后在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"; }]];注意:我没有添加Bolts.Framework,因为当我通过Pod安装FBSDKCoreKit时,Bolts被添加为依赖项。
I am getting two errors after adding Parse in my Project:
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)Steps I followed are as follows:
Downloaded Parse iOS SDK from https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/releases
Added Parse iOS SDK manually in Project
Added #import in AppDelegate.m
and then added the code below in 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"; }]];Note: I did not add Bolts.Framework because when I install FBSDKCoreKit via Pod, Bolts is added as a dependency.
最满意答案
我通过pod安装Parse SDK并手动添加FBSDKCoreKit解决了这个问题(但没有添加Bolts框架)。 Parse和FBSDKCoreKit都需要螺栓但版本不同。 我相信FBSDKCoreKit会安装旧版本的Bolts,而Parse需要更新的版本,这就是问题所在。
I solved this issue by installing Parse SDK via pod and adding FBSDKCoreKit manually (but did not add Bolts framework). Parse and FBSDKCoreKit both require Bolts but different versions. I believe that FBSDKCoreKit installs older version of Bolts while Parse needs newer version and that was the issue.
更多推荐
发布评论