Signing for ‘xxx‘ requires a development team.

在iOS 16 真机运行时 发现了一个错误.

Pods 中 SDK development team 这里出现了问题.

查了一些资料看起来是由于 Bundle target signature 这块引起的, 但是我并没有找到一个明确的证据.

而这个问题的根本原因是 EXPANDED_CODE_SIGN_IDENTITY 需要提前被设置, 而不像以前只需要默认就可以.

已下是找到的解决方案

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
            
            config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
        end
    end
end

但我发现对于这个问题来说设置iPhone的版本 与 ‘REQUIRED’ 还有 ‘ALLOWED’ 其实并不是必须的, 你也可以只做EXPANDED_CODE_SIGN_IDENTITY的处理.

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|            
            config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
        end
    end
end

以上就是全部内容, 

扫描二维码关注公众号,回复: 15214260 查看本文章

感谢阅读,学以致用更感谢.

猜你喜欢

转载自blog.csdn.net/siwen1990/article/details/127438754