Closed
Description
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.