react-native-community / upgrade-support

A central community-backed place to request and give help when upgrading your app.
MIT License
251 stars 2 forks source link

React Native ^0.73.0 upgrade excludes i386 arch when pod install is run causes IOS build to fail. #273

Open ChiefDesigns opened 1 month ago

ChiefDesigns commented 1 month ago

Environment

System:
  OS: macOS 14.4.1
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 131.89 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.6.1
    path: ~/.nvm/versions/node/v21.6.1/bin/node
  Yarn: Not Found
  npm:
    version: 10.5.0
    path: ~/Code/*******/apps/******/node_modules/.bin/npm
  Watchman:
    version: 2024.04.22.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/******/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.3 AI-233.14808.21.2331.11709847
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/local/opt/openjdk@17/bin/javac
  Ruby:
    version: 2.7.5
    path: /Users/******/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.6
    wanted: ^0.73.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Things I’ve done to figure out my issue

Observed that i386 arch is excluded in xcode project Build Settings

Upgrading version

0.73.0

Description

First I was faced with the issue of not being able to run-ios. The build would start and during the stage where it export variables, it would hang for a very long time, even up to an hour before outputting that the build had failed.

Took me a while to figure out that the architecture for my machine i386 was being excluded in xcode Build Settings. when I removed it from the excluded architecture, I was finally able to build again for IOS but that came at a cost of a full day.

Screenshot 2024-05-09 at 13 06 33



This is the point at which it would hang. For a very long time:

Screenshot 2024-05-09 at 12 58 24

I have observed that this behaviour is autogenerated and adds the following values to the project.pbxproj for development and release.

"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;

Reproducible demo

It fails on the MacBook Pro:

Screenshot 2024-05-09 at 13 10 12

On this arch:

Screenshot 2024-05-09 at 13 12 29