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

iOS won't build on fresh project with latest MacOS 11.3 and Xcode 12.5 #31441

Closed
yeong0809 opened this issue Apr 27, 2021 · 11 comments
Closed

iOS won't build on fresh project with latest MacOS 11.3 and Xcode 12.5 #31441

yeong0809 opened this issue Apr 27, 2021 · 11 comments
Labels
Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.

Comments

@yeong0809
Copy link

Description

Fresh new project won't build in MacOS 11.3 and Xcode 12.5.

React Native version:

"react": "17.0.1",
"react-native": "0.64.0"

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. create new project
  2. react-native run-ios

Expected Results

App run normally

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

Screenshot 2021-04-27 at 5 42 47 PM

@dejolt
Copy link

dejolt commented Apr 27, 2021

TEMPORARY SOLUTION!

I got around the error by commenting out use_flipper!() in the pod file, and run pod install. Seems to be a flipper issue. Give it a try see if it works while there's a better solution.

@iaroslav-ternovyi
Copy link

try this

@robbiemccorkell
Copy link
Contributor

robbiemccorkell commented Apr 27, 2021

Similar to @iaroslav-ternovyi's comment. This patch from @j2teamlbh worked for me as a temporary solution: facebook/flipper#2215 (comment)

You'll need to go into the Filipper-Folly dependancy in the Pods directory and apply the following diff to the file:

{project-name}/ios/Pods/Flipper-Folly/folly/synchronization/DistributedMutex-inl.h

facebook/folly@8477e25#diff-65ad309ca9c636ba81eb7953fce06e6963c51296a60dc25eb4a5b1463482c6da

It seems like we might need to wait for a new version of Flipper-Folly for this to be fixed.

@danyasnov
Copy link

it's time to install xcode not from the AppStore

@AlexHooperDev
Copy link

Similar to @iaroslav-ternovyi's comment. This patch worked for me as a temporary solution: facebook/flipper#2215 (comment)
You'll need to go into the Filipper-Folly dependancy in the Pods directory and apply the following diff to the file:

This fixed the issue for flipper-folly however it just causes the same CompileC error on another flipper pod FlipperRSocketResponder.

globally disabling flipper also doesn't work, and instead causes the following CompileC error to happen:
CompileC /Users/alex.hooper/Library/Developer/Xcode/DerivedData/Espresso-brgntaoyjolqyfdzcsunjlqtzzum/Build/Intermediates.noindex/Espresso.build/Debug-iphoneos/Espresso.build/Objects-normal/arm64/AppDelegate.o /Users/alex.hooper/Documents/figloo-bank-mobile/ios/Espresso/AppDelegate.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

@SevrainChea
Copy link

Commenting use_flipper() in the Podfile fixed the issue for me, waiting for them to fix it to uncomment it !

@kelset kelset added the Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. label Apr 27, 2021
@kelset
Copy link
Contributor

kelset commented Apr 27, 2021

hey folks looks like this was already reported here: #31179 so for the sake of having one place where the conversation will proceed forward I'll close this as duplicate, please post your comments in the other issue :)

@sarafhbk
Copy link

@robbiemccorkell the solution is working for me. Could you please help me doing the Flipper-Folly patch package

@webmasterdevlin
Copy link

I just want to share this link https://developer.apple.com/download/more/?=xcode. Downgrading to a lower version of XCode is okay if the latest features of XCode 12.5 are not crucial in your project.

@archcorsair
Copy link

Can confirm 0.64.1 fixes this for me!

@kelset
Copy link
Contributor

kelset commented May 6, 2021

I'm going to lock this since now there's -> #31480

@facebook facebook locked as resolved and limited conversation to collaborators May 6, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests