Skip to main content
All CollectionsKnowledge BaseiOS
Xcode 14 and React Native 0.70.0 Xcode Archive Step sign in issue
Xcode 14 and React Native 0.70.0 Xcode Archive Step sign in issue
Updated over a week ago

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

Related links:

Did this answer your question?