Describe the bug
Updated to firebase core 0.5.0, and new plugin versions.
To Reproduce
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
.../.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+1Was 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 .
Is it possible to change the projects in flutter ? I use base configuration with VS Code ...
Let me know where i could check it...
Bit of a weird long shot, but can some try remove this line locally and clear all caches etc and rebuild (ensuring that pod install does get run as part of the build): https://github.com/FirebaseExtended/flutterfire/blob/master/packages/firebase_core/firebase_core/ios/firebase_core.podspec#L29
If you look in .flutter-plugins or ios/.symlinks you should be able to find the path to your local pub cached version of firebase_core - can then modify it in that location to make that line removal change.
Hi... i think i can try it... dont know however if i will execute it right ... but a remark ...
the file looks very different to the GitHub one
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
require 'yaml'
pubspec = YAML.load_file(File.join('..', 'pubspec.yaml'))
libraryVersion = pubspec['version'].gsub('+', '-')
Pod::Spec.new do |s|
s.name = 'firebase_core'
s.version = '0.0.1'
s.summary = 'A new flutter plugin project.'
s.description = <<-DESC
A new flutter plugin project.
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => '[email protected]' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'Firebase/Core'
s.ios.deployment_target = '8.0'
s.static_framework = true
s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => "LIBRARY_VERSION=\\@\\\"#{libraryVersion}\\\" LIBRARY_NAME=\\@\\\"flutter-fire-core\\\"" }
end
@Beautylivery that file looks like the old version of firebase_core so somethings not right there, the issue in this thread involves the import of #import <firebase_core/FLTFirebasePlugin.h> - which is only in the latest version of firebase_core - so I imagine something else is going on there for you or a mis-match of package versions. Theres a section on the migration guide that lists all the cross-compatible versions of each of the newly released plugins: https://flutter-firebase-docs.web.app/docs/migration/#2-update-firebase-plugins - check your versions match these if you've updated any of the others.
I need to get some sleep (almost 2am here) but if someone tries what I mentioned below and it works then please send up a PR - I can get it released in the morning then :)
Bit of a weird long shot, but can some try remove this line locally and clear all caches etc and rebuild (ensuring that pod install does get run as part of the build): https://github.com/FirebaseExtended/flutterfire/blob/master/packages/firebase_core/firebase_core/ios/firebase_core.podspec#L29
If you look in
.flutter-pluginsorios/.symlinksyou should be able to find the path to your local pub cached version offirebase_core- can then modify it in that location to make that line removal change.
Hey @Salakar , after i executed the command .. weirdly enough seems POD install dropped the new firebase_core.podspec on the system ... my dependencies where fine.
But the error did remain ....
so i uncommented as suggested
require 'yaml'
pubspec = YAML.load_file(File.join('..', 'pubspec.yaml'))
library_version = pubspec['version'].gsub('+', '-')
firebase_sdk_version = '6.26.0'
if defined?($FirebaseSDKVersion)
Pod::UI.puts "#{pubspec['name']}: Using user specified Firebase SDK version '#{$FirebaseSDKVersion}'"
firebase_sdk_version = $FirebaseSDKVersion
else
firebase_core_script = File.join(File.expand_path('..', File.expand_path('..', File.dirname(__FILE__))), 'firebase_core/ios/firebase_sdk_version.rb')
if File.exist?(firebase_core_script)
require firebase_core_script
firebase_sdk_version = firebase_sdk_version!
Pod::UI.puts "#{pubspec['name']}: Using Firebase SDK version '#{firebase_sdk_version}' defined in 'firebase_core'"
end
end
Pod::Spec.new do |s|
s.name = pubspec['name']
s.version = library_version
s.summary = pubspec['description']
s.description = pubspec['description']
s.homepage = pubspec['homepage']
s.license = { :file => '../LICENSE' }
s.authors = 'The Chromium Authors'
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
#s.public_header_files = 'Classes/**/*.h'
s.ios.deployment_target = '8.0'
# Flutter dependencies
s.dependency 'Flutter'
# Firebase dependencies
s.dependency 'Firebase/CoreOnly', "~> #{firebase_sdk_version}"
s.static_framework = true
s.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => "LIBRARY_VERSION=\\@\\\"#{library_version}\\\" LIBRARY_NAME=\\@\\\"flutter-fire-core\\\"",
'DEFINES_MODULE' => 'YES'
}
end
then
flutter clean
flutter run
Running "flutter pub get" in beautylivervy_appcenter... 0,7s
Launching lib/main.dart on Kai in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 8V89ZSUT6E
Running pod install... 18,9s
Running Xcode build...
But still running into that error
Xcode build done. 199,5s
Failed to build iOS app
Error output from Xcode build:
β³
2020-08-24 08:33:20.000 xcodebuild[12725:976251] 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-24 08:33:20.000 xcodebuild[12725:976251] 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-24 08:33:20.000 xcodebuild[12725:976251] 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-24 08:33:20.000 xcodebuild[12725:976251] 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-24 08:33:20.000 xcodebuild[12725:976251] 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-24 08:33:20.000 xcodebuild[12725:976251] 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-24 08:33:20.000 xcodebuild[12725:976251] 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-24 08:33:20.000 xcodebuild[12725:976251] 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.
Have a good rest got to go to work now .. 08:30 am in China
( btw. any hints how i can manage to work with firebase without VPN from here ? )
One final suggestion for now I have is to change this import: https://github.com/FirebaseExtended/flutterfire/blob/master/packages/firebase_core/firebase_core/ios/Classes/FLTFirebasePlugin.h#L9 to @import Firebase; instead and try rebuild
@Beautylivery that file looks like the old version of
firebase_coreso somethings not right there, the issue in this thread involves the import of#import <firebase_core/FLTFirebasePlugin.h>- which is only in the latest version offirebase_core- so I imagine something else is going on there for you or a mis-match of package versions. Theres a section on the migration guide that lists all the cross-compatible versions of each of the newly released plugins: https://flutter-firebase-docs.web.app/docs/migration/#2-update-firebase-plugins - check your versions match these if you've updated any of the others.
Hi @Salakar , I followed very carefully the migration guide and still have the issue :/
Tried to reproduce this today; on a fresh Flutter project using Swift for iOS everything is working (specifically in this case the build is completing without error).
So it might be a case of regenerating the iOS part of your Flutter project to make sure it's up to date.



So it might be a case of regenerating the iOS part of your Flutter project to make sure it's up to date.
Thank you for the effort π .
I'm quite new to Flutter but my project is big now , how can I regenerate Ios project ? By deleting the ios folder or something else? And would it require to reconfigure all the specific library configurations in Ios?
Best way is to delete your ios directory (or rename it so you can use it to compare changes you've made and then delete it when you're done) and then running flutter create . in the root of your project. It should make a new ios project for you which you'll need to re-apply any library specific configurations that you've done previously on the old copy.
Best way is to delete your ios directory (or rename it so you can use it to compare changes you've made and then delete it when you're done) and then running
flutter create .in the root of your project. It should make a new ios project for you which you'll need to re-apply any library specific configurations that you've done previously on the old copy.
Thank you for the explanation , I'll try that π
Hi i am back...
Regarding my previous old version file ... i switched my Branch i guess first after i build it updated the branch files.
Seems to work but got a couple follow up issues:
d ../ then flutter create (same project name)[!] No podspec found forfirebase_corein.symlinks/plugins/firebase_core/ios
3.Weird Issue that seemed to copy my previous ios_bck name for the backup directory into `.symlinks/plugins/firebase_core/ios_bck --- changing the name in the directory actually solved the issue..Well no success after all the ios play i guess i even messed it up more ...
Error output from Xcode build:
β³
2020-08-24 20:57:23.313 xcodebuild[4557:49742] 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-24 20:57:23.313 xcodebuild[4557:49742] 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-24 20:57:23.313 xcodebuild[4557:49742] 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-24 20:57:23.313 xcodebuild[4557:49742] 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-24 20:57:23.313 xcodebuild[4557:49742] 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-24 20:57:23.313 xcodebuild[4557:49742] 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-24 20:57:23.313 xcodebuild[4557:49742] 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-24 20:57:23.313 xcodebuild[4557:49742] 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:
β³
warning: Stale file '/Users/kaibaier/Me/Entwicklung/Project_Beautylivery/Flutter/Projects/beautylivery-flutter-ac/beautylivervy_appcenter/build/ios/Debug-iphoneos/Runner.app/GoogleService-Info.plist' is located outside of the allowed root
paths.
/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/cloud_firestore-0.14.0+2/ios/Classes/FLTFirebaseFirestoreWriter.m:6:
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/cloud_firestore-0.14.0+2/ios/Classes/FLTFirebaseFirestoreWriter.m:6: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.
Error launching application on Kai.
OMG it seems i found my issue ....
It was quite stupid... and i believe, I can 100 % relate to what has happend, but if you like to recreate it ....
I did a modification to my Pod file as i think there was some requirement to get Firebase running....
however i same to have made that one totally wrong....
Before
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
# Added by KAI
pod 'Firebase/Firestore'
pod 'Firebase/Core'
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
pod 'Firebase/Auth'
pod 'Firebase/Functions'
pod 'Firebase/Storage'
after
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
# Added by KAI
pod 'Firebase/Firestore'
pod 'Firebase/Core'
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
pod 'Firebase/Auth'
pod 'Firebase/Functions'
pod 'Firebase/Storage'
#End
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
seems i just completely moved it out of the realistic range within the POD file... not really sure why i did it in the first place and totally forgot about it until i was reading something about optimisation of the Firebase build ... which i tried in parallel and it worked :D
....
ok there was one more tweek as i first had a blank screen... forgot about that
https://stackoverflow.com/questions/45317777/could-not-find-a-valid-googleservice-info-plist-in-your-project
Adding the following pods in ios/Podfile fixed the issue for me. Are they required? because they are not mentioned in the flutterfire docs.
````
target 'Runner' do
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
pod 'Firebase/Core'
pod 'Firebase/Analytics'
pod 'Firebase/Firestore'
pod 'Firebase/Auth'
pod 'Firebase/Functions'
pod 'Firebase/Storage'
pod 'Firebase/Database'
pod 'Firebase/Messaging'
pod 'Firebase/RemoteConfig'
pod 'Firebase/DynamicLinks'
pod 'Firebase/MLVision'
pod 'Firebase/MLVisionBarcodeModel'
pod 'Firebase/MLVisionFaceModel'
pod 'Firebase/MLVisionLabelModel'
pod 'Firebase/MLVisionTextModel'
#End
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
````
I believe the documentation mentions it but is just not very accurate where in the doc it is required.
@AndrsDev did you have any progress on the related TOActivityCroppedImageProvider.h issue ? As it actually still kills my build in AppCenter.
You shouldn't be adding the Firebase pods to your Podfile, they're automatically added transitivly through each FlutterFire plugin. Does it not work without them?
@Beautylivery the TOActivityCroppedImageProvider.h issue is just a warning in my case.
@Salakar it does not work without them. The only thing that got my issue solved was to add them in the Podfile. I don't know if it is relevant... but I have two flutter applications that share a core package where the firebase plugins are added. Then I import that package in those two applications.
@AndrsDev in my CI / CD it actualy takes it as critically ( using AppCenter to build ) :( ... might need to wait till this can be solved... but at least i can continue testing
OMG it seems i found my issue ....
It was quite stupid... and i believe, I can 100 % relate to what has happend, but if you like to recreate it ....
I did a modification to my Pod file as i think there was some requirement to get Firebase running....however i same to have made that one totally wrong....
Before
# Uncomment this line to define a global platform for your project platform :ios, '9.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end # Added by KAI pod 'Firebase/Firestore' pod 'Firebase/Core' # add the Firebase pod for Google Analytics pod 'Firebase/Analytics' # add pods for any other desired Firebase products # https://firebase.google.com/docs/ios/setup#available-pods pod 'Firebase/Auth' pod 'Firebase/Functions' pod 'Firebase/Storage'after
# Uncomment this line to define a global platform for your project platform :ios, '9.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do # Added by KAI pod 'Firebase/Firestore' pod 'Firebase/Core' # add the Firebase pod for Google Analytics pod 'Firebase/Analytics' # add pods for any other desired Firebase products # https://firebase.google.com/docs/ios/setup#available-pods pod 'Firebase/Auth' pod 'Firebase/Functions' pod 'Firebase/Storage' #End use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end endseems i just completely moved it out of the realistic range within the POD file... not really sure why i did it in the first place and totally forgot about it until i was reading something about optimisation of the Firebase build ... which i tried in parallel and it worked :D
....
ok there was one more tweek as i first had a blank screen... forgot about that
https://stackoverflow.com/questions/45317777/could-not-find-a-valid-googleservice-info-plist-in-your-project
Thank you so much. I faced the same issue last night. This morning I was reading this and then my issue is gone.
Catching up with this issue, has someone proposed a solution? (I posted a duplicate issue while trying the example code at pub.dev)
On a side note I'm puzzled by @Salakar saying "You shouldn't be adding the Firebase pods to your Podfile, they're automatically added transitively through each FlutterFire plugin." Maybe google documentation hasn't been updated because I can still find documentation there that says, for example, to "Add the dependency for Firebase Authentication to your project's Podfile", and when adding an iOS app in Firebase the procedure shown is still to import the Firebase SDK in AppDelegate. _Have these instructions changed?_
Adding the following pods in
ios/Podfilefixed the issue for me. Are they required? because they are not mentioned in the flutterfire docs.
Thank you @AndrsDev ,Adding the dependencies in Podfile solved my issue.
my podfile :
`# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def parse_KV_file(file, separator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
return [];
end
generated_key_values = {}
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) do |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=separator)
if plugin.length == 2
podname = plugin[0].strip()
path = plugin[1].strip()
podpath = File.expand_path("#{path}", file_abs_path)
generated_key_values[podname] = podpath
else
puts "Invalid plugin specification: #{line}"
end
end
generated_key_values
end
target 'Runner' do
use_frameworks!
use_modular_headers!
# Flutter Pod
copied_flutter_dir = File.join(__dir__, 'Flutter')
copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
# Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
# That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
# CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
unless File.exist?(generated_xcode_build_settings_path)
raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
unless File.exist?(copied_framework_path)
FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
end
unless File.exist?(copied_podspec_path)
FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
end
end
# Keep pod path relative so it can be checked into Podfile.lock.
pod 'Flutter', :path => 'Flutter'
# Plugin Pods
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system('rm -rf .symlinks')
system('mkdir -p .symlinks/plugins')
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.each do |name, path|
symlink = File.join('.symlinks', 'plugins', name)
File.symlink(path, symlink)
if name == 'flutter_ffmpeg'
pod name+'/min-gpl-lts', :path => File.join(symlink, 'ios')
else
pod name, :path => File.join(symlink, 'ios')
end
end
end
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'Firebase/DynamicLinks'
#End
use_frameworks!
use_modular_headers!
# flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
#end
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
install! 'cocoapods', :disable_input_output_paths => true
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
@AndrsDev did you have any progress on the related TOActivityCroppedImageProvider.h issue ? As it actually still kills my build in AppCenter.
I got that issue when I used flutter_image_cropper. Then I forked the flutter_image_cropper with an older version (v1.2.3), change the following line of ios/image_cropper.podspec
s.dependency 'TOCropViewController', '~2.5.2'
to
s.dependency 'TOCropViewController', '2.5.2'
then go back to your flutter's pubspec.yaml, and use git dependency
downgrading all firebase plugins to build before August 17 worked form me.
Would someone be able to provide me a repo that I can clone that reproduces this, then I can take a proper look. I tried to reproduce this myself (https://github.com/FirebaseExtended/flutterfire/issues/3272#issuecomment-679079579) but everything worked as expected π
@Salakar Have you tried creating a new flutter project downgrading flutter version to 1.17.5 or v1.12.13+hotfix.9? That could be the key to reproduce this issue, since most of current apps were created with older flutter versions.
UPDATE:
I couldn't reproduce the issue creating a new flutter project with flutter version 1.17.5
UPDATE 2
In the project where I had this issue I removed the firebase pods from ios/Podfile and switched to flutter 1.20.2. Surprisingly the app is compiling with no errors. (at the moment of the issue I was using flutter 1.20.1)
To test the proposition that pods are added transitively, as mentioned by Salakar, I removed pod 'Firebase/Core' and pod 'Firebase/Analytics' from the Podfile; removed import Firebase and removed FirebaseApp.configure() from AppDelegate.swift; and kept the firebase_core: ^0.5.0 dependency intact in pubspec.yaml. This is using the example code for firebase_core taken from pub.dev.
With all those iOS-specific imports removed, it builds successfully in Xcode! When I build the iOS project in IntelliJ, it does not work and shows this output:
Xcode's output:
β³
<module-includes>:1:1: error: umbrella header for module 'GoogleUtilities' does not include header 'GULLoggerCodes.h' [-Werror,-Wincomplete-umbrella]
#import "Headers/GoogleUtilities-umbrella.h"
^
<module-includes>:1:1: error: umbrella header for module 'GoogleUtilities' does not include header 'GULNSData+zlib.h' [-Werror,-Wincomplete-umbrella]
2 errors generated.
In file included from /Users/brianfogel/Sites/firebase_core_example/ios/Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/FIRCoreDiagnostics.m:24:
/Users/brianfogel/Sites/firebase_core_example/ios/Pods/FirebaseCoreDiagnostics/GoogleUtilities/Logger/Private/GULLogger.h:22:9: fatal error: could not build module 'GoogleUtilities'
#import <GoogleUtilities/GULLoggerLevel.h>
~~~~~~~^
3 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
(I'm using Flutter Channel stable, 1.20.2 and Dart version 2.9.1.)
Just wanted to say I had this exact error and I fixed it like @Beautylivery said. The crux of it was to move my pod declaration after target 'Runner' do. In my case I am using firebase_ml_vision and that requires me adding a single pod for barcode scanning.
Adjusting my podfile like below fixed the build error for me:
target "Runner" do
pod "Firebase/MLVisionBarcodeModel"
use_frameworks!
use_modular_headers!
// ...
@acoutts thanks for confirming what works. With the following I was able to build to the iOS emulator from within IntelliJ.
In AppDelegate.swift I removed import Firebase and FirebaseApp.configure().
In the Podfile I put
target 'Runner' do
pod 'Firebase/Core'
pod 'Firebase/Analytics'
// ...
@acoutts thanks for confirming what works. With the following I was able to build to the iOS emulator from within IntelliJ.
In AppDelegate.swift I removed
import FirebaseandFirebaseApp.configure().In the Podfile I put
target 'Runner' do pod 'Firebase/Core' pod 'Firebase/Analytics' // ...
With the new federated plugin setup / FirebaseCore, you do not want to add anything to your podfile like that as it is all managed by the plugin(s). You can override specific version numbers like this:
https://firebase.flutter.dev/docs/overview#overriding-native-sdk-versions
In my case I have added MLVisionBarcodeModel because that's a separate lib which still requires that step.
Just wanted to say I had this exact error and I fixed it like @Beautylivery said. The crux of it was to move my pod declaration after
target 'Runner' do. In my case I am usingfirebase_ml_visionand that requires me adding a single pod for barcode scanning.Adjusting my podfile like below fixed the build error for me:
target "Runner" do pod "Firebase/MLVisionBarcodeModel" use_frameworks! use_modular_headers! // ...
@acoutts You are right! I think we can close this issue, but it would be helpful to update firebase_ml_vision documentation to clearly state that those pods must be added like that.
If I leave these out of the podfile, the build fails:
pod 'Firebase/Core'
pod 'Firebase/Analytics'
This isn't consistent with the instructions here to not add anything to the podfile.
@fogelfish are you using firebase_ml_vision? or adding other pods (not firebase related) to the podfile?
Also try a pod update and make sure your pods are up to date.
I recreated the project from scratch and I can now verify that there is no need to add the FlutterFire pods to AppDelegate.swift or the Podfile. I've been simply working with the example code at pub.dev for firebase_core, unchanged by me and no other pods involved.
@acoutts
Your way solved my problem as well.
So do you have any idea why this old way has become inappropriate?
https://github.com/FirebaseExtended/flutterfire/blob/master/packages/firebase_ml_vision/example/ios/Podfile#L68
By the way, the problem I faced while building was "The 'Pods-Runner' target has transitive dependencies that include static frameworks" and while it didn't mentioned firebase, upgrading it with fixed Podfile solved it.
Thanks @AndrsDev your solution worked for me!
Hi guys,
I don't use any methods above. But these steps fixed the issue for me. Hope they will help you too.
firebase_database: ^4.0.0
firebase_messaging: ^7.0.0
firebase_analytics: ^6.0.0
firebase_core: ^0.5.0
firebase_auth: ^0.18.0+1
pod cache clean βallflutter cleanflutter pub getpod installHi guys,
I don't use any methods above. But these steps fixed the issue for me. Hope they will help you too.
- Replace the firebase packages to the latest versions.
firebase_database: ^4.0.0
firebase_messaging: ^7.0.0
firebase_analytics: ^6.0.0
firebase_core: ^0.5.0
firebase_auth: ^0.18.0+1
- Remove ios/Pods folder.
- Remove Podfile and Podfile.lock
- Remove pubspec.lock
- Open terminal and run these commands one after another
pod cache clean βall
flutter clean
flutter pub get
pod install
This helped me
Most helpful comment
Just wanted to say I had this exact error and I fixed it like @Beautylivery said. The crux of it was to move my pod declaration after
target 'Runner' do. In my case I am usingfirebase_ml_visionand that requires me adding a single pod for barcode scanning.Adjusting my podfile like below fixed the build error for me: