# iOS Build Issues

## ![](https://docs.pixelstrap.net/laravel/taxido/assets/images/icons/errors.png) Common Errors in IPA Generation (iOS Build Issues)  <br>

1. **Command PhaseScriptExecution failed with a nonzero exit code**&#x20;

   **Possible Solutions :**   <br>

   1. Run the following command to clean the build :    \
      &#x20;

      ```html
      cd ios
      xcodebuild clean
      ```

   2. If you're using CocoaPods, try :  <br>

      ```html
      cd ios
      pod install --repo-update
      ```

   3. Restart Xcode and rebuild the app.

2. **Command CompileSwift failed**   \
   \
   **Possible Solutions :**    <br>

   1. Upgrade your Swift version : <br>

      ```html
      sudo xcode-select --switch /Applications/Xcode.app
      ```

   2. Ensure Build System is set to "New Build System" in Xcode.

   <br>

3. **The linked framework 'React-Core' is missing**\
   \
   Possible Solutions :  <br>

   * Run : &#x20;

   ```html
   cd ios
   pod install
   ```

   <br>

4. **CocoaPods version mismatch**  \
   \
   &#x20;**Possible Solutions :**   \
   &#x20;

   1. Update CocoaPods :    <br>

      ```html
      sudo gem install cocoapods
      pod install --repo-update
      ```

   2. The APK will be located at :

   ```html
    android/app/build/outputs/apk/release/app-release.apk
   ```

   <br>

5. **Unable to upload IPA to TestFlight/App Store** \
   \
   **Possible Solutions :**  &#x20;

   * Upload using Transporter (Mac App Store) or run :<br>

   ```html
   xcrun altool --upload-app -f app.ipa -t ios --apiKey YOUR_KEY --apiIssuer YOUR_ISSUER_ID
   ```

   <br>

6. **Unable to upload IPA to TestFlight/App Store**\
   \
   **Possible Solutions :**    \
   &#x20;
   1. Ensure you have excluded arm64 for simulators in Xcode → Build Settings :
   2. Excluded Architectures → arm64 (for Debug builds)
   3. Remove arm64 exclusion for Release builds.

## <img src="https://docs.pixelstrap.net/laravel/taxido/assets/images/icons/icon.png" alt="" data-size="line"> **General Fix for iOS Build Issues**

```html

cd android
pod install --repo-update
pod install --repo-update
cd ..
npx react-native run-ios

```

{% hint style="warning" %}
Note: Make sure that you do not use the ^ (caret) symbol while installing this package. Using ^ allows npm to automatically install a newer version, which can again lead to version mismatch problems.
{% endhint %}
