XCode14 & iOS16 适配问题汇总【转】

1、不升级电脑系统与 Xcode,调试iOS 16

1、下载iOS16 Support文件

更多的support另见https://www.jianshu.com/p/de60111cbfaf

2、放置到Xcode DeviceSupport目录重启Xcode即可/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

2、iOS16手机开启开发者模式

iOS16手机未打开开发者模式时:

1、Xcode 无法选中 iOS16的设备,报错:developer mode disable

2、无法打开升级前编译的App

解决办法:打开调试手机-设置-隐私与安全-开发者模式-开启开发者模式(需要重启手机)

3、Pod工程中的Bundle target签名报错

方法一:手动选择Pod工程中的Bundle target 签名中的Team,与主工程一致

方法二:在Podfile脚本中设置你的开发者的Team ID

post_installdo|installer|installer.generated_projects.eachdo|project|project.targets.eachdo|target|target.build_configurations.eachdo|config|config.build_settings["DEVELOPMENT_TEAM"]="Your Team ID"endendendend

方法三:在Podfile脚本中设置CODE_SIGN_IDENTITY为空来避免报错,这是目前在用的,也是最简单的方法

post_installdo|installer|installer.generated_projects.eachdo|project|project.targets.eachdo|target|target.build_configurations.eachdo|config|config.build_settings['CODE_SIGN_IDENTITY']=''endendendend


作者:傅hc

链接:https://www.jianshu.com/p/cc616fa037b2

来源:简书

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

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

推荐阅读更多精彩内容