Rocket.Chat.ReactNative: Build fail on Xcode 12.5 with OpenSSL 1.1.x
In order to support Xcode 12.5, flipper have to upgrade to new version. [1][2][3]
Unfortunately, the version 1.1.x of OpenSSL is need by the new versions of flipper (such as 0.87.0) that support Xcode 12.5. [4]
react-native-simple-crypto[5], dependency of Rocket.Chat.ReactNative, using OpenSSL 1.0.x APIs, but there are some breaking change between 1.0.x and 1.1.x. [6]
Ref: [1] https://github.com/facebook/flipper/issues/2215 [2] https://github.com/facebook/folly/issues/1527 [3] https://stackoverflow.com/questions/66019068/event2-event-config-h-file-not-found [4] https://github.com/facebook/flipper/blob/v0.87.0/iOS/Podspecs/Flipper-Folly.podspec#L19 [5] https://github.com/RocketChat/react-native-simple-crypto/blob/master/ios/RCTCrypto/RCTRsaUtils.swift [6] https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes#Compatibility_Layer
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (7 by maintainers)
So after a lot of tries, is working now, after a fresh clone - without change Flipper. Xcode 12.4 Mac Mini M1.
All the Problems are because of the M1… The Solution…Cocoapods doesnt work with M1 so we should install it with a Rosetta Terminal and exclude arm64 architectur for the project. I excluded it an all Targets and Pod file. Here more:
https://narlei.com/development/apple-m1-xcode-error-when-build-in-simulator/ https://narlei.com/development/apple-m1-install-cocoapods/
After that, I can build without problems in Rosetta Terminal and Rosetta Xcode