gpt4 book ai didi

ios - 归档我的项目时出现 Apple Mach-O 链接器错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:28:23 25 4
gpt4 key购买 nike

我正在尝试归档我的第一个 iOS 项目,但出现以下错误。我用于身份验证的 Facebook SDK 和 Google Plus SDK 似乎有问题。我在 stackoverflow 上遇到过类似的问题,但没有一个解决方案对我有帮助。任何帮助,将不胜感激。提前致谢。

<pre>
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_GTMLogger", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_GTLQueryPlus", referenced from:
objc-class-ref in LoginViewController.o
"_kGTLAuthScopePlusLogin", referenced from:
-[LoginViewController getInfoForGoogle] in LoginViewController.o
"_OBJC_CLASS_$_GTLServicePlus", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_GPPURLHandler", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_GPPSignIn", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in LoginViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</pre>

最佳答案

您正在使用的框架不是 arm64 就绪的,即不适用于 64 位设备,您可以检查是否有更新的框架可用,或者从您的构建中排除 arm64

将build settings中的architecture设置为Standard architectures(armv7,armv7s)

Xcode 5 and iOS 7: Architecture and Valid architectures

关于ios - 归档我的项目时出现 Apple Mach-O 链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22835122/

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