升级iOS16后进行真机调试,第三方包要求签名。可能是苹果的bug(或许是为了增强安全性)
PS:猜测后期pod方面会修复,或者苹果修复。目前可以使用以下手段暂时解决。
方式一:【推荐】
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
方式二:
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
方式三:【综合】
installer.generated_projects.each do |project|
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
end