Summary of problems and solutions for xcode upgrade to iOS 16

When the iOS16 phone does not turn on the developer mode:

1. Xcode cannot select iOS16 devices and reports an error: developer mode disable

2. Unable to open App compiled before upgrade

Solution: Do it on your iPhone

Debug the phone – Settings – Privacy and Security – (Slide to the bottom) Developer Mode – Turn on Developer Mode (need to restart the phone)

2. Bundle target signature error in Pod project

Method 1: Manually select the Team in the Bundle target signature in the Pod project, which is consistent with the main project

Method 2: Set your developer’s Team ID in the Podfile

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

Method 3: Set CODE_SIGN_IDENTITY in the Podfile (recommended)

post_install do |installer|
   installer.pods_project.targets.each do |target|
       target.build_configurations.each do |config|
           config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.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

Guess you like

Origin blog.csdn.net/mofengluo/article/details/128849286