Xcodeが項目名を変更して繰り返し発生する問題ld:file not found
2843 ワード
Ld /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator/BaseProjectTests.xctest/BaseProjectTests normal x86_64
cd /Users/Guicai/Documents/baby_ios/BaseProject
export IPHONEOS_DEPLOYMENT_TARGET=8.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/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.3.sdk -L/Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator -F/Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.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.3.sdk/Developer/Library/Frameworks -filelist /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Intermediates/BaseProject.build/Debug-iphonesimulator/BaseProjectTests.build/Objects-normal/x86_64/BaseProjectTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -bundle_loader /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator/BaseProject.app/BaseProject -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -Xlinker -dependency_info -Xlinker /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Intermediates/BaseProject.build/Debug-iphonesimulator/BaseProjectTests.build/Objects-normal/x86_64/BaseProjectTests_dependency_info.dat -o /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator/BaseProjectTests.xctest/BaseProjectTests
ld: file not found: /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator/BaseProject.app/BaseProject
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解決策:
Projrect->Edit Schemeをクリックして、すべてのBuildのTestのすべてをキャンセルします.