Issue:
When trying to launch the Xcode Archive & Export for iOS Step, it fails with these errors:
β error: Signing for "EXConstants-EXConstants" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'EXConstants-EXConstants' from project 'Pods') β error: Signing for "React-Core-AccessibilityResources" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'React-Core-AccessibilityResources' from project 'Pods')
React Native 0.70.3
These errors have been fixed in React Native 0.70.3. For more information, see Unable to build with XCode 14.0.
Possible solutions:
To solve this issue, you can downgrade and build on Xcode 13.4.
Alternatively, you can add the following post install script in your PodFile:
post_install do |installer| targetsToFix = ["React-Core-AccessibilityResources", "EXConstants-EXConstants"]; installer.generated_projects.each do |project| project.targets.each do |target| if targetsToFix.include? target.name puts "Set development team for target #{target.name}" target.build_configurations.each do |config| config.build_settings["DEVELOPMENT_TEAM"] = "YOUR TEAM ID" config.build_settings["CODE_SIGN_IDENTITY"] = "Apple Distribution"; config.build_settings["CODE_SIGN_STYLE"] = "Manual"; end end end end end