React-native-onesignal: Build error on iOS after installing v3.2.1

Created on 11 May 2018  路  6Comments  路  Source: OneSignal/react-native-onesignal

Description:

I'm getting a couple build errors and several warnings on iOS after installing react-native-onesignal. I ran react-native link react-native-onesignal and pod install following that. Then, I followed the setup guide (i.e. initialize RCTOneSignal in the AppDelegate)

I also noticed that the method to call to initialize RCTOneSignal in the setup guide has a deprecation warning?

I've used react-native-onesignal in 4 or 5 projects now -- overall I've had a great experience :). For now, I'm going to try using the previous version I got working.

Environment

  1. What version of the OneSignal React-Native SDK are you using?

3.2.1

  1. How did you add the SDK to your project (eg. npm)
  • yarn
  • react-native link react-native-onesignal
  • cd ios; pod install
  • Then, I added the package to the header search paths, as described in the setup guide

Steps to Reproduce Issue:

  1. Install the OneSignal SDK using npm into your project
  2. Initialize the SDK in the iOS AppDelegate
  3. Build fails

Anything else:

Build error screenshot:
image

Output from react-native run-ios:

In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:13:
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.h:3:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:12: note: 'UNMutableNotificationContent' has been explicitly marked partial here
@interface UNMutableNotificationContent : UNNotificationContent
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:13:
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.h:3:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly marked partial here
@interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:13:
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.h:3:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:12: note: 'UNMutableNotificationContent' has been explicitly marked partial here
@interface UNMutableNotificationContent : UNNotificationContent
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:13:
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.h:3:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:12: note: 'UNMutableNotificationContent' has been explicitly marked partial here
@interface UNMutableNotificationContent : UNNotificationContent
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:13:
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.h:3:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly marked partial here
@interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:13:
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.h:3:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:12: note: 'UNMutableNotificationContent' has been explicitly marked partial here
@interface UNMutableNotificationContent : UNNotificationContent
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:13:
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.h:3:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:59:14: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
        if (!didStartObserving)
             ^
             self->
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignal.m:113:20: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
              if (!didStartObserving)
                   ^
                   self->
8 warnings generated.


CompileC /Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/Objects-normal/x86_64/RCTOneSignalEventEmitter.o /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/jarred/Code/groups/lilypadapp/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/usr/bin:/Applications/Sketch.app/Contents/Resources/sketchtool/bin:/Users/jarred/.rbenv/shims:./node_modules/.bin:/Users/jarred/.yarn/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
    /Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/jarred/Code/groups/lilypadapp/ios/build/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/jarred/Code/groups/lilypadapp/ios/build/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/jarred/Code/groups/lilypadapp/ios/build/Index/DataStore -iquote /Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/react-native-onesignal-generated-files.hmap -I/Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/react-native-onesignal-own-target-headers.hmap -I/Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/react-native-onesignal-all-non-framework-target-headers.hmap -ivfsoverlay /Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -iquote /Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/react-native-onesignal-project-headers.hmap -I/Users/jarred/Code/groups/lilypadapp/ios/build/Build/Products/Debug-iphonesimulator/react-native-onesignal/include -I/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Private -I/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Private/react-native-onesignal -I/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public -I/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal -I/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/React -I/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/react-native-onesignal -I/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/yoga -I/Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/DerivedSources/x86_64 -I/Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/DerivedSources -F/Users/jarred/Code/groups/lilypadapp/ios/build/Build/Products/Debug-iphonesimulator/react-native-onesignal -include /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target\ Support\ Files/react-native-onesignal/react-native-onesignal-prefix.pch -MMD -MT dependencies -MF /Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/Objects-normal/x86_64/RCTOneSignalEventEmitter.d --serialize-diagnostics /Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/Objects-normal/x86_64/RCTOneSignalEventEmitter.dia -c /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m -o /Users/jarred/Code/groups/lilypadapp/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-onesignal.build/Objects-normal/x86_64/RCTOneSignalEventEmitter.o
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:10:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:12: note: 'UNMutableNotificationContent' has been explicitly marked partial here
@interface UNMutableNotificationContent : UNNotificationContent
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:10:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Publ
ic/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly marked partial here
@interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:10:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:12: note: 'UNMutableNotificationContent' has been explicitly marked partial here
@interface UNMutableNotificationContent : UNNotificationContent
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:10:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:408: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:12: note: 'UNMutableNotificationContent' has been explicitly marked partial here
@interface UNMutableNotificationContent : UNNotificationContent
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:10:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly marked partial here
@interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:10:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:51:12: note: 'UNMutableNotificationContent' has been explicitly marked partial here
@interface UNMutableNotificationContent : UNNotificationContent
           ^
In file included from /Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:10:
/Users/jarred/Code/groups/lilypadapp/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:409: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/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:99:16: error: no known class method for selector 'setRequiresUserPrivacyConsent:'
    [OneSignal setRequiresUserPrivacyConsent:required];
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:104:20: error: no known class method for selector 'consentGranted:'
        [OneSignal consentGranted:granted];
                   ^~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:110:26: error: property 'requiresUserPrivacyConsent' not found on object of type 'OneSignal'
    resolve(@(!OneSignal.requiresUserPrivacyConsent));
                         ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:133:41: warning: 'currentUserNotificationSettings' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        types = [RCTSharedApplication() currentUserNotificationSettings].types;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:240:70: note: 'currentUserNotificationSettings' has been explicitly marked partial here
@property(nonatomic, readonly, nullable) UIUserNotificationSettings *currentUserNotificationSettings NS_DEPRECATED_IOS(8_0, 10_0, "Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]") __TVOS_PROHIBITED;
                                                                     ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:133:41: note: enclose 'currentUserNotificationSettings' in an @available check to silence this warning
        types = [RCTSharedApplication() currentUserNotificationSettings].types;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:143:29: warning: 'UIUserNotificationTypeAlert' is only available on iOS 8.0 or newer [-Wunguarded-availability]
       @"alert": @((types & UIUserNotificationTypeAlert) > 0),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:143:29: note: enclose 'UIUserNotificationTypeAlert' in an @available check to silence this warning
       @"alert": @((types & UIUserNotificationTypeAlert) > 0),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:144:29: warning: 'UIUserNotificationTypeBadge' is only available on iOS 8.0 or newer [-Wunguarded-availability]
       @"badge": @((types & UIUserNotificationTypeBadge) > 0),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:144:29: note: enclose 'UIUserNotificationTypeBadge' in an @available check to silence this warning
       @"badge": @((types & UIUserNotificationTypeBadge) > 0),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:145:29: warning: 'UIUserNotificationTypeSound' is only available on iOS 8.0 or newer [-Wunguarded-availability]
       @"sound": @((types & UIUserNotificationTypeSound) > 0),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:145:29: note: enclose 'UIUserNotificationTypeSound' in an @available check to silence this warning
       @"sound": @((types & UIUserNotificationTypeSound) > 0),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:154:5: warning: 'UIUserNotificationType' is only available on iOS 8.0 or newer [-Wunguarded-availability]
    UIUserNotificationType types = UIUserNotificationTypeNone;
    ^~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:154:5: note: enclose 'UIUserNotificationType' in an @available check to silence this warning
    UIUserNotificationType types = UIUserNotificationTypeNone;
    ^~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:154:36: warning: 'UIUserNotificationTypeNone' is only available on iOS 8.0 or newer [-Wunguarded-availability]
    UIUserNotificationType types = UIUserNotificationTypeNone;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been ex
plicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:154:36: note: enclose 'UIUserNotificationTypeNone' in an @available check to silence this warning
    UIUserNotificationType types = UIUserNotificationTypeNone;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:157:22: warning: 'UIUserNotificationTypeAlert' is only available on iOS 8.0 or newer [-Wunguarded-availability]
            types |= UIUserNotificationTypeAlert;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:157:22: note: enclose 'UIUserNotificationTypeAlert' in an @available check to silence this warning
            types |= UIUserNotificationTypeAlert;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:160:22: warning: 'UIUserNotificationTypeBadge' is only available on iOS 8.0 or newer [-Wunguarded-availability]
            types |= UIUserNotificationTypeBadge;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:160:22: note: enclose 'UIUserNotificationTypeBadge' in an @available check to silence this warning
            types |= UIUserNotificationTypeBadge;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:163:22: warning: 'UIUserNotificationTypeSound' is only available on iOS 8.0 or newer [-Wunguarded-availability]
            types |= UIUserNotificationTypeSound;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:163:22: note: enclose 'UIUserNotificationTypeSound' in an @available check to silence this warning
            types |= UIUserNotificationTypeSound;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:166:17: warning: 'UIUserNotificationTypeAlert' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        types = UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:166:17: note: enclose 'UIUserNotificationTypeAlert' in an @available check to silence this warning
        types = UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:166:47: warning: 'UIUserNotificationTypeBadge' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        types = UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound;
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:166:47: note: enclose 'UIUserNotificationTypeBadge' in an @available check to silence this warning
        types = UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound;
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:166:77: warning: 'UIUserNotificationTypeSound' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        types = UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound;
                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:16:32: note: 'UIUserNotificationType' has been explicitly marked partial here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                               ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:166:77: note: enclose 'UIUserNotificationTypeSound' in an @available check to silence this warning
        types = UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound;
                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:171:9: warning: 'UIUserNotificationSettings' is on
ly available on iOS 8.0 or newer [-Wunguarded-availability]
        UIUserNotificationSettings *notificationSettings =
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:43:12: note: 'UIUserNotificationSettings' has been explicitly marked partial here
@interface UIUserNotificationSettings : NSObject
           ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:171:9: note: enclose 'UIUserNotificationSettings' in an @available check to silence this warning
        UIUserNotificationSettings *notificationSettings =
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:172:10: warning: 'UIUserNotificationSettings' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        [UIUserNotificationSettings settingsForTypes:(NSUInteger)types categories:nil];
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:43:12: note: 'UIUserNotificationSettings' has been explicitly marked partial here
@interface UIUserNotificationSettings : NSObject
           ^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:172:10: note: enclose 'UIUserNotificationSettings' in an @available check to silence this warning
        [UIUserNotificationSettings settingsForTypes:(NSUInteger)types categories:nil];
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:173:14: warning: 'registerUserNotificationSettings:' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        [app registerUserNotificationSettings:notificationSettings];
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:236:1: note: 'registerUserNotificationSettings:' has been explicitly marked partial here
- (void)registerUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings NS_DEPRECATED_IOS(8_0, 10_0, "Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:]") __TVOS_PROHIBITED;
^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:173:14: note: enclose 'registerUserNotificationSettings:' in an @available check to silence this warning
        [app registerUserNotificationSettings:notificationSettings];
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:174:14: warning: 'registerForRemoteNotifications' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        [app registerForRemoteNotifications];
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/jarred/Code/groups/lilypadapp/ios/Pods/Target Support Files/react-native-onesignal/react-native-onesignal-prefix.pch:2:
/Users/jarred/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:201:1: note: 'registerForRemoteNotifications' has been explicitly marked partial here
- (void)registerForRemoteNotifications NS_AVAILABLE_IOS(8_0);
^
/Users/jarred/Code/groups/lilypadapp/node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:174:14: note: enclose 'registerForRemoteNotifications' in an @available check to silence this warning
        [app registerForRemoteNotifications];
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 warnings and 3 errors generated.


** BUILD FAILED **

Most helpful comment

@Jarred-Sumner I'm glad to hear!

Just so you are aware, the Objective-C initialization code is now deprecated because we've added JavaScript initialization.

We are adding this to the docs as we speak, but basically, you no longer need to add the Header Search Paths, and you can remove the onesignal code from your AppDelegate.

Instead, you can initialize OneSignal directly in your react native code like this:

componentWillMount() {
   OneSignal.init("YOUR_ONESIGNAL_APPID", {kOSSettingsKeyAutoPrompt : true}); // the iOS params argument will get ignored in Android
}

All 6 comments

Hi @Jarred-Sumner ,

This indicates that your project is somehow getting linked to an older version of the iOS SDK. I suspect it is because you are using cocoapods to install the iOS native SDK.

What guide were you following to install react-native-onesignal? The pod install step should not be necessary, the SDK is no longer using cocoapods, you could run into duplicate library and missing symbols issues.

I would suggest removing the OneSignal iOS SDK from your Podfile, then run pod install again.

Thanks for getting back so quickly.

I would suggest removing the OneSignal iOS SDK from your Podfile, then run pod install again.

This fixed it! Thanks.

@Jarred-Sumner I'm glad to hear!

Just so you are aware, the Objective-C initialization code is now deprecated because we've added JavaScript initialization.

We are adding this to the docs as we speak, but basically, you no longer need to add the Header Search Paths, and you can remove the onesignal code from your AppDelegate.

Instead, you can initialize OneSignal directly in your react native code like this:

componentWillMount() {
   OneSignal.init("YOUR_ONESIGNAL_APPID", {kOSSettingsKeyAutoPrompt : true}); // the iOS params argument will get ignored in Android
}

@Nightsd01 I have the same issue.

Regarding your solution, if I remove sdk from pod install, how can it be linked to the binary?

I am using 3.2.1 now, should I upgrade to 3.2.4?

I have solved this problem by upgrading 3.2.4

Thanks

Was this page helpful?
0 / 5 - 0 ratings