防止重復(fù)的問(wèn)題反復(fù)提問(wèn)備份以供參考,將會(huì)持續(xù)更新。
- XXX isn't code signed but requires entitlements. It is not possible to add entitlements to a binary with
解決辦法: TARGETS-> General -> Signing -> click Automatically manage signing->
Clean -> Build the project
- resource fork, Finder information, or similar detritus not allowed ,Command /usr/bin/codesign failed with exit code 1
解決辦法:打開(kāi)終端進(jìn)入項(xiàng)目根目錄,依次輸入:
find . -type f -name '*.jpeg' -exec xattr -c {} \;
find . -type f -name '*.png' -exec xattr -c {} \;
- Undefined symbols for architecture arm64
大部分由于Pods導(dǎo)致,解決辦法:TARGETS ->Build Settings ->Other Linker Flags 添加 $(inherited)
其他原因參考:StackOverflow
- Command /usr/bin/codesign failed with exit code 1
解決辦法:Xcode -> Preferences -> Accounts -> View Details-> Download All profiles
- library not found for xxxx, linker command failed with exit code 1 (use -vto see invocation)
這大都由于手動(dòng)導(dǎo)入第三方庫(kù)引起的,解決辦法,在工程中找到xxxx庫(kù),然后重工程中移除(注意這里的移除要選擇 Remove Reference), 然后重新添加庫(kù)至工程。
- Invalid bitcode signature
解決辦法:TARGETS -> Build Settings -> Build Active Architecture Only ->Debug 改為Yes

- clang: error: linker command failed with exit code 1 (use -v to see invocation)
這個(gè)往往是因?yàn)镻ods導(dǎo)致,使用Update 命令更新下。如果終端一直更新不成功,可以使用Cocoapods的app更新。