700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Xcode14运行15.7系统真机报错/Pod工程中签名报错

Xcode14运行15.7系统真机报错/Pod工程中签名报错

时间:2024-02-29 07:31:11

相关推荐

Xcode14运行15.7系统真机报错/Pod工程中签名报错

Xcode14运行15.7系统真机报错/Pod工程中签名报错

我个人升级Xcode14遇到的问题 汇总

一、xcode14运行15.7系统真机 报错不支持

真机报错

这个网站有时候加载不了图片写一下报错内容

The run destination iPhone is not valid for Running the scheme "你的项目'.

Failed to prepare the device for development. I his operation can fall It the version of th. on dev Is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility.

解决问题过程

交流1

交流2

交流3

总结

把xcode13.4.1 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport里面15.5文件替换到xcode14.0对应文件里;或者你想保险起见从14.0到15.5都拷贝过去

当然如果你把Xcode替换了找不到老版本了你可以从这里下载iOS15.5 Support文件应该管用(我没试过,但他是你的救命稻草)。

使我得到解决方法的启发我的简书(/p/cc616fa037b2 )

通过他的文章前往DeviceSupport文件夹发现

Xcode14 DeviceSupport文件里15.5/15.6/16.0缺失了对15.7系统支持

而Xcode13.4.1看起来最高是15.5却是可以支持15.6/15.7的真机是因为这个版本的Xcode支持15.5和15.5以上16.0以下的任何版本

Xcode14是按15.6下一个版本是16.0 忽略了15.7版本

由此大胆尝试->拷贝过去->成功

二、Pod工程中的Bundle target签名报错 摘抄自(/p/cc616fa037b2 )

pod报错

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

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

post_install do |installer|installer.pods_project.targets.each do |target|target.build_configurations.each do |config|config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID"//主要是这句endendend

效果和方法一相同,只是不用手动选择自己的team

方法三:在Podfile脚本中设置CODE_SIGN_IDENTITY为空来避免报错,强烈推荐

post_install do |installer|installer.pods_project.targets.each do |target|target.build_configurations.each do |config|config.build_settings['CODE_SIGN_IDENTITY'] = '' //主要是这句endendend

效果如下图

效果

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。