-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: No type or protocol named 'OSUser' and 'OSLiveActivities' #1717
Comments
Same to me 🙏🏻 |
Moi aussi |
I found a solution, you need to downgrade your version of library to 5.1.6 (before they announced live activities). It works for me, but anyway that's the temporary solution. |
@kelbin how did you do this? What does your Podfile look like? |
Thanks, @kelbin, I was able to get this workaround working by running
Then, I ran:
That got it to build on iOS. |
@nan-li can u check this issue, it is happening to a lot of users. |
but they dont have a 5.1.6 version on react-native-onesignal repo. |
You're right, it was resolving it to 5.1.3, so I recommend replacing 5.1.6
with 5.1.3. 👍
…On Thu, Jun 27, 2024 at 1:33 PM Willy Rosa ***@***.***> wrote:
Thanks, @kelbin <https://github.com/kelbin>, I was able to get this
workaround working by running rm -rf node_modules, then changing my
package.json to be "react-native-onesignal": "~5.1.6", then running yarn
install, and resolving to 5.1.3, so my yarn.lock file looked like this:
react-native-onesignal@~5.1.6:
version "5.1.3"
resolved "https://registry.yarnpkg.com/react-native-onesignal/-/react-native-onesignal-5.1.3.tgz#2da1819255a329dca6571ddef22184410c26b627"
integrity sha512-ynHUqN6TaV98xghA05GddwBXF41jgb7BboP2xucvvJljxEw6CICnaiMfcupsxGNNHm74FBLsl5JK3qMuoLpoJw==
dependencies:
invariant "^2.2.2"
Then, I ran: cd ios && rm -rf Pods && rm Podfile.lock, and then modified
Podfile to be:
...
pod 'OneSignalXCFramework', '5.1.6'
...
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignalXCFramework', '5.1.6'
end
That got it to build on iOS.
but they dont have a 5.1.6 version on react-native-onesignal repo.
—
Reply to this email directly, view it on GitHub
<#1717 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFRUYVGBPPRN2FF2QA7OSWLZJRZH5AVCNFSM6AAAAABJQ2WEJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGYZDANRRHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
*Kody K.*
*Founder, Field Rocket*
*801-349-9925*
*Building The World's Easiest Software for Residential Contractors*
*https://fieldrocket.us* <https://fieldrocket.us/>
|
I used a unity build (the error same for all platform, except iOS), 5.1.6 exist there. |
What happened?
I have installed latest version and after compiling the app. I'm getting this issue.
Steps to reproduce?
What did you expect to happen?
I expect the app to compile and run on my emulator.
React Native OneSignal SDK version
5.2.0
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: