我按照快速入门教程解决了需要 Facebook SDK 的问题(即使我没有使用 Facebook),但出于某种原因,即使我使用的 Parse SDK 版本应该与 64 位架构兼容,我我收到错误消息,指出它无法为我的 iPhone 5S 的 64 位架构编译...
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_PFAnalytics", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_Parse", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
它崩溃的代码是我刚刚设置 Parse 对象和分析时:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Parse setApplicationId:@"MyAppID"
clientKey:@"MyClientID"];
[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];
return YES;
}
我的Other Linker Flags
包含-ObjC
和我的Standard Architectures
&Valid Architectures
都包含arm64
, armv7s
, &armv7