gpt4 book ai didi

swift - Xcode 7.3 升级到 8.3.1 后链接器错误

转载 作者:行者123 更新时间:2023-11-30 12:32:00 25 4
gpt4 key购买 nike

将 Xcode 从 7.3 升级到 8.3.1 后,我遇到链接器错误,以下是项目构建时出现的错误:

    Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$__TtCC13Test11AppDelegate12loggedinUser", referenced from:
objc-class-ref in UIView+Toast.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

build设置中的架构设置: enter image description here

编译源: enter image description here enter image description here请帮忙。提前致谢。

最佳答案

检查您的 TestAppDelegate 类,尤其是属性 loggedinUser。应该有一些线索。

这可能是一个问题,您正在编译的目标正在使用 UIView+Toast 文件,这需要同时编译 TestAppDelegate。检查您的项目设置 -> 构建阶段 -> 编译源并检查是否有任何条目呈红色(路径下丢失)或不存在,然后重新添加它们。

关于swift - Xcode 7.3 升级到 8.3.1 后链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43411398/

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