Signing for ‘xxx‘ requires a development team.

A bug was found when iOS 16 was running on a real device.

There is a problem with the SDK development team in Pods.

After checking some information, it seems that it is caused by the Bundle target signature, but I did not find a clear evidence.

The root cause of this problem is that EXPANDED_CODE_SIGN_IDENTITY needs to be set in advance, not just the default.

Below is the solution found

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

But I found that it is not necessary to set the iPhone version and 'REQUIRED' and 'ALLOWED' for this problem, you can also only do the processing of 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

That's all for the above, 

Thank you for reading, and thank you for applying what you have learned.

Guess you like

Origin blog.csdn.net/siwen1990/article/details/127438754