防止重复的问题反复提问备份以供参考,将会持续更新。
- 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
解决办法:打开终端进入项目根目录,依次输入:
find . -type f -name '*.jpeg' -exec xattr -c {} \;
find . -type f -name '*.png' -exec xattr -c {} \;
- Undefined symbols for architecture arm64
大部分由于Pods导致,解决办法: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)
这大都由于手动导入第三方库引起的,解决办法,在工程中找到xxxx库,然后重工程中移除(注意这里的移除要选择 Remove Reference), 然后重新添加库至工程。
- 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)
这个往往是因为Pods导致,使用Update 命令更新下。如果终端一直更新不成功,可以使用Cocoapods的app更新。