Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails build on iOS. Works on simulator #144

Closed
serendipity1004 opened this issue Sep 24, 2019 · 6 comments
Closed

Fails build on iOS. Works on simulator #144

serendipity1004 opened this issue Sep 24, 2019 · 6 comments

Comments

@serendipity1004
Copy link

I have installed the package according to the flutter installation instruction on the website. Everything works and runs fine on iOS simulator; however, when I try to build or when I try to USB connect to my iPhone XS it shows following errors.

$ flutter build ios
Building com.withj.fpstory for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 25522K9L62
Running pod install...                                              1.9s
Running Xcode build...                                                  
                                                   
Xcode build done.                                            8.4s
Failed to build iOS app
Error output from Xcode build:
↳
    2019-09-24 14:33:52.917 xcodebuild[47701:866137]  DTDeviceKit: deviceType from 00008020-001971C021A2002E was NULL
    2019-09-24 14:33:52.956 xcodebuild[47701:866136]  DTDeviceKit: deviceType from 00008020-001971C021A2002E was NULL
    ** BUILD FAILED **


Xcode's output:
↳
    warning: The iOS deployment target is set to 4.3, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'OneSignal')
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:4: warning: 'UNMutableNotificationContent' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note:
    'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                             API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:74: warning: 'UNNotificationRequest' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                             ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note:
    'UNNotificationRequest' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                             API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:137: warning: 'UNMutableNotificationContent' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                                                                                            ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note:
    'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                             API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:4: warning: 'UNMutableNotificationContent' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note:
    'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                            API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:73: warning: 'UNNotificationRequest' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                            ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note:
    'UNNotificationRequest' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                            API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:136: warning: 'UNMutableNotificationContent' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                                                                                           ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note:
    'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                            API_AVAILABLE(ios(10.0))
    6 warnings generated.
    6 warnings generated.
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:4: warning: 'UNMutableNotificationContent' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note:
    'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                             API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:74: warning: 'UNNotificationRequest' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                             ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note:
    'UNNotificationRequest' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                             API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:137: warning: 'UNMutableNotificationContent' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                                                                                            ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note:
    'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:455:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                             API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:4: warning: 'UNMutableNotificationContent' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note:
    'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                            API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:73: warning: 'UNNotificationRequest' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                            ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note:
    'UNNotificationRequest' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                            API_AVAILABLE(ios(10.0))
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:136: warning: 'UNMutableNotificationContent' is only available on iOS 10.0 or newer
    [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                                                                                           ^
    In module 'UserNotifications' imported from /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:47:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note:
    'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    While building module 'OneSignal' imported from /Users/jc/Documents/resources/libraries/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_flutter-2.0.0/ios/Classes/OneSignalTagsController.m:29:
    In file included from <module-includes>:1:
    /Users/jc/Documents/projects/fp_story/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Headers/OneSignal.h:456:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                                                                                                                                                            API_AVAILABLE(ios(10.0))
    6 warnings generated.
    6 warnings generated.
    2 warnings generated.
    ld: '/Users/jc/Documents/projects/fp_story/build/ios/Release-iphoneos/flutter_secure_storage/libflutter_secure_storage.a(FlutterSecureStoragePlugin.o)' does not contain bitcode. You must rebuild it with bitcode
    enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file
    '/Users/jc/Documents/projects/fp_story/build/ios/Release-iphoneos/flutter_secure_storage/libflutter_secure_storage.a' for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ld: '/Users/jc/Documents/projects/fp_story/build/ios/Release-iphoneos/flutter_secure_storage/libflutter_secure_storage.a(FlutterSecureStoragePlugin.o)' does not contain bitcode. You must rebuild it with bitcode
    enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file
    '/Users/jc/Documents/projects/fp_story/build/ios/Release-iphoneos/flutter_secure_storage/libflutter_secure_storage.a' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build systemnote: Planning buildnote: Constructing build description

I have set all the BITCODE ENABLED to 'NO'. Any idea how everything's working fine on simulator but not on real device or when trying to build? My dependencies are as below

  cupertino_icons: ^0.1.2
  outline_material_icons: ^0.1.0
  font_awesome_flutter: ^8.5.0
  graphql_flutter: ^2.1.1-beta.2
  flutter_secure_storage: ^3.2.1
  image_picker: ^0.6.1+4
  webfeed: ^0.4.2
  xml: ^3.5.0
  html: ^0.14.0+2
  flutter_speed_dial: ^1.2.1
  webview_flutter: ^0.3.14
  flutter_spinkit: ^4.0.0
  onesignal_flutter: ^2.0.0

Flutter doctor as below

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.5 18F132, locale en-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
[✓] Connected device (1 available)
@serendipity1004
Copy link
Author

I have deleted OneSignal from target and removed onesignal dependency and everything started working again. It seems that there is definitely a problem with the package; however, I cannot isolate what the issue is (I don't have much knowledge in iOS dev)

@mikechoch
Copy link
Contributor

Try updating your CocoaPods and running Pod update and then Pod install, I was not able to reproduce this in our example application with the latest changes.

Do you have any other steps for reproducing this issue?

@VictorCamargo
Copy link

VictorCamargo commented Sep 25, 2019

I have deleted OneSignal from target and removed onesignal dependency and everything started working again. It seems that there is definitely a problem with the package; however, I cannot isolate what the issue is (I don't have much knowledge in iOS dev)

I'm facing the same problem.. I just installed OneSignal and on my Android device works fine, but can't build for iOS. If I remove OneSignal the build works fine.

@serendipity1004
Copy link
Author

@mikechoch I have tried all the clean/delete/purge/update methods related to flutter. Still does not work. Can you try building the example app on iOS real device?

@VictorCamargo I ended up moving to firebase_messaging and it works flawlessly

@VictorCamargo
Copy link

@mikechoch I have tried all the clean/delete/purge/update methods related to flutter. Still does not work. Can you try building the example app on iOS real device?

@VictorCamargo I ended up moving to firebase_messaging and it works flawlessly

In my case I was moving from firebase_messaging, so I really need to put this working.
Yesterday after spend some hours on this, I finally made it works on iOS after following some steps from #42 . I hope maybe it can help you.

@rgomezp
Copy link
Contributor

rgomezp commented Oct 9, 2019

Closing due to no response

@rgomezp rgomezp closed this as completed Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants