Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
ChiefDesigns opened this issue May 9, 2024 · 0 comments

Comments

@ChiefDesigns
Copy link

ChiefDesigns commented May 9, 2024

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
  • React native project @^0.73.0
  • npm install
  • pod install
  • command to run for ios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant