Comments (25)
I had the exact same issue as @olliebrennan, solved it by:
- drag the
node_modules/react-native-onesignal/ios/Frameworks
folder into RCTOneSignal.xcodeproj under XCode's left panel - once in the left panel, drag the OneSignal.framework into Link Binary with Libraries
from react-native-onesignal.
Solved by manual linking :
https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking
from react-native-onesignal.
@avishayil I have this problem. Tried following @whollacsek's instructions but I am still getting the same error in XCode.
from react-native-onesignal.
I experienced this issue and was able to fix it by clicking and dragging ios/Pods/OneSignal/iOS_SDK/Framework/OneSignal.framework from Finder into the Frameworks folder of my XCode project.
from react-native-onesignal.
You have the example project to reference and play with, please make sure
you're following all the orders, no errors should occur.
On Jul 2, 2016 12:37 AM, "Charles Hulcher" [email protected] wrote:
Same exact issue as @chrissm79 https://github.com/chrissm79
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAyekNTkU15t6IP4zvQzg06yXzUf0akHks5qRYiBgaJpZM4IHVBS
.
from react-native-onesignal.
In my case I had to add the following line in podfile
and run pod install
again. Then run Clean
and build again.
pod 'react-native-onesignal', :path => '../node_modules/react-native-onesignal'
from react-native-onesignal.
in my case libRCTOneSignal.a was missing in Link library with binary i just added and issue resolved
you can follow the second step here https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking
from react-native-onesignal.
@olliebrennan did you manage to resolve this issue? I am looking through the commit for #5 to figure out what to do. I'm a JS dev, not an iOS dev, so am unfamiliar with the various settings.
from react-native-onesignal.
Maybe @jkasten2 can help here?
from react-native-onesignal.
@jamiemchale I did not. Had the same issue as you so left my app using Parse until a fix comes along. Happy to help if I can but as you said, I am also unfamiliar with the iOS language / settings.
from react-native-onesignal.
@olliebrennan @avishayil
If you installed the OneSignal plugin with Cocoa pods it may not reference the OneSignal native framework to the main project. You can drop and drag OneSignal.framework from Finder to XCode which should fix the linker error. You may have to select "Copy items if needed" if it does not work without.
Lastly make sure you are using Xcode 7.0 or higher as older versions of Xcode will result in the exact same error here.
from react-native-onesignal.
Thanks @jkasten2
I have a release going out in the next couple of days then will try this and report back.
Cheers
from react-native-onesignal.
+1 having a similar issue on OSX
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_OneSignal", referenced from:
objc-class-ref in libRCTOneSignal.a(RCTOneSignal.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I was missing OneSignal.framework
. Tried dragging appname/node_modules/react-native-onesignal/ios/Frameworks/OneSignal.framework
into XCode's Libraries. Still not working.
Tried appname/ios/Pods/OneSignal/iOS_SDK/Framework/OneSignal.framework
as well, didn't work either.
@olliebrennan Did you manage to resolve the issue?
from react-native-onesignal.
Hey @hyperh @olliebrennan did you managed to solve this?
from react-native-onesignal.
@avishayil I was unable to solve this. I decided to go with apnagent to handle my APN stuff.
from react-native-onesignal.
If someone encounters the same error, please report. I'm closing this issue for now.
from react-native-onesignal.
Same problem as @chrissm79 and others
from react-native-onesignal.
I just got here and yes, same problem.
from react-native-onesignal.
+1
from react-native-onesignal.
Looking into it. Any reproduce steps?
from react-native-onesignal.
Same exact issue as @chrissm79
Edit: Solved by downloading the framework and linking it from the documented link rather than using the framework in the node_modules folder.
from react-native-onesignal.
I also have this problem but don't know how to solve it
ld: warning: ignoring file /Users/apple/Desktop/Camera/XCTest.framework/XCTest.tbd, missing required architecture x86_64 in file /Users/apple/Desktop/Camera/XCTest.framework/XCTest.tbd (3 slices)
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_XCTestCase", referenced from:
OBJC_CLASS$__TtC6Camera11toucanTests in toucanTests.o
"OBJC_METACLASS$_XCTestCase", referenced from:
OBJC_METACLASS$__TtC6Camera11toucanTests in toucanTests.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
from react-native-onesignal.
i'm on react-native 0.37 and here's how i was able to get this to work (i think the readmes/documentation are slightly behind react native).
- on a clean branch with none of the onesignal work...
- run
npm install react-native-onesignal --save
- run
react-native link
- for iOS follow the podfile instructions (be sure to follow the react native version note carefully)
- for iOS follow the code additions in the instructions
- for android follow the android instructions (most of the code should be there from the link command, but double check everything)
- for android be sure to use
import com.geektime.reactnativeonesignal.ReactNativeOneSignalPackage;
and NOTimport com.geektime.rnonesignal.ReactNativeOneSignalPackage;
(some old documentation had the rnonesignal and that's since been updated) - then complete config and setup and all files
- hopefully that does the trick for you...please reply if you have any issues as i spent some time on both android and iOS over a few branches to get this to work.
YMMV if you are using something lower than v0.37 of RN. good luck.
from react-native-onesignal.
Problem solved!!
Just from the project navigator, go to the Pods section, find the oneSignal.framework and drag it into the 'Link Binary with libraries' located under your target and thats it!. So basically its better to just user the framework rather than the pod file.
from react-native-onesignal.
In my case, running an older React Native 0.39.0 project, I had to react-native link
, Clean
build and then Build
the project again.
from react-native-onesignal.
Related Issues (20)
- [Bug]: fallback alert is always shown on iOS HOT 3
- How to solve this Error in XCode Multiple commands produce React-Core-60309c9c-RCTI18nStrings | React-Core-RCTI18nStrings? HOT 1
- [Bug]: stale/wrong data in getPermissionAsync and requestPermission methods HOT 1
- [Bug]: Duplicate notifications occur when using an additional SDK, and foregroundWillDisplay does not fire with notifications from sources outside of OneSignal. HOT 2
- [Bug]: Linking fails on macbook pro m2 when trying to run app on iphone simulator HOT 1
- [Bug]: Onesignal does not show notification when app in foreground android HOT 3
- Incorrect Notification Badge Count on Android Devices with Expo React Native
- [Bug]: Possibly threading issue with willDisplay on Android + documentation clarification
- [Feedback]: Bump to OneSignal-iOS-SDK 3.12.8 / privacy manifest requirement HOT 2
- [question]: Starting a new project in React Native with the new architecture enabled HOT 2
- [question]: How to prevent web notifications from showing when tab is being viewed? HOT 1
- [Bug]: Could not create Worker com.onesignal.notifications.internal.restoration.impl.NotificationRestoreWorkManager$NotificationRestoreWorker HOT 3
- [Bug]: react native app is crashing as soon as it installed on my phone HOT 2
- [Bug]: Permission Not Granted (Android) HOT 5
- [Bug]: Push Notifications Not Reaching TestFlight Builds
- [Bug]: Crash "RuntimeException: Could not invoke OneSignal.hasNotificationPermission" HOT 1
- [Bug]: OneSignal.login() doesn't set the externalId in react native HOT 2
- [Bug]: Push Notification with status FAILED on iOS HOT 2
- Can't find any documentation on how to handle the actions buttons in my notification HOT 2
- ⚠️ 5.0.0 to 5.1.0 Deprecated - These version may be blocked or rate limited. Please update to 5.1.1 or newer ⚠️
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-onesignal.