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.65 - Xcode 13 - Release Schema is not compiling #32301

Closed
nithinyell opened this issue Sep 30, 2021 · 2 comments
Closed

React Native 0.65 - Xcode 13 - Release Schema is not compiling #32301

nithinyell opened this issue Sep 30, 2021 · 2 comments
Labels
Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.

Comments

@nithinyell
Copy link

Description

Tried upgrading to react-native 0.65 with Xcode 13; able to compile in debug mode but fails in release.

React Native version:

System:
    OS: macOS 11.6
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Memory: 48.90 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.12.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 6.14.8 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7042882
    Xcode: 13.0/13A233 - /usr/bin/xcodebuild
  Languages:
    Java: 15.0.2 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.65.1 => 0.65.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

  1. On the above environment setup, run react-native init sampleApp
  2. Open Xcode and change schema to 'Release'
  3. Run app, and you see the below error

Screenshot 2021-09-30 at 7 55 41 PM

Expected Results

App should compile in release schema

nithinyell referenced this issue Sep 30, 2021
Summary:
changelog: Fix Xcode 13 build error in HelloWorld template

Including `usr/lib/swift` fixes error:
{F642876047}

Reviewed By: p-sun

Differential Revision: D30301799

fbshipit-source-id: b93eb51ec5dd929ddc46574fc11bc89934eadeaf
@mikehardy
Copy link
Contributor

This is a known issue. It is resolved already.
@nithinyell please search for the string "thread-local" in this Podfile workaround snippet, it will get you moving

#31480 (comment)

@nithinyell
Copy link
Author

Thanks @mikehardy; added sed -i -e $'s/__IPHONE_10_0/__IPHONE_12_0/' Pods/RCT-Folly/folly/portability/Time.h

In pod file and I am able to compile the app.

This is a known issue. It is resolved already. @nithinyell please search for the string "thread-local" in this Podfile workaround snippet, it will get you moving

#31480 (comment)

@facebook facebook locked as resolved and limited conversation to collaborators Oct 6, 2022
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants