XCode14 & iOS16 适配碰到的题目

计算机软件开发 2024-9-5 02:51:45 105 0 来自 中国
1、不升级电脑体系与 Xcode,调试iOS 16


  • 1、下载iOS16 Support文件
  • 2、放置到Xcode DeviceSupport目次重启Xcode即可/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
2、iOS16手机开启开发者模式

iOS16手机未打开开发者模式时:
1、Xcode 无法选中 iOS16的装备,报错:developer mode disable
2、无法打开升级前编译的App
升级iOS16后开发者模式默认给关闭了,得重新打开
办理办法:打开调试手机-设置-隐私与安全-开发者模式-开启开发者模式(必要重启手机)
3、Pod工程中的Bundle target署名报错


  • 方法一:手动选择Pod工程中的Bundle target 署名中的Team,与主工程划一
  • 方法二:在Podfile脚本中设置你的开发者的Team ID
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  endend方法三:在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  endend
您需要登录后才可以回帖 登录 | 立即注册

Powered by CangBaoKu v1.0 小黑屋藏宝库It社区( 冀ICP备14008649号 )

GMT+8, 2025-2-22 23:57, Processed in 0.153716 second(s), 32 queries.© 2003-2025 cbk Team.

快速回复 返回顶部 返回列表