[firebase_core] iOS could not build module 'firebase_core'
Describe the bug Updated to firebase core 0.5.0, and new plugin versions.
To Reproduce
- Create a new flutter project
- Install the following plugins:
firebase_core: 0.5.0
firebase_auth: 0.18.0+1
firebase_storage: 4.0.0
firebase_messaging: 7.0.0
cloud_functions: 0.6.0
cloud_firestore: 0.14.0+1
firebase_database: 4.0.0
firebase_dynamic_links: 0.6.0
firebase_analytics: 6.0.0
firebase_remote_config: 0.4.0
- Run the application on iOS Simulator
- The following error appears:
.../.pub-cache/hosted/pub.dartlang.org/firebase_database-4.0.0/ios/Classes/FLTFirebaseDatab
asePlugin.m:8:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePlugin.h>
~~~~~~~^
Expected behavior A successful build for the iOS simulator
Flutter doctor
[✓] Flutter (Channel stable, 1.20.1, on Mac OS X 10.15.6 19G2021, locale en)
• Flutter version 1.20.1 at /Users/andrs/Library/flutter
• Framework revision 2ae34518b8 (2 weeks ago), 2020-08-05 19:53:19 -0700
• Engine revision c8e3b94853
• Dart version 2.9.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/andrs/Library/Android/sdk
• Platform android-30, build-tools 30.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 47.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.48.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.2
[✓] Connected device (1 available)
• iPhone 11 Pro (mobile) • 5733377A-4BD7-42F9-9453-C7B123A5C3CB • ios •
com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
Complete output
Launching lib/main.dart on iPhone 11 Pro in debug mode...
Running pod install... 22.3s
Running Xcode build...
Xcode build done. 159.8s
Failed to build iOS app
Error output from Xcode build:
↳
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for
"Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h" is a member of multiple
groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project.
Only the membership in one of the groups will be preserved (but membership in targets will be
unaffected). If you want a reference to the same file in more than one group, please add another
reference to the same path.
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropOverlayView.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected).
If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for
"Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected).
If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropScrollView.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected).
If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropToolbar.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected).
If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropView.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected).
If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for
"Objective-C/TOCropViewController/TOCropViewController.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected).
If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for
"Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h" is a member of
multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed
project. Only the membership in one of the groups will be preserved (but membership in targets will
be unaffected). If you want a reference to the same file in more than one group, please add another
reference to the same path.
** BUILD FAILED **
Xcode's output:
↳
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.0.13/ios/Classes/QRView.swift:47:2
5: warning: variable 'arguments' was never mutated; consider changing to 'let' constant
var arguments = call.arguments as! Dictionary<String, Double>
~~~ ^
let
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.0.13/ios/Classes/QRViewFactory.swi
ft:20:13: warning: variable 'dictionary' was never mutated; consider changing to 'let' constant
var dictionary = args as! Dictionary<String, Double>
~~~ ^
let
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.0/ios/Classes/FLTFirebaseMess
agingPlugin.m:190:43: warning: 'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is
deprecated, please use APNs for downstream message handling. [-Wdeprecated-declarations]
- (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
In module 'FirebaseMessaging' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/Firebase/Fireba
se.h:72:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/FirebaseMessaging/FirebaseMess
aging/Sources/Public/FIRMessaging.h:219:1: note: 'FIRMessagingRemoteMessage' has been explicitly
marked deprecated here
__deprecated_msg(
^
In module 'Foundation' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/FirebaseCore/FI
RApp.h:17:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/usr/include/sys/cdefs.h:191:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.0/ios/Classes/FLTFirebaseMess
agingPlugin.m:290:24: warning: 'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is
deprecated, please use APNs for downstream message handling. [-Wdeprecated-declarations]
didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
In module 'FirebaseMessaging' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/Firebase/Fireba
se.h:72:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/FirebaseMessaging/FirebaseMess
aging/Sources/Public/FIRMessaging.h:219:1: note: 'FIRMessagingRemoteMessage' has been explicitly
marked deprecated here
__deprecated_msg(
^
In module 'Foundation' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/FirebaseCore/FI
RApp.h:17:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/usr/include/sys/cdefs.h:191:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.0/ios/Classes/FLTFirebaseMess
agingPlugin.m:136:30: warning: 'shouldEstablishDirectChannel' is deprecated: FCM direct channel is
deprecated, please use APNs channel for downstream message delivery. [-Wdeprecated-declarations]
[FIRMessaging messaging].shouldEstablishDirectChannel = true;
^
In module 'FirebaseMessaging' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/Firebase/Fireba
se.h:72:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/FirebaseMessaging/FirebaseMess
aging/Sources/Public/FIRMessaging.h:283:56: note: 'shouldEstablishDirectChannel' has been explicitly
marked deprecated here
@property(nonatomic) BOOL shouldEstablishDirectChannel DEPRECATED_MSG_ATTRIBUTE(
^
In module 'Foundation' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/FirebaseCore/FI
RApp.h:17:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/usr/include/AvailabilityMacros.h:182:64: note: expanded from macro
'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.0/ios/Classes/FLTFirebaseMess
agingPlugin.m:191:52: warning: 'appData' is deprecated [-Wdeprecated-declarations]
[self didReceiveRemoteNotification:remoteMessage.appData];
^
In module 'FirebaseMessaging' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/Firebase/Fireba
se.h:72:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/FirebaseMessaging/FirebaseMess
aging/Sources/Public/FIRMessaging.h:226:62: note: 'appData' has been explicitly marked deprecated
here
@property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
^
In module 'Foundation' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/FirebaseCore/FI
RApp.h:17:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/usr/include/AvailabilityMacros.h:180:60: note: expanded from macro
'DEPRECATED_ATTRIBUTE'
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.0/ios/Classes/FLTFirebaseMess
agingPlugin.m:289:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)messaging:(FIRMessaging *)messaging
^
In module 'FirebaseMessaging' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/Firebase/Fireba
se.h:72:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/FirebaseMessaging/FirebaseMess
aging/Sources/Public/FIRMessaging.h:253:1: note: method 'messaging:didReceiveMessage:' declared here
- (void)messaging:(FIRMessaging *)messaging
^
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.0/ios/Classes/FLTFirebaseMess
agingPlugin.m:291:63: warning: 'appData' is deprecated [-Wdeprecated-declarations]
[_channel invokeMethod:@"onMessage" arguments:remoteMessage.appData];
^
In module 'FirebaseMessaging' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/Firebase/Fireba
se.h:72:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/FirebaseMessaging/FirebaseMess
aging/Sources/Public/FIRMessaging.h:226:62: note: 'appData' has been explicitly marked deprecated
here
@property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
^
In module 'Foundation' imported from
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/FirebaseCore/FI
RApp.h:17:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneS
imulator13.6.sdk/usr/include/AvailabilityMacros.h:180:60: note: expanded from macro
'DEPRECATED_ATTRIBUTE'
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
6 warnings generated.
While building module 'firebase_core' imported from
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_database-4.0.0/ios/Classes/FLTFirebaseDatab
asePlugin.m:8:
In file included from <module-includes>:1:
In file included from /Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Target
Support Files/firebase_core/firebase_core-umbrella.h:13:
In file included from
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebaseCorePlugi
n.h:11:
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebasePlugin.h:
9:9: error: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin':
'/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/FirebaseCore/F
irebaseCore.h' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_database-4.0.0/ios/Classes/FLTFirebaseDatab
asePlugin.m:8:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePlugin.h>
~~~~~~~^
2 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/TOCropViewController/Objective
-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h (in target 'TOCropViewController'
from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/TOCropViewController/Objective
-C/TOCropViewController/Views/TOCropOverlayView.h (in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/TOCropViewController/Objective
-C/TOCropViewController/Models/TOCroppedImageAttributes.h (in target 'TOCropViewController' from
project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/TOCropViewController/Objective
-C/TOCropViewController/Views/TOCropScrollView.h (in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/TOCropViewController/Objective
-C/TOCropViewController/Views/TOCropToolbar.h (in target 'TOCropViewController' from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/TOCropViewController/Objective
-C/TOCropViewController/Views/TOCropView.h (in target 'TOCropViewController' from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/TOCropViewController/Objective
-C/TOCropViewController/TOCropViewController.h (in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/TOCropViewController/Objective
-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h (in target 'TOCropViewController'
from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro.
Facing same issue
No amount of cleaning (flutter, pods, etc.) helped. Reverting to the penultimate version did the trick.
No amount of cleaning (flutter, pods, etc.) helped. Reverting to the penultimate version did the trick.
Which version ??.. i am using latest one
image_cropper: ^1.3.0 .... v1.2.3 also didnt work for me
No amount of cleaning (flutter, pods, etc.) helped. Reverting to the penultimate version did the trick.
Which version ??.. i am using latest one
image_cropper: ^1.3.0
Are you stating that the above error about firebase_core was caused by a later version of image_cropper? If so, that's news to me. However, for those who just updated all their flutter dependencies and got the latest firebase_* plugins (pretty much all were updated around 8/17), just go to the version right before the most recent one (for each firebase plugin). For example, I had to revert mine to the following:
firebase_core: ^0.4.5 firebase_analytics: ^5.0.16 firebase_remote_config: ^0.3.1+1
No amount of cleaning (flutter, pods, etc.) helped. Reverting to the penultimate version did the trick.
Which version ??.. i am using latest one
image_cropper: ^1.3.0Are you stating that the above error about firebase_core was caused by a later version of image_cropper? If so, that's news to me. However, for those who just updated all their flutter dependencies and got the latest firebase_* plugins (pretty much all were updated around 8/17), just go to the version right before the most recent one (for each firebase plugin). For example, I had to revert mine to the following:
firebase_core: ^0.4.5 firebase_analytics: ^5.0.16 firebase_remote_config: ^0.3.1+1
Was talking about this issue
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for "Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
No amount of cleaning (flutter, pods, etc.) helped. Reverting to the penultimate version did the trick.
Which version ??.. i am using latest one
image_cropper: ^1.3.0Are you stating that the above error about firebase_core was caused by a later version of image_cropper? If so, that's news to me. However, for those who just updated all their flutter dependencies and got the latest firebase_* plugins (pretty much all were updated around 8/17), just go to the version right before the most recent one (for each firebase plugin). For example, I had to revert mine to the following: firebase_core: ^0.4.5 firebase_analytics: ^5.0.16 firebase_remote_config: ^0.3.1+1
Was talking about this issue
2020-08-20 16:25:08.109 xcodebuild[69982:2371607] warning: The file reference for "Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
Those look more like warnings to me. The OP is referring to these errors:
While building module 'firebase_core' imported from
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_database-4.0.0/ios/Classes/FLTFirebaseDatab
asePlugin.m:8:
In file included from <module-includes>:1:
In file included from /Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Target
Support Files/firebase_core/firebase_core-umbrella.h:13:
In file included from
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebaseCorePlugi
n.h:11:
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebasePlugin.h:
9:9: error: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin':
'/Users/andrs/Documents/Projects/Tutting/Software/student_app/ios/Pods/Headers/Public/FirebaseCore/F
irebaseCore.h' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/andrs/.pub-cache/hosted/pub.dartlang.org/firebase_database-4.0.0/ios/Classes/FLTFirebaseDatab
asePlugin.m:8:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePlugin.h>
~~~~~~~^
@dcchristopher @Kedar-27 the isuue is about the firebase_core, the logs about TOCropViewController are warnings generated by Xcode, but I insist the error is the following:
/.pub-cache/hosted/pub.dartlang.org/firebase_database-4.0.0/ios/Classes/FLTFirebaseDatab
asePlugin.m:8:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePlugin.h>
~~~~~~~^
Running into the same error
Failed to build iOS app
Error output from Xcode build:
↳
2020-08-22 20:29:07.046 xcodebuild[14582:63993] warning: The file reference for "Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this
indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-22 20:29:07.046 xcodebuild[14582:63993] warning: The file reference for "Objective-C/TOCropViewController/Views/TOCropOverlayView.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a
malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2020-08-22 20:29:07.046 xcodebuild[14582:63993] warning: The file reference for "Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this
indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-22 20:29:07.046 xcodebuild[14582:63993] warning: The file reference for "Objective-C/TOCropViewController/Views/TOCropScrollView.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a
malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2020-08-22 20:29:07.046 xcodebuild[14582:63993] warning: The file reference for "Objective-C/TOCropViewController/Views/TOCropToolbar.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a
malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2020-08-22 20:29:07.046 xcodebuild[14582:63993] warning: The file reference for "Objective-C/TOCropViewController/Views/TOCropView.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a
malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2020-08-22 20:29:07.046 xcodebuild[14582:63993] warning: The file reference for "Objective-C/TOCropViewController/TOCropViewController.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a
malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2020-08-22 20:29:07.046 xcodebuild[14582:63993] warning: The file reference for "Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController");
this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to
the same path.
** BUILD FAILED **
Xcode's output:
↳
/Users/kaibaier/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_appcenter_bundle-3.2.0+2/ios/Classes/SwiftFlutterAppcenterBundlePlugin.swift:20:9: warning: result of call to 'register(binaryMessenger:)' is unused
register(binaryMessenger: registrar.messenger());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
While building module 'firebase_core' imported from /Users/kaibaier/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/firebase_storage-4.0.0/ios/Classes/FLTFirebaseStoragePlugin.m:8:
In file included from <module-includes>:1:
In file included from /Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/Target Support Files/firebase_core/firebase_core-umbrella.h:13:
In file included from /Users/kaibaier/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/firebase_core-0.5.0/ios/Classes/FLTFirebaseCorePlugin.h:11:
/Users/kaibaier/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/firebase_core-0.5.0/ios/Classes/FLTFirebasePlugin.h:9:9: error: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin':
'/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/Headers/Public/FirebaseCore/FirebaseCore.h' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/kaibaier/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/firebase_storage-4.0.0/ios/Classes/FLTFirebaseStoragePlugin.m:8:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePlugin.h>
~~~~~~~^
2 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h (in target
'TOCropViewController' from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropOverlayView.h (in target 'TOCropViewController' from
project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h (in target
'TOCropViewController' from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropScrollView.h (in target 'TOCropViewController' from
project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.h (in target 'TOCropViewController' from
project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropView.h (in target 'TOCropViewController' from
project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.h (in target 'TOCropViewController' from
project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h (in target
'TOCropViewController' from project 'Pods')
Could not build the precompiled application for the device.
Kais-MacBook-Pro:beautylivervy_appcenter kaibaier$ flutter doctor -v
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.6 19G2021, locale de-DE)
• Flutter version 1.20.2 at /Users/kaibaier/development/flutter
• Framework revision bbfbf1770c (9 days ago), 2020-08-13 08:33:09 -0700
• Engine revision 9d5b21729f
• Dart version 2.9.1
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/kaibaier/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/kaibaier/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.48.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.2
[✓] Connected device (2 available)
• Redmi Note 8 (mobile) • 18d3ce30 • android-arm64 • Android 9 (API 28)
• Kai (mobile) • 00008020-0019348C3491002E • ios • iOS 13.6
Just updated my firebase dependencies and got the same issue. Tried every imaginable clean and rebuild but the error is still here.
6 warnings generated.
While building module 'firebase_core' imported from /Users/admin/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-4.0.0/ios/Classes/FLTFirebaseStoragePlugin.m:8:
In file included from <module-includes>:1:
In file included from /Users/admin/Desktop/lit/ios/Pods/Target Support Files/firebase_core/firebase_core-umbrella.h:13:
In file included from /Users/admin/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebaseCorePlugin.h:11:
/Users/admin/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/ios/Classes/FLTFirebasePlugin.h:9:9: error: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin':
'/Users/admin/Desktop/lit/ios/Pods/Headers/Public/FirebaseCore/FirebaseCore.h' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/admin/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-4.0.0/ios/Classes/FLTFirebaseStoragePlugin.m:8:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePlugin.h>
~~~~~~~^
2 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
I have time same issue, have you use package image_cropper?
I have time same issue, have you use package image_cropper?
nope but I use crop: ^0.4.0 .
I tried just removing the image cropper ..... the firebase issues still remain on iOS and prevent my builds :(
I tried just removing the image cropper ..... the firebase issues still remain on iOS and prevent my builds :(
Have you tried reverting to the version of firebase dependencies right before the most recent ones that came out just a few days ago?
Here is a list of my current dependencies resulting in the error on iOS .... the # ones are the ones i used before and everything was working (besides super slow build times)
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
# Firebase dependencies for all connections to the firebase components
firebase_core: ^0.5.0 #^0.4.5
firebase_auth: ^0.18.0+1 #^0.16.1
firebase_storage: ^4.0.0 #^3.1.6
cloud_firestore: ^0.14.0+2 #^0.13.7
#Provider Package for Stream solution over the whole plattform
provider: ^4.3.2 #^4.0.4
#flutter spinkit and additional vector icons
flutter_spinkit: ^4.1.2+1 #^4.1.2
flutter_vector_icons: ^0.2.1
#intl for localization and calculaitons on currency
intl: ^0.16.1
#image croppper and picker for image management
image_cropper: ^1.3.0 #^1.2.1
image_picker: ^0.6.7+4 #^0.6.3
#searchable Dropdown
searchable_dropdown: ^1.1.3
#Pick colors
flutter_colorpicker: ^0.3.4
#Mask Text that is going beyond borders
flutter_masked_text: ^0.8.0
#Shared Preferences over the wholeApplication
shared_preferences: ^0.5.8 #^0.5.7+3
#Flutter plugin for getting commonly used locations on the Android & iOS file systems, such as the temp and app data directories.
path_provider: ^1.6.11
#For Geolocation
geolocator: ^5.3.2+2
location: ^3.0.2
#Microsoft Visual Studio Appcenter for Analytics
flutter_appcenter_bundle: ^3.2.0+2
#Experimantal
preload_page_view: ^0.1.4
device_preview: ^0.4.8 #^0.4.5
So the point I've been painstakingly trying to make is that for now you have to roll back to your previous firebase versions (the ones after the #). Once the firebase team fixes the issues introduced in their latest release I'm sure there will be an update in this thread.
Certainly i can do that. This however remains another error i will not get rid off and this is build times of 10 to 30 minutes . I was actually hoping to get rid of these with the new updates.
Therefore i will now wait instead of reverting.
Thanks dcchristopher for your fast replies and support :)
Seeing same issue here. I'm not using Image Cropper either. Has occurred since I tried to use firebase_ml_vision 0.9.6+2
Have cleaned, updated, rebuilt pods - the works.
Would you share the exact commands and where you executed them ? flutter dir or iOS dir ? ... it might worth to try again.
To confirm, is everyone here using a Swift iOS project instead of obj-c?
To confirm, is everyone here using a Swift iOS project instead of obj-c?
Yes my friend .