Skip to content
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]: When the app is opend #1158

Closed
1 task done
ahmedsafadii opened this issue Nov 19, 2022 · 9 comments
Closed
1 task done

[Bug]: When the app is opend #1158

ahmedsafadii opened this issue Nov 19, 2022 · 9 comments

Comments

@ahmedsafadii
Copy link

What happened?

When i try to open my app It directly crash crashes

Steps to reproduce?

1- Install the last version of one signal.
2- run the app

What did you expect to happen?

the app should open

OneSignal iOS SDK version

Latest

iOS version

15, 14, 13, 12, 11 or below

Specific iOS version

No response

Relevant log output

dyld[2430]: Library not loaded: @rpath/OneSignalOutcomes.framework/OneSignalOutcomes
  Referenced from: <85BF136F-5490-39A3-8131-FE1655107521> /private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Summoner Rift
  Reason: tried: '/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/preboot/Cryptexes/OS@rpath/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/private/var/containers/Bundle/Application/E2DAAF72-FCB6-4D38-B58B-7BDEA560119B/Summoner Rift.app/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2), '/System/Library/Frameworks/OneSignalOutcomes.framework/OneSignalOutcomes' (errno=2, not in dyld cache)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link
Contributor

emawby commented Nov 28, 2022

@ahmedsafadii Hello, what version of Xcode are you using? Are you using cocoapods or Swift package manager? If you are using cocoapods could you provide your podfile and cocoapods version?

@emawby
Copy link
Contributor

emawby commented Nov 28, 2022

Make sure you are using Cocoapods 1.11.3 and try the below code. We have seen this issue when using versions lower than 1.11.3

rm Podfile.lock
pod cache clean --all
pod install --repo-update

@maoryadin
Copy link

Same error!

@emawby
Copy link
Contributor

emawby commented Dec 2, 2022

@maoryadin Are you seeing this issue using cocoapods 1.11.3?

@ahmedsafadii
Copy link
Author

@emawby sorry I didn't see your comments, will I manage to solve the issue I had to downgrade the version of one signal.

3.11.2

jamescodesthings pushed a commit to jamescodesthings/nativescript-plugins that referenced this issue Dec 14, 2022
To fix similar issue to: OneSignal/OneSignal-iOS-SDK#1158

Updates @codesthings/nativescript-onesignal to 1.0.2
@kzkn
Copy link

kzkn commented Dec 19, 2022

I have a similar error.

dyld[85328]: Library not loaded: '@rpath/OneSignalCore.framework/OneSignalCore'
  Referenced from: '/private/var/containers/Bundle/Application/27287DD1-8EFA-451A-984C-B456304F1CB1/myapp.app/myapp'
  Reason: tried: '/usr/lib/swift/OneSignalCore.framework/OneSignalCore' (no such file), '/usr/lib/swift/OneSignalCore.framework/OneSignalCore' (no such file), '/private/var/containers/Bundle/Application/27287DD1-8EFA-451A-984C-B456304F1CB1/myapp.app/Frameworks/OneSignalCore.framework/OneSignalCore' (no such file), '/private/var/containers/Bundle/Application/27287DD1-8EFA-451A-984C-B456304F1CB1/myapp.app/Frameworks/OneSignalCore.framework/OneSignalCore' (no such file), '/private/var/containers/Bundle/Application/27287DD1-8EFA-451A-984C-B456304F1CB1/myapp.app/Frameworks/OneSignalCore.framework/OneSignalCore' (no such file), '/usr/lib/swift/OneSignalCore.framework/OneSignalCore' (no such file), '/usr/lib/swift/OneSignalCore.framework/OneSignalCore' (no such file), '/private/var/containers/Bundle/Application/27287DD1-8EFA-451A-984C-B456304F1CB1/myapp.app/Frameworks/OneSignalCore.framework/OneSignalCore' (no such file), '/private/var/containers/Bundle/Application/27287DD1-8EFA-451A-984C-B456304F1CB1/myapp.app/Frameworks/OneSignalCore.framework/OneSignalCore' (no such file), '/private/var/containers/Bundle/Application/27287DD1-8EFA-451A-984C-B456304F1CB1/myapp.app/Frameworks/OneSignalCore.framework/OneSignalCore' (no such file), '/System/Library/Frameworks/OneSignalCore.framework/OneSignalCore' (no such file)

I use CocoaPods 1.11.3.
The error occurs in OneSignalXCFramework 3.12.1 and above, but not in 3.12.0.
I have tried the workaround (#1158 (comment)), but it did not solve the problem.


(edit)

The error occurs in OneSignalXCFramework 3.12.1 and above, but not in 3.12.0.

There are versions in the below 3.12.0 which occurs the error. Here are the results of my tests with each version:

  • 3.11.2 => OK
  • 3.11.3 => NG
  • 3.11.4 => NG
  • 3.11.5 => NG
  • 3.12.0 => OK
  • 3.12.1 => NG
  • 3.12.2 => NG
  • 3.12.3 => NG

@emawby
Copy link
Contributor

emawby commented Mar 16, 2023

This issue has some discussion with workarounds in this thread. I first recommend verifying that your Ruby version is 2.7.3 or higher since cocoapods 1.11.3 has a dependency that requires that ruby version, but will fail silently.

@emawby emawby closed this as completed Mar 16, 2023
@emawby
Copy link
Contributor

emawby commented Mar 16, 2023

Cocoapods 1.12.0 is also now available. I am curious is updating to this version will resolve the problem.

@martinberger12
Copy link

This issue has some discussion with workarounds in this thread. I first recommend verifying that your Ruby version is 2.7.3 or higher since cocoapods 1.11.3 has a dependency that requires that ruby version, but will fail silently.

WARNING: ruby-2.7.3 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.
(year 2023)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants