[英]Xcode: build failed: error message
我正在构建和运行Xcode应用程序,但是由于以下错误消息,我收到了构建失败消息:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SFAccountManager", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_SFApplication", referenced from:
objc-class-ref in main.o
"_OBJC_CLASS_$_SFAuthenticationManager", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_SFLogger", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_SFRestAPI", referenced from:
objc-class-ref in OrderVC.o
objc-class-ref in PerformanceVC.o
objc-class-ref in CustomerDetailsVC.o
objc-class-ref in AppDelegate.o
"_kSFLoginHostChangedNotification", referenced from:
-[AppDelegate init] in AppDelegate.o
-[AppDelegate dealloc] in AppDelegate.o
"_kSFUserLogoutNotification", referenced from:
-[AppDelegate init] in AppDelegate.o
-[AppDelegate dealloc] 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)
如何解决这个/这些问题?
我将您项目中的Architectures
设置为$(ARCHS_STANDARD_32_BIT)
,这将对iOS版本和OS X /模拟器版本都做正确的事情。
问题是您的库不是针对x86_64构建的,但是您的项目正在尝试针对i386和x86_64进行构建,因此链接步骤失败。 苹果将Xcode 5.1中的默认体系结构更改为包括64位体系结构。
有关更多信息,请参见以下其他问题:
在xcode中单击您的项目并转到构建设置->有效架构并删除arm64
还将Standard Architectures
更改为armv7和armv7s。清理并重新运行该项目
看起来您需要在项目中包括Salesforce Mobile SDK iOS框架。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.