IOS出現文件引用錯誤,找不到文件,可以試試

Showing All Errors Only

Ld /Users/zhanghairui/Library/Developer/Xcode/DerivedData/KnowledgeService-ewnxzxvqbpgosbbmupfmjqbkonez/Build/Products/Debug-iphonesimulator/KnowledgeService.app/KnowledgeService normal x86_64

cd /Users/zhanghairui/Desktop/KnowledgeService

export IPHONEOS_DEPLOYMENT_TARGET=8.0

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/iPhoneSimulator11.1.sdk -L/Users/zhanghairui/Library/Developer/Xcode/DerivedData/KnowledgeService-


解決方式如下:

先退出xcode,再把/Users/appleapple/Library/Developer/Xcode/DerivedData/下面的東西都刪除(DerivedData本身不要刪),再啟動xcode,再rebuild.

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容