iOS build failed: Starting from Xcode 14

🍎 iOS build failed:

Starting from Xcode 14, resource bundles are signed by default, which requires setting the development team for each resource bundle target.

To resolve this issue, downgrade to an older Xcode version using the “image” field in eas.json, or turn off signing resource bundles in your Podfile: https://expo.fyi/r/disable-bundle-resource-signing

Learn more: https://docs.expo.dev/build-reference/infrastructure/#ios-build-server-configurations

entre na pasta ios:

terminal: pod install e logo após pod update

Logo Após

  #   # Workaround `Cycle inside FBReactNativeSpec` error for react-native 0.64
  #   # Reference: https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-812543933
  #   installer.pods_project.targets.each do |target|
  #     if (target.name&.eql?('FBReactNativeSpec'))
  #       target.build_phases.each do |build_phase|
  #         if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs'))
  #           target.build_phases.move(build_phase, 0)
  #         end
  #       end
  #     end
  #   end
  # end


  post_install do |installer|
      installer.pods_project.targets.each do |target|
          target.build_configurations.each do |config|
              
              # disable code signing for pods
              config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
              config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
              config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
          end
      end
  end

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *