1. 不升级Xcode如何调试iOS 16

  1. 下载iOS16 Support文件
  2. 放置到Xcode DeviceSupport目录重启Xcode即可/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

2. iOS16手机开启调试模式

开启开发者模式 “developer mode disable
解决办法:在你的iPhone中操作调试手机设置隐私安全–(滑动到最底部)开发者模式–开启开发者模式(需要重启手机

3. 运行遇到报错error: Signing for “XX” requires a development team.”

“Select a development team in the Signing & Capabilities editor.”
几种解决方案如下

1. 方案1:Build Settings配置

在Xcode选中XX对应target (in target ‘XX’)
点击Build Settings 中 在User-Defined (用户自定义那一栏)
添加CODE_SIGNING_ALLOWED = NO 关闭对XX的Code签名

2. 方案2:Pod配置CODE_SIGNING_ALLOWED推荐
post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
      target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
  end
end

参考https://github.com/CocoaPods/CocoaPods/issues/11402#issuecomment-1201464693

3. 方案3:Pod配置DEVELOPMENT_TEAM
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

参考:https://github.com/dbmz502/MonkeyDev_Xcode14

原文地址:https://blog.csdn.net/oliverbuddy/article/details/126874456

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_36288.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注