DavBfr / dart_pdf

Pdf creation module for dart/flutter
https://pub.dev/packages/pdf
Apache License 2.0
1.4k stars 626 forks source link

definition of 'PrintingPlugin' must be imported from module 'printing.PrintingPlugin' before it is required #194

Closed Gicminos closed 4 years ago

Gicminos commented 4 years ago

Describe the bug The App crashes when trying to run on iOS.

    === BUILD TARGET url_launcher OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/printing-2.1.8/ios/Classes/PrintingPlugin.m:20:17: error: definition
    of 'PrintingPlugin' must be imported from module 'printing.PrintingPlugin' before it is required
    @implementation PrintingPlugin
                    ^
    In module 'printing' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/printing-2.1.8/ios/Classes/PrintingPlugin.m:18:
    /Users/mikael/Documents/itseccomp_mobile/build/ios/Debug-iphonesimulator/printing/printing.framework/Headers/PrintingPlugin.h:19:12: note:
    previous definition is here
    @interface PrintingPlugin : NSObject <FlutterPlugin>
               ^
    1 error generated.

To Reproduce Currently using Flutter v1.12.13+hotfix.5 and Xcode 11.3 My packages:

version: 1.0.1+2

environment:
  sdk: ">=2.2.2 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  flutter_localizations:
    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.2
  http: ^0.12.0
  shared_preferences: ^0.5.3+1

  # Cannot upgrade for library changes problems
  flutter_facebook_login: 2.0.1

  google_sign_in: ^4.0.2
  url_launcher: ^5.0.3
  scoped_model: ^1.0.1
  image_picker: ^0.5.0
  pdf: ^1.3.17
  path_provider: ^1.2.0
  share_extend: ^1.0.9

  cached_network_image: 2.0.0-rc

  quiver: '>=2.0.0 <3.0.0'
  open_file: ^2.1.1
  printing: ^2.1.8

  firebase_messaging: ^5.1.3
  flushbar: ^1.8.2
  webfeed: ^0.4.2

  # UX packages
  tinycolor: ^1.0.2
  random_color: ^1.0.3
  charts_flutter: ^0.8.1
  page_transition: ^1.1.4
  draggable_scrollbar: ^0.0.4
  rflutter_alert: ^1.0.3
  font_awesome_flutter: ^8.5.0
  flutter_svg: ^0.14.3
  auto_size_text: ^2.1.0
  marquee: ^1.3.1
  progress_indicators: ^0.1.4

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_launcher_icons: ^0.7.4

Expected behavior To successfully build the application

Flutter Doctor Paste the output of running flutter doctor -v here.

[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G95, locale en-GB)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[!] Android Studio (not installed)
[✓] Connected device (2 available)

! Doctor found issues in 2 categories.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Complete log error:


Xcode build done.                                           46.0s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:133:17: warning: block implicitly
    retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    _view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(_view.bounds), 0.0);
                    ^
                    self->
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:133:67: warning: block implicitly
    retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    _view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(_view.bounds), 0.0);
                                                                      ^
                                                                      self->
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:148:18: warning: block implicitly
    retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    [_view sizeToFit];
                     ^
                     self->
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:189:13: warning: block implicitly
    retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            if (_navigationController) {
                ^
                self->
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:190:40: warning: block implicitly
    retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                [self updateNavigationBarY:_view.statusBarHeight];
                                           ^
                                           self->
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:193:24: warning: block implicitly
    retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            CGRect frame = _view.frame;
                           ^
                           self->
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:195:9: warning: block implicitly
    retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _view.frame = frame;
            ^
            self->
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:203:17: warning: block implicitly
    retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    _view.closed = YES;
                    ^
                    self->
    8 warnings generated.
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: warning: 'sqlite3_wal_checkpoint_v2' is only
    available on iOS 5.0 or newer [-Wunguarded-availability]
        int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'SQLite3' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabase.m:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/sqlite3.h
    :8428:16: note: 'sqlite3_wal_checkpoint_v2' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
    SQLITE_API int sqlite3_wal_checkpoint_v2(
                   ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: note: enclose 'sqlite3_wal_checkpoint_v2' in an
    @available check to silence this warning
        int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
    1 warning generated.
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: warning: 'dispatch_queue_set_specific' is only
    available on iOS 5.0 or newer [-Wunguarded-availability]
            dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'Foundation' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:
    In module 'CoreFoundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/Foundation.framework/Headers/Foundation.h:6:
    In module 'Dispatch' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/CoreFoundation.framework/Headers/CFStream.h:20:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/dispatch/
    queue.h:1498:1: note: 'dispatch_queue_set_specific' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS
    4.3.0
    dispatch_queue_set_specific(dispatch_queue_t queue, const void *key,
    ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: note: enclose 'dispatch_queue_set_specific' in an
    @available check to silence this warning
            dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: warning: 'dispatch_get_specific' is only
    available on iOS 5.0 or newer [-Wunguarded-availability]
        FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);
                                                         ^~~~~~~~~~~~~~~~~~~~~
    In module 'Foundation' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:
    In module 'CoreFoundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/Foundation.framework/Headers/Foundation.h:6:
    In module 'Dispatch' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/CoreFoundation.framework/Headers/CFStream.h:20:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/dispatch/
    queue.h:1554:1: note: 'dispatch_get_specific' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
    dispatch_get_specific(const void *key);
    ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: note: enclose 'dispatch_get_specific' in an
    @available check to silence this warning
        FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);
                                                         ^~~~~~~~~~~~~~~~~~~~~
    2 warnings generated.
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppEvents.m:42:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:25:42:
    warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    + (void)setUserDataAndHash:(NSDictionary *)ud;
                                             ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:25:42:
    note: insert '_Nullable' if the pointer may be null
    + (void)setUserDataAndHash:(NSDictionary *)ud;
                                             ^
                                              _Nullable
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:25:42:
    note: insert '_Nonnull' if the pointer should never be null
    + (void)setUserDataAndHash:(NSDictionary *)ud;
                                             ^
                                              _Nonnull
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:38:13:
    warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    + (NSString *) getHashedUserData;
                ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:38:13:
    note: insert '_Nullable' if the pointer may be null
    + (NSString *) getHashedUserData;
                ^
                 _Nullable
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:38:13:
    note: insert '_Nonnull' if the pointer should never be null
    + (NSString *) getHashedUserData;
                ^
                 _Nonnull
    2 warnings generated.
    === BUILD TARGET printing OF PROJECT Pods WITH CONFIGURATION Debug ===
    In file included from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.m:19:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:25:42:
    warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    + (void)setUserDataAndHash:(NSDictionary *)ud;
                                             ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:25:42:
    note: insert '_Nullable' if the pointer may be null
    + (void)setUserDataAndHash:(NSDictionary *)ud;
                                             ^
                                              _Nullable
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:25:42:
    note: insert '_Nonnull' if the pointer should never be null
    + (void)setUserDataAndHash:(NSDictionary *)ud;
                                             ^
                                              _Nonnull
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:38:13:
    warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
    + (NSString *) getHashedUserData;
                ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:38:13:
    note: insert '_Nullable' if the pointer may be null
    + (NSString *) getHashedUserData;
                ^
                 _Nullable
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKUserDataStore.h:38:13:
    note: insert '_Nonnull' if the pointer should never be null
    + (NSString *) getHashedUserData;
                ^
                 _Nonnull
    2 warnings generated.
    While building module 'Flutter' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.h:5:
    In file included from <module-includes>:1:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/Flutter.h:54:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPlugin.h:93:44: warning:
    'UIBackgroundFetchResult' is only available on iOS 7.0 or newer [-Wunguarded-availability]
              fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
                                               ^
    In module 'UIKit' imported from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIApplication.h:77:29: note: 'UIBackgroundFetchResult' has been marked as being introduced in iOS 7.0 here,
    but the deployment target is iOS 4.3.0
    typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) {
                                ^
    While building module 'Flutter' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.h:5:
    In file included from <module-includes>:1:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/Flutter.h:54:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPlugin.h:91:1: note: annotate
    'application:didReceiveRemoteNotification:fetchCompletionHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPlugin.h:155:49: warning:
    'UIBackgroundFetchResult' is only available on iOS 7.0 or newer [-Wunguarded-availability]
        performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
                                                    ^
    In module 'UIKit' imported from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIApplication.h:77:29: note: 'UIBackgroundFetchResult' has been marked as being introduced in iOS 7.0 here,
    but the deployment target is iOS 4.3.0
    typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) {
                                ^
    While building module 'Flutter' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.h:5:
    In file included from <module-includes>:1:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/Flutter.h:54:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPlugin.h:154:1: note: annotate
    'application:performFetchWithCompletionHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPlugin.h:163:27: warning: 'NSUserActivity'
    is only available on iOS 8.0 or newer [-Wunguarded-availability]
        continueUserActivity:(NSUserActivity*)userActivity
                              ^
    In module 'Foundation' imported from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterBinaryMessenger.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/Foundation.framework/Headers/NSUserActivity.h:20:12: note: 'NSUserActivity' has been marked as being introduced in iOS 8.0 here, but
    the deployment target is iOS 4.3.0
    @interface NSUserActivity : NSObject
               ^
    While building module 'Flutter' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.h:5:
    In file included from <module-includes>:1:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/Flutter.h:54:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPlugin.h:162:1: note: annotate
    'application:continueUserActivity:restorationHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    While building module 'Flutter' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.h:5:
    In file included from <module-includes>:1:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/Flutter.h:65:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPluginAppLifeCycleDelegate.h:65:44: warning:
    'UIBackgroundFetchResult' is only available on iOS 7.0 or newer [-Wunguarded-availability]
              fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
                                               ^
    In module 'UIKit' imported from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIApplication.h:77:29: note: 'UIBackgroundFetchResult' has been marked as being introduced in iOS 7.0 here,
    but the deployment target is iOS 4.3.0
    typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) {
                                ^
    While building module 'Flutter' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.h:5:
    In file included from <module-includes>:1:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/Flutter.h:65:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPluginAppLifeCycleDelegate.h:63:1: note:
    annotate 'application:didReceiveRemoteNotification:fetchCompletionHandler:' with an availability attribute to silence this warning
    - (void)application:(UIApplication*)application
    ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPluginAppLifeCycleDelegate.h:130:49:
    warning: 'UIBackgroundFetchResult' is only available on iOS 7.0 or newer [-Wunguarded-availability]
        performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
                                                    ^
    In module 'UIKit' imported from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIApplication.h:77:29: note: 'UIBackgroundFetchResult' has been marked as being introduced in iOS 7.0 here,
    but the deployment target is iOS 4.3.0
    typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) {
                                ^
    While building module 'Flutter' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.h:5:
    In file included from <module-includes>:1:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/Flutter.h:65:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPluginAppLifeCycleDelegate.h:129:1: note:
    annotate 'application:performFetchWithCompletionHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPluginAppLifeCycleDelegate.h:139:27:
    warning: 'NSUserActivity' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        continueUserActivity:(NSUserActivity*)userActivity
                              ^
    In module 'Foundation' imported from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterBinaryMessenger.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/Foundation.framework/Headers/NSUserActivity.h:20:12: note: 'NSUserActivity' has been marked as being introduced in iOS 8.0 here, but
    the deployment target is iOS 4.3.0
    @interface NSUserActivity : NSObject
               ^
    While building module 'Flutter' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.h:5:
    In file included from <module-includes>:1:
    In file included from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/Flutter.h:65:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/../Flutter/Flutter.framework/Headers/FlutterPluginAppLifeCycleDelegate.h:138:1: note:
    annotate 'application:continueUserActivity:restorationHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    6 warnings generated.
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:29:50: warning:
    'window' is only available on iOS 5.0 or newer [-Wunguarded-availability]
          [UIApplication sharedApplication].delegate.window.rootViewController;
                                                     ^~~~~~
    In module 'UIKit' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIApplication.h:391:51: note: 'window' has been marked as being introduced in iOS 5.0 here, but the
    deployment target is iOS 4.3.0
    @property (nullable, nonatomic, strong) UIWindow *window API_AVAILABLE(ios(5.0));
                                                      ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:29:50: note:
    enclose 'window' in an @available check to silence this warning
          [UIApplication sharedApplication].delegate.window.rootViewController;
                                                     ^~~~~~
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:79:45: warning:
    'kUTTypeAVIMovie' is only available on iOS 8.0 or newer [-Wunguarded-availability]
          (NSString *)kUTTypeMovie, (NSString *)kUTTypeAVIMovie, (NSString *)kUTTypeVideo,
                                                ^~~~~~~~~~~~~~~
    In module 'MobileCoreServices' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:7:
    In module 'CoreServices' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/MobileCoreServices.framework/Headers/MobileCoreServices.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/CoreServices.framework/Headers/UTCoreTypes.h:892:26: note: 'kUTTypeAVIMovie' has been marked as being introduced in iOS 8.0 here, but
    the deployment target is iOS 4.3.0
    extern const CFStringRef kUTTypeAVIMovie                             API_AVAILABLE( ios(8.0), macos(10.10), tvos(9.0), watchos(1.0) );
                             ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:79:45: note:
    enclose 'kUTTypeAVIMovie' in an @available check to silence this warning
          (NSString *)kUTTypeMovie, (NSString *)kUTTypeAVIMovie, (NSString *)kUTTypeVideo,
                                                ^~~~~~~~~~~~~~~
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:111:22: warning:
    'presentViewController:animated:completion:' is only available on iOS 5.0 or newer [-Wunguarded-availability]
        [_viewController presentViewController:_imagePickerController animated:YES completion:nil];
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIViewController.h:217:1: note: 'presentViewController:animated:completion:' has been marked as being
    introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
    - (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^
    __nullable)(void))completion API_AVAILABLE(ios(5.0));
    ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:111:22: note:
    enclose 'presentViewController:animated:completion:' in an @available check to silence this warning
        [_viewController presentViewController:_imagePickerController animated:YES completion:nil];
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:124:20: warning:
    'presentViewController:animated:completion:' is only available on iOS 5.0 or newer [-Wunguarded-availability]
      [_viewController presentViewController:_imagePickerController animated:YES completion:nil];
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIViewController.h:217:1: note: 'presentViewController:animated:completion:' has been marked as being
    introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
    - (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^
    __nullable)(void))completion API_AVAILABLE(ios(5.0));
    ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:124:20: note:
    enclose 'presentViewController:animated:completion:' in an @available check to silence this warning
      [_viewController presentViewController:_imagePickerController animated:YES completion:nil];
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:131:27: warning:
    'dismissViewControllerAnimated:completion:' is only available on iOS 5.0 or newer [-Wunguarded-availability]
      [_imagePickerController dismissViewControllerAnimated:YES completion:nil];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIViewController.h:219:1: note: 'dismissViewControllerAnimated:completion:' has been marked as being
    introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
    - (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^ __nullable)(void))completion API_AVAILABLE(ios(5.0));
    ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:131:27: note:
    enclose 'dismissViewControllerAnimated:completion:' in an @available check to silence this warning
      [_imagePickerController dismissViewControllerAnimated:YES completion:nil];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:185:27: warning:
    'dismissViewControllerAnimated:completion:' is only available on iOS 5.0 or newer [-Wunguarded-availability]
      [_imagePickerController dismissViewControllerAnimated:YES completion:nil];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIViewController.h:219:1: note: 'dismissViewControllerAnimated:completion:' has been marked as being
    introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
    - (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^ __nullable)(void))completion API_AVAILABLE(ios(5.0));
    ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.5.0/ios/Classes/ImagePickerPlugin.m:185:27: note:
    enclose 'dismissViewControllerAnimated:completion:' in an @available check to silence this warning
      [_imagePickerController dismissViewControllerAnimated:YES completion:nil];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    12 warnings generated.
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.0.16/ios/Classes/FLTGoogleSignInPlugin.m:138:13:
    warning: unused variable 'sourceApplication' [-Wunused-variable]
      NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey];
                ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.0.16/ios/Classes/FLTGoogleSignInPlugin.m:138:41:
    warning: 'UIApplicationOpenURLOptionsSourceApplicationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability]
      NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey];
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Target Support
    Files/google_sign_in/google_sign_in-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIApplication.h:518:51: note: 'UIApplicationOpenURLOptionsSourceApplicationKey' has been marked as being
    introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsSourceApplicationKey NS_SWIFT_NAME(sourceApplication)
    API_AVAILABLE(ios(9.0));   // value is an NSString containing the bundle ID of the originating application; non-nil if the originating
    application and this application share the same team identifier
                                                      ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.0.16/ios/Classes/FLTGoogleSignInPlugin.m:138:41:
    note: enclose 'UIApplicationOpenURLOptionsSourceApplicationKey' in an @available check to silence this warning
      NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey];
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2 warnings generated.
    === BUILD TARGET url_launcher OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/printing-2.1.8/ios/Classes/PrintingPlugin.m:20:17: error: definition
    of 'PrintingPlugin' must be imported from module 'printing.PrintingPlugin' before it is required
    @implementation PrintingPlugin
                    ^
    In module 'printing' imported from
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/printing-2.1.8/ios/Classes/PrintingPlugin.m:18:
    /Users/mikael/Documents/itseccomp_mobile/build/ios/Debug-iphonesimulator/printing/printing.framework/Headers/PrintingPlugin.h:19:12: note:
    previous definition is here
    @interface PrintingPlugin : NSObject <FlutterPlugin>
               ^
    1 error generated.
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/share_extend-1.0.9/ios/Classes/ShareExtendPlugin.m:34:48: warning:
    variable 'originRect' may be uninitialized when used here [-Wconditional-uninitialized]
                    [self share:shareText atSource:originRect];
                                                   ^~~~~~~~~~
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/share_extend-1.0.9/ios/Classes/ShareExtendPlugin.m:27:13: note:
    variable 'originRect' is declared here
                CGRect originRect;
                ^
    1 warning generated.
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_login-2.0.1/ios/Classes/FacebookLoginPlugin.m:38:33:
    warning: 'UIApplicationOpenURLOptionsSourceApplicationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability]
          sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Target Support
    Files/flutter_facebook_login/flutter_facebook_login-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIApplication.h:518:51: note: 'UIApplicationOpenURLOptionsSourceApplicationKey' has been marked as being
    introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsSourceApplicationKey NS_SWIFT_NAME(sourceApplication)
    API_AVAILABLE(ios(9.0));   // value is an NSString containing the bundle ID of the originating application; non-nil if the originating
    application and this application share the same team identifier
                                                      ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_login-2.0.1/ios/Classes/FacebookLoginPlugin.m:38:33:
    note: enclose 'UIApplicationOpenURLOptionsSourceApplicationKey' in an @available check to silence this warning
          sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_login-2.0.1/ios/Classes/FacebookLoginPlugin.m:39:33:
    warning: 'UIApplicationOpenURLOptionsAnnotationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability]
                 annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/mikael/Documents/itseccomp_mobile/ios/Pods/Target Support
    Files/flutter_facebook_login/flutter_facebook_login-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Framew
    orks/UIKit.framework/Headers/UIApplication.h:519:51: note: 'UIApplicationOpenURLOptionsAnnotationKey' has been marked as being introduced
    in iOS 9.0 here, but the deployment target is iOS 8.0.0
    UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsAnnotationKey NS_SWIFT_NAME(annotation)
    API_AVAILABLE(ios(9.0));   // value is a property-list typed object corresponding to what the originating application passed in
    UIDocumentInteractionController's annotation property
                                                      ^
    /Users/mikael/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_login-2.0.1/ios/Classes/FacebookLoginPlugin.m:39:33:
    note: enclose 'UIApplicationOpenURLOptionsAnnotationKey' in an @available check to silence this warning
                 annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2 warnings generated.

Could not build the application for the simulator.
Error launching application on iPhone 11.
Gicminos commented 4 years ago

After updating the plugin and adding use_frameworks! in the Podfile I get the same error described here: https://github.com/flutter/flutter/issues/47627

DavBfr commented 4 years ago

You have done something before it stopped working?

Gicminos commented 4 years ago

I started testing this library on Android and I didn't have any issue there. When I tried to compile it for iOS didn't have luck with it. iOS building was working before adding the library.

DavBfr commented 4 years ago

have you tried flutter clean?

Gicminos commented 4 years ago

Yes, I tried it with lot of other suggestion, none of them worked. If I remove the library I can run my app fne. Please consider reopening this issue.

DavBfr commented 4 years ago

Try to set your IOS minimum version to 9.0

Gicminos commented 4 years ago

I have tried and still getting the error.

Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    In file included from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORRegistrar.m:19:
    In file included from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/Private/GDTCORRegistrar_Private.h:
    17:
    /Users/mikael/Documents/itseccomp_mobile/build/ios/Debug-iphoneos/GoogleDataTransport/GoogleDataTransport.framework/Headers/GDTCORRegistra
    r.h:26:1: error: duplicate interface definition for class 'GDTCORRegistrar'
    @interface GDTCORRegistrar : NSObject <GDTCORLifecycleProtocol>
    ^
    In file included from
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORRegistrar.m:17:
    /Users/mikael/Documents/itseccomp_mobile/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/Public/GDTCORRegistrar.h:26:12:
    note: previous definition is here
    @interface GDTCORRegistrar : NSObject <GDTCORLifecycleProtocol>
               ^
    1 error generated.

Encountered error while building for device.
DavBfr commented 4 years ago

How is this related to the printing plugin? Can you provide a full project that has the issue? I can't reproduce if I use the same pubspec.yaml: It builds with no issues.

Gicminos commented 4 years ago

As I written in the issue https://github.com/flutter/flutter/issues/47627 now I have managed to build the application. I am not totally sure on what was the problem, how I fixed and how was related to printing, but for some reasons I was able to build the application by commenting the printing package.

I will try with the people having the same general issue to identify the problem and understand it better. Thank you for your time.