由於某些原因,當我建立我的項目時,我得到這些錯誤。蘋果Mach-O鏈接器錯誤,沒有這樣的文件或目錄:'`IC++'
Apple Mach-O Linker Error
No such file or directory: '`-lc++'
clang: error: no such file or directory: '`-lc++'
我已經嘗試過多次重建項目,而且我也已經多次清理了該項目。出於某種原因,如果我這樣做,它有時會奇蹟般地修復錯誤。這裏還有更多關於錯誤的信息。
Ld /Users/bootsie123/Library/Developer/Xcode/DerivedData/IssueExample-covmppdbtzdmuecxicjpccaeojxd/Build/Products/Debug-iphonesimulator/IssueExample.app/IssueExample normal x86_64 cd /Users/bootsie123/Desktop/IssueExample export IPHONEOS_DEPLOYMENT_TARGET=10.1 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" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk -L/Users/bootsie123/Library/Developer/Xcode/DerivedData/IssueExample-covmppdbtzdmuecxicjpccaeojxd/Build/Products/Debug-iphonesimulator -F/Users/bootsie123/Library/Developer/Xcode/DerivedData/IssueExample-covmppdbtzdmuecxicjpccaeojxd/Build/Products/Debug-iphonesimulator -filelist /Users/bootsie123/Library/Developer/Xcode/DerivedData/IssueExample-covmppdbtzdmuecxicjpccaeojxd/Build/Intermediates/IssueExample.build/Debug-iphonesimulator/IssueExample.build/Objects-normal/x86_64/IssueExample.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.1 -Xlinker -object_path_lto -Xlinker /Users/bootsie123/Library/Developer/Xcode/DerivedData/IssueExample-covmppdbtzdmuecxicjpccaeojxd/Build/Intermediates/IssueExample.build/Debug-iphonesimulator/IssueExample.build/Objects-normal/x86_64/IssueExample_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -lctemplate-ios -letpan-ios -lxml2 -lsasl2 -liconv -ltidy -lz
-lc++ -lresolv -stdlib=libc++ -ObjC /Users/bootsie123/Library/Developer/Xcode/DerivedData/IssueExample-covmppdbtzdmuecxicjpccaeojxd/Build/Products/Debug-iphonesimulator/libMailCore-ios.a -framework Security -framework CFNetwork -Xlinker -dependency_info -Xlinker /Users/bootsie123/Library/Developer/Xcode/DerivedData/IssueExample-covmppdbtzdmuecxicjpccaeojxd/Build/Intermediates/IssueExample.build/Debug-iphonesimulator/IssueExample.build/Objects-normal/x86_64/IssueExample_dependency_info.dat -o /Users/bootsie123/Library/Developer/Xcode/DerivedData/IssueExample-covmppdbtzdmuecxicjpccaeojxd/Build/Products/Debug-iphonesimulator/IssueExample.app/IssueExample
clang: error: no such file or directory: '`-lc++'
看起來像某種垃圾的破折號前。你是否手動編輯鏈接庫?嘗試重寫它。 –
不是。我沒有編輯鏈接庫。 – thebootsie123
@ thebootsie123即使你提供的答案不是這樣嗎? –