Check this page first for common issues based on Flutter Setup.
For Android and/or iOS Platform issues see:
For faster assistance, please provide:
- Your OneSignal App Id
- Details, logs, and/or screenshots of the issue.
- Steps to reproduce
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
Both of the following solutions have been reported to work:
1 . Go to Runner and then to Build Settings and set Always Embed Swift Standard Libraries to
2 . Then go to
OneSignalNotificationServiceExtension and then to Build Settings and set Always Embed Swift Standard Libraries to
config.build_settings['ENABLE_BITCODE'] = 'YES'in your Podfile.
- Set all
ENABLE_BITCODE = 'YES'in the Runner project
- Set the importance of
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = 'NO'in the Runner app.
First check the Flutter SDK Setup that you added Push Capability in Xcode.
If you are still having this issue, check Xcode for
CODE_SIGNING_ALLOWED which might be set incorrectly not allowing signing of your app.
Updated about a month ago