gpt4 book ai didi

ios - Xcode:构建失败:错误消息

转载 作者:行者123 更新时间:2023-11-28 18:19:53 25 4
gpt4 key购买 nike

我正在构建并运行我的 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 构建,因此链接步骤失败。 Apple 更改了 Xcode 5.1 中的默认架构以包含 64 位架构。

有关更多信息,请参阅这些其他问题:

关于ios - Xcode:构建失败:错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22593334/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com