Closed Amurmurmur closed 6 years ago
It looks like this is due to selecting the simulator as your run target (not a real iOS device which is x86_64)
Since push notifications are not available in simulator, onesignal push notifications wonโt work. However that should not stop you from running the simulator entirely, since you should be able to test the rest of your application in the simulator.
Sorry about this issue. I will go ahead and fix this shortly, thank you for creating the issue @Amurmurmur
@Nightsd01 Thank you very much for such a quick response! Im looking forward for the coming updates ๐
Ahh, I am running into this too. Simulator build fails. Device build is fine. I will stick with 3.0.7 until this is fixed.
This issue has been addressed in #370 , thank you for reporting it!
@Nightsd01 I am getting this issue building to a real device (iPhone X). I have been trying to get this to build for a few hours with no luck. I installed the repo directly from the master branch. Still no dice. Would appreciate any help.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RCTOneSignal", referenced from:
objc-class-ref in AppDelegate.o
"_kOSSettingsKeyAutoPrompt", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@Nightsd01 nvm I needed to re-import the xcode.project for the repo and add libRCTOneSignal.a
to Linked Libraries again... Build is working on native device.
@digitaldavenyc what do you mean you re-import the xcode.project? i am having the same issue, and not sure what to do
yarn clear work for me.
For my case, I remove pod 'OneSignal' ...
from my Podfile, because my Podfile already has pod 'react-native-onesignal', :path => '../node_modules/react-native-onesignal'
. Then I removed the ios/Pods
folder, do a fresh pod install
, clean and build in XCode.
@mrharel I have the same issue
did you know how to solve it?
In case anyone else runs into this:
I've faced the same error when I did react-native link react-native-onesignal
When i did the "Add Notification Service Extension" part I couldn't find the libRCTOneSignal.a
file and fixed it by doing this: https://github.com/geektimecoil/react-native-onesignal/issues/604#issuecomment-413483935
Then I wrongly followed the "With Cocoapods" path (as I do have Cocoapods setup) although I had manually linked the library. Once I sticked to the "Without Cocoapods" path everything worked smoothly. Notice the difference in the filenames NotificationService.m
(will be there if cocoapods isn't used) and NotificationServiceExtension.m
(which will be there if it is installed via Cocoapods)
Due to the error with the missing libRCTOneSignal.a
file only the path without Cocoapods worked for me.
@davidgruebl saviour ๐๐ผ
@davidgruebl Saviour once gain ๐๐ผ
I solved by linkinglibRCTOneSignal.a
in one signal target.
I solved by linking Coregraphcs.framework and webkit.framework
Upgraded to react-native-onesignal 3.0.8 started to get this error on iOS