人猿星球适配iOS

XCode14 & iOS16 适配遇到的问题

2022-09-23  本文已影响0人  杯中怎可无酒

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

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

iOS16手机未打开开发者模式时:
1、Xcode 无法选中 iOS16的设备,报错:developer mode disable
2、无法打开升级前编译的App

升级iOS16后开发者模式默认给关闭了,得重新打开
解决办法:打开调试手机-设置-隐私与安全-开发者模式-开启开发者模式(需要重启手机)

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

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID"
         end
    end
  end
end

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

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['CODE_SIGN_IDENTITY'] = ''
         end
    end
  end
end
上一篇 下一篇

猜你喜欢

热点阅读