Skip to content

Commit

Permalink
Exclude react-native-flipper when NO_FLIPPER=1 to prevent iOS bui…
Browse files Browse the repository at this point in the history
…ld fail
  • Loading branch information
retyui committed Jan 5, 2023
1 parent e625616 commit d2bd5e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions template/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
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']
Expand Down

0 comments on commit d2bd5e9

Please sign in to comment.