Skip to content

Commit

Permalink
Remove Flipper (mongodb-university#210)
Browse files Browse the repository at this point in the history
* In this version of React Native, current versions of Xcode are not
compatible with Flipper dependencies
* This commit disable Flipper from being installed in the Pod Install
phase
* In effect, this will avoid failures when using the template
  • Loading branch information
takameyer authored Jul 8, 2024
1 parent 66aec1d commit d712c59
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions sync-todo/v2/client/react-native/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ require Pod::Executable.execute_command('node', ['-p',
platform :ios, min_ios_version_supported
prepare_react_native_project!

# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
Expand All @@ -40,7 +29,7 @@ target 'SyncTutorial' do
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
:flipper_configuration => FlipperConfiguration.disabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
Expand Down

0 comments on commit d712c59

Please sign in to comment.