DEV Community

Andreas Bergström
Andreas Bergström

Posted on

1

Stop Xcode 14 from signing pods (React Native solution)

From version 14 Xcode has now started signing external pods, which causes problems in React Native versions below 0.70.3:

[...]/ios/Pods/Pods.xcodeproj error project: Signing for "React-Core-AccessibilityResources" requires a development team. Select a development team in the Signing & Capabilities editor.
Enter fullscreen mode Exit fullscreen mode

To solve this you need to upgrade Reach Native to at least 0.70.3, which can be a somewhat daunting task. In the meantime you can set xcconfig rules in your Podfile post install block to stop Xcode from signing these pods (React-Core):

installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
       if pod_name.to_s == 'React-Core'
           target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
               resource_bundle_target.build_configurations.each do |config|
                   config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
                   config.build_settings['CODE_SIGN_STYLE'] = 'Manual'
               end
           end
       end
     end
Enter fullscreen mode Exit fullscreen mode

Some people have reported being denied in app review after doing this, while others report being approved without issues.

Sentry mobile image

Mobile Vitals: A first step to Faster Apps

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read the guide

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs