gpt4 book ai didi

ios - 从 xcode 9.2 升级到 xcode 9.4.1 后链接器命令失败

转载 作者:行者123 更新时间:2023-11-30 11:14:48 26 4
gpt4 key购买 nike

我将 XCode 从 9.2 升级到 9.4.1,现在收到此错误:

ld: Assertion failed: (target->definition() != ld::Atom::definitionProxy), function addDyldInfo, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-351.8/src/ld/OutputFile.cpp, line 4213.

编辑:这是详细的错误消息。

Ld/Users/Regis/Library/Developer/Xcode/DerivedData/UmtPlus-gotzoynnllcwircryjfseogfutkh/Build/Products/Debug-iphoneos/UmtPlus.app/UmtPlus 正常arm64 cd“/Users/Regis/Dropbox/Laubrass/Mac/UmtPlus V19/devRS_UmtPlus” 导出 IPHONEOS_DEPLOYMENT_TARGET=8.2 导出路径=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11。 4.sdk -L/Users/Regis/Library/Developer/Xcode/DerivedData/UmtPlus-gotzoynnllcwircryjfseogfutkh/Build/Products/Debug-iphoneos -F/Users/Regis/Library/Developer/Xcode/DerivedData/UmtPlus-gotzoynnllcwircryjfseogfutkh/Build/产品/调试-iphoneos -filelist/Users/Regis/Library/Developer/Xcode/DerivedData/UmtPlus-gotzoynnllcwircryjfseogfutkh/Build/Intermediates.noindex/UmtPlus.build/Debug-iphoneos/UmtPlus.build/Objects-normal/arm64/UmtPlus。 LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.2 -dead_strip -Xlinker -object_path_lto -Xlinker/Users/Regis/Library/Developer/Xcode/DerivedData/UmtPlus-gotzoynnllcwircryjfseogfutkh/Build/Intermediates.noindex/UmtPlus.build/Debug-iphoneos/UmtPlus.build/Objects-normal/arm64/UmtPlus_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker/Users/Regis/Library/Developer/Xcode/DerivedData/UmtPlus-gotzoynnllcwircryjfseogfutkh/Build/Intermediates.noindex/UmtPlus.build/Debug-iphoneos/UmtPlus.build/Objects-normal/arm64/UmtPlus.swiftmodule -lz -lsqlite3 -weak_framework 语音 -Xlinker -dependency_info -Xlinker/Users/Regis/Library/Developer/Xcode/DerivedData/UmtPlus-gotzoynnllcwircryjfseogfutkh/Build/Intermediates.noindex/UmtPlus.build/Debug-iphoneos/UmtPlus.build/Objects-normal/arm64/UmtPlus_dependency_info.dat -o/Users/Regis/Library/Developer/Xcode/DerivedData/UmtPlus-gotzoynnllcwircryjfseogfutkh/Build/Products/调试-iphoneos/UmtPlus.app/UmtPlus

0 0x106e252c0 __assert_rtn + 1291 0x106e9b82e ld::tool::OutputFile::addDyldInfo(ld::Internal&, ld::Internal::FinalSection, ld::Atom const, ld::Fixup, ld::Fixup, ld::Fixup, ld::原子常量,ld::原子常量*,无符号长整型,无符号长整型)+ 32442 0x106e901e9 ld::工具::输出文件::生成LinkEditInfo(ld::内部&) + 12153 0x106e8ab3a ld::工具::输出文件::写入(ld::内部&) + 1164 0x106e26254 主 + 1146链接器快照创建于: /tmp/UmtPlus-2018-07-15-074029.ld-snapshotld:断言失败:(target->definition()!= ld::Atom::definitionProxy),函数addDyldInfo,文件/Library/Caches/com.apple.xbs/Sources/ld64/ld64-351.8/src/ld/OutputFile.cpp,第 4213 行。clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

最佳答案

这可能是由于命令行工具而发生的。尝试 Xcode -> 首选项 -> 位置并将命令行工具设置为 Xcode 9.3。

关于ios - 从 xcode 9.2 升级到 xcode 9.4.1 后链接器命令失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51848729/

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