我最近改变了我的项目名称,并相信我可能会遇到链接问题。我昨天为Mixpanel修改了我的Cocoapod文件,并且自那以来一直收到不清楚的错误消息。
我删除了Mixpanel Cocoapod,因此我可以使用git存储库手动安装Mixpanel。我在iOS项目目录中安装了git repo文件,但无法使Mixpanel正常工作。我决定恢复使用Cocoapod。
自从我做了这个改变之后,我一直在接受命令失败',' GenerateDSYMFile错误'以及' Lipo错误'。在问题出现之前,我已经将我的整个git repo还原回来,但我似乎无法摆脱错误。
我删除了派生数据,快照和重新启动的xcode。我甚至试图在另一台计算机上运行相同的文件存储库。我仍然有问题。
对于好奇的人来说,存储库位于:https://github.com/NewPublicArtFoundation/GraffitiFound
我发现的当前错误是:
Ld /Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Products/Debug-iphonesimulator/Public\ Art.temp_caseinsensitive_renameTests.xctest/Public\ Art.temp_caseinsensitive_renameTests normal x86_64
cd /Users/lbogdono/Spaceship/GraffitiFound
export IPHONEOS_DEPLOYMENT_TARGET=7.12
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Products/Debug-iphonesimulator -F/Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Developer/Library/Frameworks -filelist /Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Intermediates/Public\ Art.build/Debug-iphonesimulator/Public\ Art.Tests.build/Objects-normal/x86_64/Public\ Art.temp_caseinsensitive_renameTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -bundle_loader /Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Products/Debug-iphonesimulator/GraffitiFound.app/GraffitiFound -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.12 -Xlinker -dependency_info -Xlinker /Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Intermediates/Public\ Art.build/Debug-iphonesimulator/Public\ Art.Tests.build/Objects-normal/x86_64/Public\ Art.temp_caseinsensitive_renameTests_dependency_info.dat -o /Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Products/Debug-iphonesimulator/Public\ Art.temp_caseinsensitive_renameTests.xctest/Public\ Art.temp_caseinsensitive_renameTests
ld: file not found: /Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Products/Debug-iphonesimulator/GraffitiFound.app/GraffitiFound
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:0)
如错误消息所示,您正在尝试将文件链接到磁盘上不存在的可执行文件中。具体来说,它无法找到/Users/lbogdono/Library/Developer/Xcode/DerivedData/GraffitiFound-axmdvgkvpehlnwgtxecternwbifq/Build/Products/Debug-iphonesimulator/GraffitiFound.app/GraffitiFound
我怀疑你试图将其链接到意外的可执行文件中,因为它在那里真的没有意义。你可能不小心拖了#34; GraffitiFound.app"进入目标的链接阶段。