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]: [email protected] Library not loaded: @rpath/OneSignalCore.framework/OneSignalCore #871

Closed
1 task done
anatoly-spb opened this issue Mar 3, 2023 · 6 comments
Closed
1 task done

Comments

@anatoly-spb
Copy link

anatoly-spb commented Mar 3, 2023

What happened?

I have simple cordova application with [email protected] (based on OneSignalXCFramework 3.12.3) https://github.com/anatoly-spb/cordova-hello

When we try to run the application on device or simulator from xcode the application crashed with:

dyld[71065]: Library not loaded: @rpath/OneSignalCore.framework/OneSignalCore

Here is OneSignal/OneSignal-iOS-SDK#1227 the same error.

When we downgrade to [email protected] (based on OneSignalXCFramework 3.11.2), it works as accepted.

Steps to reproduce?

1. install nodejs 16.19.0 with npm 8.19.3, [email protected]
2. install cocoapods 1.11.3
3. git clone https://github.com/anatoly-spb/cordova-hello.git
4. cd cordova-hello
5. npm install
6. cordova platforms add [email protected]
7. cordova info

Cordova Packages:

    cli: 11.1.0
        common: 4.1.0
        create: 4.1.0
        lib: 11.1.0
            common: 4.1.0
            fetch: 3.1.0
            serve: 4.0.1

Project Installed Platforms:

    ios: 6.2.0

Project Installed Plugins:

    onesignal-cordova-plugin: 3.3.0

Environment:

    OS: macOS Monterey 12.6.3 (21G419) (darwin 21.6.0) x64
    Node: v16.19.0
    npm: 8.19.3

ios Environment:

    xcodebuild:
Xcode 14.2
Build version 14C18


Project Setting Files:

    config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.hello" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>HelloWorld</name>
    <description>Sample Apache Cordova App</description>
    <author email="[email protected]" href="https://cordova.apache.org">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
</widget>

    package.json:
--- Start of Cordova JSON Snippet ---
{
  "plugins": {
    "onesignal-cordova-plugin": {}
  },
  "platforms": [
    "ios"
  ]
}
--- End of Cordova JSON Snippet ---
  1. cd platforms/ios
  2. pod repo update
  3. pod install
  4. cd ../..
  5. cordova build ios
  6. open platforms/ios/HelloCordova.xcworkspace in xcode and try to run on simulator and got:
dyld[71065]: Library not loaded: @rpath/OneSignalCore.framework/OneSignalCore


### What did you expect to happen?

I expect to run my application without crash during load.

### OneSignal Cordova SDK version

Release 3.3.0

### Which platform(s) are affected?

- [X] iOS
- [ ] Android

### Relevant log output

```Shell
dyld[71065]: Library not loaded: @rpath/OneSignalCore.framework/OneSignalCore
  Referenced from: <192A6C50-6CB3-396A-A50F-110CDC4A4A8F> /Users/jenkins/Library/Developer/CoreSimulator/Devices/987BD188-8B99-4C43-92A7-43DFF0C3B242/data/Containers/Bundle/Application/5B910063-31B7-4256-8AD7-41B78216D5A4/HelloWorld.app/HelloWorld
  Reason: tried: '/Users/jenkins/Library/Developer/Xcode/DerivedData/HelloWorld-fhjunbboghuxmpckkqicpxrxarmh/Build/Products/Debug-iphonesimulator/OneSignalCore.framework/OneSignalCore' (errno=2), '/Users/jenkins/Library/Developer/CoreSimulator/Devices/987BD188-8B99-4C43-92A7-43DFF0C3B242/data/Containers/Bundle/Application/5B910063-31B7-4256-8AD7-41B78216D5A4/HelloWorld.app/Frameworks/OneSignalCore.framework/OneSignalCore' (errno=2), '/Users/jenkins/Library/Developer/CoreSimulator/Devices/987BD188-8B99-4C43-92A7-43DFF0C3B242/data/Containers/Bundle/Application/5B910063-31B7-4256-8AD7-41B78216D5A4/HelloWorld.app/Frameworks/OneSignalCore.framework/OneSignalCore' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OneSignalCore.framework/OneSignalCore' (errno=2)
Library not loaded: @rpath/OneSignalCore.framework/OneSignalCore
  Referenced from: <192A6C50-6CB3-396A-A50F-110CDC4A4A8F> /Users/jenkins/Library/Developer/CoreSimulator/Devices/987BD188-8B99-4C43-92A7-43DFF0C3B242/data/Containers/Bundle/Application/5B910063-31B7-4256-8AD7-41B78216D5A4/HelloWorld.app/HelloWorld
  Reason: tried: '/Users/jenkins/Library/Developer/Xcode/DerivedData/HelloWorld-fhjunbboghuxmpckkqicpxrxarmh/Build/Products/Debug-iphonesimulator/OneSignalCore.framework/OneSignalCore' (errno=2), '/Users/jenkins/Library/Developer/CoreSimulator/Devices/987BD188-8B99-4C43-92A7-43DFF0C3B242/data/Containers/Bundle/Application/5B910063-31B7-4256-8AD7-41B78216D5A4/HelloWorld.app/Frameworks/OneSignalCore.framework/OneSignalCore' (errno=2), '/Users/jenkins/Library/Developer/CoreSimulator/Devices/987BD188-8B99-4C43-92A7-43DFF0C3B242/data/Containers/Bundle/Application/5B910063-31B7-4256-8AD7-41B78216D5A4/HelloWorld.app/Frameworks/OneSignalCore.framework/OneSignalCore' (errno=2), '/Applications/Xcode.app/Content
dyld config: DYLD_SHARED_CACHE_DIR=/Users/jenkins/Library/Developer/CoreSimulator/Caches/dyld/21G419/com.apple.CoreSimulator.SimRuntime.iOS-16-2.20C52 DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/jenkins/Library/Developer/Xcode/DerivedData/HelloWorld-fhjunbboghuxmpckkqicpxrxarmh/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/jenkins/Library/Developer/Xcode/DerivedData/HelloWorld-fhjunbboghuxmpckkqicpxrxarmh/Build/Products/Debug-iphonesimulator DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
(lldb)

Code of Conduct

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

lincond commented Mar 16, 2023

Any updates on this? I'm facing the same issue. Thanks!

@adamleemiller
Copy link

Still having this same issue with 3.3.1.

Ionic CLI: 6.20.1
Capacitor Core Version: 4.7.1
vue: 3.0.0-0
@ionic-native/onesignal: 5.36.0
onesignal-cordova-plugin: 3.3.1

In Xcode, the build completely successfully but when launching the app itself, I am present with this error:

dyld[4058]: Library not loaded: @rpath/OneSignalExtension.framework/OneSignalExtension
Referenced from: <49373D37-7613-3396-83BE-2C80A26A6EF4> /private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/App
Reason: tried: '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/preboot/Cryptexes/OS@rpath/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/System/Library/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache)
Library not loaded: @rpath/OneSignalExtension.framework/OneSignalExtension
Referenced from: <49373D37-7613-3396-83BE-2C80A26A6EF4> /private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/App
Reason: tried: '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A9-93C5-A71E1E11ACB8/App.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/private/var/containers/Bundle/Application/CE2636BB-822E-44A
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
(lldb)

@JEricaM
Copy link

JEricaM commented May 11, 2023

Same error here with plugin versione 3.3.0! no solution found yet :(

@RZR666
Copy link

RZR666 commented Jun 23, 2023

had the same issue, I think updated to latest ruby 2.7.3 finally fixed it.

@JEricaM
Copy link

JEricaM commented Feb 26, 2024

Problem still here

@nan-li
Copy link
Contributor

nan-li commented Oct 24, 2024

Hi, we have had no further reports of this. Please upgrade the OneSignal SDK if you or anyone is still having this issue. If this is still an issue, please open a new report with updated information.

@nan-li nan-li closed this as completed Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants