Created
May 20, 2022 18:18
-
-
Save TheUltDev/98dd20e62180e69ccae9cbedd43dd496 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use_flipper! | |
post_install do |installer| | |
flipper_post_install(installer) | |
react_native_post_install(installer) | |
# Fix simulator on Apple M1 | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' | |
end | |
end | |
## Fix for XCode 12.5 & RN 0.62.2 - See https://github.com/facebook/react-native/issues/28405 | |
find_and_replace("../node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm", | |
"_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules", "_initializeModules:(NSArray<Class> *)modules") | |
find_and_replace("../node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm", | |
"RCTBridgeModuleNameForClass(strongModule))", "RCTBridgeModuleNameForClass(Class(strongModule)))") | |
## Fix for Flipper-Folly on iOS 14.5 | |
find_and_replace("Pods/Flipper-Folly/folly/synchronization/DistributedMutex-inl.h", | |
"atomic_notify_one(state)", "folly::atomic_notify_one(state)") | |
find_and_replace("Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex-inl.h", | |
"atomic_notify_one(state)", "folly::atomic_notify_one(state)") | |
find_and_replace("Pods/Flipper-Folly/folly/synchronization/DistributedMutex-inl.h", | |
"atomic_wait_until(&state, previous | data, deadline)", "folly::atomic_wait_until(&state, previous | data, deadline)") | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment