OneSignal Help & Documentation

Welcome to the OneSignal New IA developer hub. You'll find comprehensive guides and documentation to help you start working with OneSignal New IA as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Discussions

Troubleshooting Flutter

Common setup issues with iOS

Troubleshooting
For Developers

Problems with OneSignal library at build time##

If you are experiencing any type of issue related to the OneSignal library when building iOS, e.g:

ld: warning: directory not found for option '-L/example/build/ios/Debug-iphonesimulator/onesignal'
    ld: library not found for -lonesignal
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone 6.

Try following the following commands:

pod deintegrate
pod install

Distribution Error: Found an unexpected Mach-O header code

Both of the following solutions have been reported to work:

Solution 1

1 . Go to Runner and then to Build Settings and set Always Embed Swift Standard Libraries to YES
2 . Then go to OneSignalNotificationServiceExtension and then to Build Settings and set Always Embed Swift Standard Libraries to NO

Solution 2

  1. Set config.build_settings['ENABLE_BITCODE'] = 'YES' in your Podfile.
  2. Set all ENABLE_BITCODE = 'YES' in the Runner project
  3. Set the importance of ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = 'NO' in the Runner app.

Updated 8 months ago


Troubleshooting Flutter


Common setup issues with iOS

Troubleshooting
For Developers

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.