Closed nissaba closed 1 month ago
Hi @nissaba , I'm unable to reproduce this issue. I suspect it could have something to do with your Xcode configurations. Kindly refer here.
When I upgraded Xcode to version 16.1.0-Beta, my flutter project couldn’t run on iOS Simulator. Almost same issue, except mine was caused by Crashlytics. After making the following changes, my project ran successfully:
Modified the PROJECT - Runner - Build Settings:
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
Modified the TARGETS - Runner - Build Settings:
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
target.build_configurations.each do |config|
config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
pod install
Then try run your project on iOS.
When I upgraded Xcode to version 16.1.0-Beta, my flutter project couldn’t run on iOS Simulator. Almost same issue, except mine was caused by Crashlytics. After making the following changes, my project ran successfully:
- Modified the PROJECT - Runner - Build Settings:
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
- Modified the TARGETS - Runner - Build Settings:
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
- Added the following to the Podfile:
target.build_configurations.each do |config| config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES' end
- run
pod install
Then try run your project on iOS.
This does work. I had found a stackOverflow with the update for the podfile, but they had not included to update the clan module rules.
Thanks!
Worked for me too
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
iOS
Description
Firebase auth is preventing the building of my project. If I remove firebase auth from vergin flutter project ti will build, if it is present it will fail.
Reproducing the issue
1) create a new flutter project. 2) add firebase_core, firebase_auth and cloud_firestore, update pubspec 3) run the project
Firebase Core version
3.4.0
Flutter Version
3.24.1
Relevant Log Output
Flutter dependencies
Expand
dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.8 firebase_core: ^3.4.0 cloud_firestore: ^5.4.0 firebase_auth: ^5.2.0
snippet```yaml Replace this line with the contents of your `flutter pub deps -- --style=compact`. ```
Additional context and comments
No response