Archiving iOS React Native app in an NRWL monorepo: debugging guide
Problems I’ve run into while trying to archive an app that would otherwise run on a physical device.
Introduction
The setup: NRWL monorepo project & React Native app.
The problem: iOS app runs normally when running it from Xcode, but archiving it in order to distribute on AppStoreConnect leads to nasty errors.
In this guide, we will take a look at the 2 errors that I’ve had when trying to archive the iOS app of our project. This app ran normally on a device/simulator, but archiving was moody.
First error
This error is apparently related to the Swift bridging header file. However, it actually isn’t. I deleted the bridging header, then created a Swift file and added a new bridging header. However, the error still persisted.
Solution:
Check your podfile. Ensure that the version mentioned there is the same as the version that you’ll find in the General tab of your target.
platform :ios, '11.0'