question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to disable new architecture in iOS

See original GitHub issue

Description

I have recently enabled new architecture in iOS by running following command

RCT_NEW_ARCH_ENABLED=1 pod install

I would like to disable new architecture now, But unable to figure out a way. I couldn’t find anything from official documentation as well.

Is there anyway to disable the new architecture or creating the new project is the only way?

Thank You.

Version

0.69.5

Output of npx react-native info

System:
     OS: macOS 12.5
     CPU: (8) x64 Apple M1
     Memory: 24.20 MB / 8.00 GB
     Shell: 5.8.1 - /bin/zsh
Binaries:
     Node: 14.0.0 - /usr/local/bin/node
     Yarn: Not Found
      npm: 6.14.4 - /usr/local/bin/npm
      Watchman: Not Found
 Managers:
       CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
 SDKs:
       iOS SDK:
       Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
 Android SDK: Not Found
 IDEs:
        Android Studio: 4.2 AI-202.7660.26.42.7351085
        Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
 Languages:
        Java: 11.0.10 - /usr/bin/javac
 npmPackages:
        @react-native-community/cli: Not Found
        react: Not Found
        react-native: Not Found
        react-native-macos: Not Found
        npmGlobalPackages:
         *react-native*: Not Found

Steps to reproduce

Since it is not any error I cannot provide any reproducible steps. I am just looking for a way to disable the new architecture in iOS.

Snack, code example, screenshot, or link to a repository

I do not have any code snippet since I am not facing any errors.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
cipolleschicommented, Sep 21, 2022

Hi @Yandamuri, thanks for opening the issue and I’m sorry you are incurring into it.

Could you try to:

  1. navigate to the ios folder of your project
  2. remove the build folder
  3. run pod install And see if it fixes the issue?

It looks like that your build folder kept some dirty files from the previous build. Let me know if it works!

4reactions
cortinicocommented, Sep 20, 2022

I would like to disable new architecture now, But unable to figure out a way. I couldn’t find anything from official documentation as well. Is there anyway to disable the new architecture or creating the new project is the only way?

If you run RCT_NEW_ARCH_ENABLED=0 pod install you’ll be effectively disabling the New Architecture.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable new architecture in react-native - Stack Overflow
I have recently enabled new architecture in iOS by running following command. RCT_NEW_ARCH_ENABLED=1 pod install. I would like to disable it ...
Read more >
TN3117: Resolving architecture build errors on Apple silicon
The first step in resolving the build error is to reset each of these build settings back to their default value for every...
Read more >
An update on the New Architecture Rollout - React Native
On iOS, run RCT_NEW_ARCH_ENABLED=1 bundle exec pod install inside the ios folder. On Android, set the newArchEnabled property to true by either:.
Read more >
Hands on with Apple's new HomeKit architecture in iOS 16.2
We can't run two instances of Apple Home side-by-side. Instead, we ran through several automations and repeated them after the architecture ...
Read more >
New HomeKit Architecture is in iOS 16.2 betas - Reddit
If I update the one Apple TV and have issues will I still be able to use the other ATV on 16.1 on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found