Saturday, September 24, 2022
HomeiOS Developmentios - -U and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) can't be used collectively...

ios – -U and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) can’t be used collectively in Xcode 13


I am dealing with this difficulty when I attempt to run the app in Xcode. my Xcode model is 13.2.1 (13C100)

-U and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) can’t be used collectively

Here is my podfile

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

platform :ios, '13.0'
set up! 'cocoapods', :deterministic_uuids => false

goal 'Mcsc' do
  use_frameworks!
  config = use_native_modules!

  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'

  pod 'GoogleMaps'

  pod 'RNFBApp', :path => '../node_modules/@react-native-firebase/app'
  pod 'GoogleUtilities', :modular_headers => true
  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  pod 'FirebaseCoreInternal', :modular_headers => true
  pod 'FirebaseStorage', :modular_headers => true
  pod 'FirebaseStorageInternal', :modular_headers => true
  pod 'FirebaseAppCheckInterop', :modular_headers => true
  pod 'FirebaseAuthInterop', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true

  permissions_path="../node_modules/react-native-permissions/ios"
  pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"

  # Flags change relying on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # to allow hermes on iOS, change `false` to `true` after which set up pods
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # An absolute path to your software root.
    :app_path => "#{Pod::Config.occasion.installation_root}/.."
  )

  goal 'McscTests' do
    inherit! :full
    # Pods for testing
  finish

  # Permits Flipper.
  #
  # Word that if in case you have use_frameworks! enabled, Flipper won't work and
  # it's best to disable the subsequent line.
  # use_flipper!()

  pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.ship(:define_method, :verify_no_static_framework_transitive_dependencies) {}
    installer.pod_targets.every do |pod|
      if pod.title.eql?('RNPermissions') || pod.title.start_with?('Permission-')
        def pod.build_type;
          # Uncomment the road similar to your CocoaPods model
          Pod::BuildType.static_library # >= 1.9
          # Pod::Goal::BuildType.static_library # < 1.9
        finish
      finish
    finish
  finish

  post_install do |installer|
    # config.build_settings['ENABLE_BITCODE'] = 'NO'
    # Pod::Installer::Xcode::TargetValidator.ship(:define_method, :verify_no_static_framework_transitive_dependencies) {}
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
    `sed -i -e  $'s/__IPHONE_10_0/__IPHONE_12_0/' Pods/RCT-Folly/folly/portability/Time.h`
  finish
finish

Any assist could be nice! I attempted disabling bitcode and it nonetheless confirmed ENABLE_BITCODE=YES within the error message – cleaned my construct folder too. Actually out of concepts proper now.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular