-
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
Can't compile initial project for iOS #30922
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Building existing iOS projects also start failing with the same error(s) if OpenSSL-Universal gets updated to 1.1.180 via |
In case anyone else is wondering how to do this, you need to add |
|
Ah my favorite. Random build breaks while updating core libraries. I applied @EricWiener 's code to |
@lauritaipale's solution worked for me, adding this to my pod file fixed the problem: pod 'OpenSSL-Universal', '~>1.0.2.20' NOTE: after adding this, just running pod install will fire an error due to versions mismatch, in that case remove Podfile.lock and pod install again |
@aparedes this worked form me. I'm new to both react native and ios development. It's quite confusing to face such problems while running a helloWorldApp. |
This comment has been minimized.
This comment has been minimized.
Updating cocoapods to 1.10.1 fixed the issue. There seems to be an issue with xcframeworks on version 1.9.x (krzyzanowskim/OpenSSL#113 (comment)) |
Someone should fix this issue with npx, I get the same issue evertyme I create a simple app, please admin solve it. |
It worked for me. Thank you. |
Add OpenSSL specific version to podfile and run `pod install`. Notes: facebook/react-native#30922 (comment)
You've saved my day |
The OP is a known issue, caused by an outdated cocoapods. Make sure to update it to 1.10. |
I run into other issues when I update cocoapods to
|
Can confirm with specs on RN 0.62.2 new or existing project this works. Also ran into this. Mad props!!!! |
Adding that to the Podfile causes
System info:
|
Try the following
|
I'm running into the same issue as @jonnyberanek . Has anyone figured out a fix? |
by mistake i open .xcodeproj file instead of .xcworkspace. |
I had this issue recently and the problem was with the outdated cocoapods (1.9) version. Updating to a newer version solved the issue.
|
This saved me
I am also using googleplaces and google maps so I had to add this and Adding to help someone with similar issue. After switching to Big Sur and Xcode 12.5 Later I had this issue while generating a device build ___cxa_increment_exception_refcount" |
For me the fix is just to change the Deployment Info target to iOS 11 or greater |
For me, the issue was related to older Cocoapods version, updating my cocoapods fixed it |
This is the EXACT ANSWER |
Will add that as requirement to the podspec itself |
Summary: Specify minimum required cocoapods version for Flipper, fixes facebook/react-native#30922, according to https://guides.cocoapods.org/syntax/podspec.html#cocoapods_version Reviewed By: lawrencelomax Differential Revision: D33138126 fbshipit-source-id: f63579cd1e180017b9b4ff04f61031264718d1ee
Description
When I create a new project via
npx react-native init bestproject
and trying to compile it on macOS I receive the following errors:React Native version:
Steps To Reproduce
The text was updated successfully, but these errors were encountered: