Xcode14适配问题

1.iOS16手机开启开发者模式
解决办法:打开调试手机-设置-隐私与安全-开发者模式-开启开发者模式(需要重启手机)
2.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

  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
3.使用Xcode14打出来的包,在iOS12.2以下的系统发生崩溃

方法一:

在Build Phases -> Link Binary With Librarires 里面添加 libswiftCoreGraphics.tbd。否则xcode14打出来的包,在iOS12.2以下的系统找不到libswiftCoreGraphics.dylib而发生崩溃。

方法二:官方推荐的方法

Build Setting -> other linkflags 添加 -Wl,-weak-lswiftCoreGraphics

方法三:Xcode14.1官方已经修复,下载Xcode14.1就可以

你可能感兴趣的:(Xcode14适配问题)