-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
New RN project will not build on Xcode 12.5 Beta 3 #31179
Comments
This comment has been minimized.
This comment has been minimized.
React Native and Flipper currently rely on Folly https://github.com/facebook/folly/tree/v2020.01.13.00 and https://github.com/facebook/folly/tree/vv2020.04.06.00 respectfully, this bug was fixed in facebook/folly@8477e25 and released in https://github.com/facebook/folly/tree/v2021.03.08.00. As a workaround I backported the commit to the Pod::Spec.new do |spec|
spec.name = 'RCT-Folly'
spec.version = '2020.01.13.00'
spec.license = { :type => 'Apache License, Version 2.0' }
spec.homepage = 'https://github.com/facebook/folly'
spec.summary = 'An open-source C++ library developed and used at Facebook.'
spec.authors = 'Facebook'
spec.source = { :git => 'https://github.com/indaq-cloud/folly.git',
:tag => "v#{spec.version}" }
... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I just downgrade Xcode to stable 12.4. It's work for me. |
This comment has been minimized.
This comment has been minimized.
My temporary workaround:
Optional step:
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
// before: #ifdef FB_SONARKIT_ENABLED
#ifndef FB_SONARKIT_ENABLED
return
[[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"
fallbackResource:nil];
#else
return [[NSBundle mainBundle] URLForResource:@"main"
withExtension:@"jsbundle"];
#endif
} |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Here's a patch-package patch that seems to work with Hermes on iOS after purging build / Pods and reinstalling This is based on the fork @dotconnor made (:trophy: @dotconnor !) I do not use Flipper but have been using Hermes on iOS and I could not build without this. File is
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I did start a quick fork to bump to the latest package and see what issues would pop up. Looks like a bump to flipper-folly will also be needed, as they also rely on the non-functional version of Folly |
After adding these lines in pod file 'Flipper' => '0.87.0' Edit (by @kelset) to collapse the screenshot. |
@balwinder4264 this discussion has gotten long enough github is collapsing useful comments unfortunately. So this was discussed above but was hidden and easy to miss. @smadan wrote up a wonderful summary of all the problems that may occur here #31179 (comment) and the relevant bit for you is (I think)
Then you may need |
Hey folks, thanks for the feedback! And thanks to everyone who jumped in to help 🤗 @kompfner - thanks! I've updated my comment to use your version since it's more complete :) @KoreanThinker, yes the fact that it doesn't work on Android is expected! I wrote about that in my previous comment. I'm catching up with stuff today - probably we'll do the necessary patch releases tomorrow. |
Xcode 12.5 throw theses errors on a clean RN 0.64 build with Hermes enabled, following the Folly/Flipper hacks. I'm on Apple Silicon.
|
We use Hermes (RN 0.64.0) and eventually got it to work with some temporary edits to our Podfile. Our Podfile looks like this now, hopefully it'll help someone out:
After adding the changes into Podfile, do |
@arzel @woltsu did you try the approach I described here? #31179 (comment) it's not clear by your comments. |
I'm getting this error when using the dependencies suggested above for RN 0.63, ie
|
@kelset I tried the 0.64 method with Hermes on and off and both seemed to work without any issues, sorry for not mentioning it in my original comment. However, I needed another solution in order to do both iOS and Android development simultaneously |
@jacquesdev: Can you try using specifically 1.3.1? I.e.: use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1') |
@tido64 - thank you, that works! |
Using I get
Can I please also confirm whether we are commenting out
or not? This issue has taken days off from dev work now. |
@JoeKlimcak Not sure what version of RN you are on, but to confirm for me on 0.63, I did not have change anything regarding the flipper post install (ie I did not comment it out). I only added the first line of your comment, ie flipper versions and those two dependencies |
@JoeKlimcak You're hitting this issue because you have old versions pinned in use_flipper!({
'Flipper' => '0.75.1',
'Flipper-DoubleConversion' => '1.1.7',
'Flipper-Folly' => '2.5.3',
'Flipper-Glog' => '0.3.6',
'Flipper-PeerTalk' => '0.0.4',
'Flipper-RSocket' => '1.3.1',
'FlipperKit' => '0.75.1',
'FlipperKit/Core' => '0.75.1',
'FlipperKit/CppBridge' => '0.75.1',
'FlipperKit/FBCxxFollyDynamicConvert' => '0.75.1',
'FlipperKit/FBDefines' => '0.75.1',
'FlipperKit/FKPortForwarding' => '0.75.1',
'FlipperKit/FlipperKitHighlightOverlay' => '0.75.1',
'FlipperKit/FlipperKitLayoutPlugin' => '0.75.1',
'FlipperKit/FlipperKitLayoutTextSearchable' => '0.75.1',
'FlipperKit/FlipperKitNetworkPlugin' => '0.75.1',
'FlipperKit/FlipperKitReactPlugin' => '0.75.1',
'FlipperKit/FlipperKitUserDefaultsPlugin' => '0.75.1',
'FlipperKit/SKIOSNetworkPlugin' => '0.75.1',
}) |
@tido64 I have the same error
I already cleaned my podfile.lock, and removed the Pods folder. I tried specifying like in your example but it still crashes. Hopefully we can figure something out. |
@b-derksen can you try to fully remove the podfile.lock and run |
I deleted the |
Hey folks, update on this: based on all the conversations above it seems that the workaround work well for most scenarios, so we published a new version of 0.62 and 0.64 that will allow you to update easily to them and be able to work again. Given that it could be that some cases are not being fully solved yet, I've opened this new issue: #31480 so that we can follow up for the cases in which the issue is still happening (this conversation has already over 100+ comments and GitHub is struggling 😅). Thanks again to everyone for chiming in, hopefully this will be better now 🤞 |
EDIT (by @kelset): Please read the current status of things at this comment.
Description
Running the latest Xcode/React Native etc. Upgrading an existing project failed so I tested with a new RN project (npx react-native init TestApp --version 0.64.0 --template react-native-template-typescript). It will build and run under Xcode 12.4, but fails when attempting to build with Xcode 12.5 Beta 3 (12E5244e). It's unlikely to be relevant, but the app is targeting an iPhone 12 Simulator running iOS 14.5
React Native version:
Run
react-native info
in your terminal and copy the results here.Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
cd testApp
yarn install
thencd iOS & pod install
cd ../ & yarn ios
Expected Results
Describe what you expected to happen.
A successful build of the example app, running on the simulator.
Snack, code example, screenshot, or link to a repository:
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
You may provide a screenshot of the application if you think it is relevant to your bug report.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve
The following build commands failed:
CompileC /Users/harrygwinnell/Library/Developer/Xcode/DerivedData/testApp-hgqgknryyegjzjbbjfnfzrcyijmv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/DistributedMutex.o /Users/harrygwinnell/Desktop/Git.nosync/testApp/testApp/ios/Pods/Flipper-Folly/folly/synchronization/DistributedMutex.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
This is the error that comes from
yarn ios
. A similar error comes from Xcode.app, reporting an error building flipper-folly.Full console output available on request, but it was too big for pastern.
Xcode.app output is below
The text was updated successfully, but these errors were encountered: