facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.36k stars 952 forks source link

Question: pod install fails because of Flipper error. Is M1 not supported yet? #3570

Open sandervspl opened 2 years ago

sandervspl commented 2 years ago

I get the following error when trying to pod install my react-native project:

[!] Unknown configuration whitelisted: debug. CocoaPods found acc - debug, acc - release, prod - debug, prod - release, test - debug, and test - release, did you mean one of these?

This is the pod file

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

project 'reactmobile',
  'Prod - Debug' => :debug,
  'Acc - Debug' => :debug,
  'Test - Debug' => :debug,
  'Prod - Release' => :release,
  'Acc - Release' => :release,
  'Test - Release' => :release

platform :ios, '11.0'

target 'reactmobile' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => true
  )

  target 'reactmobileTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line
  use_flipper!({ 'Flipper' => '0.127.0', configurations: ['Prod - Debug', 'Acc - Debug', 'Test - Debug'] })

  post_install do |installer|
    react_native_post_install(installer)
    # __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

The install works without issues on my and other colleagues intel Macbooks, but it fails on my M1 Macbook

Details: Macbook Pro (M1, 2021) cocoapods 1.11.3 react-native 0.67.4

I can't find anything regarding M1 support. Is M1 not supported yet? What can I do going forward?

clovisrodriguez commented 2 years ago

Same Here

jazibabdullah1 commented 2 years ago

Same still finding

mweststrate commented 2 years ago

The error doesn't indicate where debug was found, and the above file doesn't seem to contain it. Best try creating a minimal reproduction or provide the full error if available. It's unclear to me from above error how it is related to Flipper, so probably not all info was provided?

pavlof01 commented 2 years ago

Same Here

pavlof01 commented 2 years ago

@sandervspl try to change use_flipper directly, to configurations: ['Prod - Debug', 'Acc - Debug', 'Test - Debug'] in react-native-pods.rb, its will create xcconfigs. its helped me

hoangntvn86 commented 2 years ago

Just disable flipper in Podfile works for me

use_flipper!()

dlcabral commented 1 year ago

React Native 0.71 here. Do we have any solution if we want to use Flipper?