Xcode 工程配置问题总结

防止重复的问题反复提问备份以供参考,将会持续更新。

  • 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 {} \;

参考
Stackoverflow
苹果官方

  • 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更新。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 【转载】曾梦想仗剑走天涯 1.Xcode IDE概览 说明:从左到右,依次是“导航窗格(Navigator)->边...
    06a6a973d7ab阅读 3,913评论 2 20
  • 前言: 我不是污王,我是坑王,当你成为iOS开发者的一员的时候,你就要准备接受这一点,无处不在的坑,就像无处不在的...
    lumic000阅读 11,976评论 14 141
  • Xcode 升级后,常常遇到的遇到的警告、错误,解决方法从sdk3.2.5升级到sdk 7.1中间废弃了很多的方法...
    MaShuai丨阅读 6,568评论 0 4
  • 部分常见警告与错误的解决方法与思路,具体问题具体分析解决。 一、常见警告如下: 1.警告:“xoxoxoxo”is...
    昵什么称阅读 773评论 0 1
  • 她穿过几千年,不疾不徐,一路走过来。她永远不会老去,跟随着历史一起前行。经历着不同的时代,更换着不同的容颜,可谓倾...
    Sarah_友妹阅读 237评论 0 0