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]: Termination Reason: DYLD 1 Library missing Library not loaded: @rpath/OneSignalExtension.framework/OneSignalExtension #1500

Closed
2 of 3 tasks
Bayramito opened this issue Mar 18, 2023 · 6 comments

Comments

@Bayramito
Copy link

What happened?

Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/OneSignalExtension.framework/OneSignalExtension

i get this error when i try to build with XCode, building finishes but app crash on startup with this error.

Ekran Resmi 2023-03-18 11 18 43
If i add them like that it was working before but now i throws this

Ekran Resmi 2023-03-18 11 19 31

Steps to reproduce?

Just install the latest version

What did you expect to happen?

App crashed at startup

React Native OneSignal SDK version

4.5.1

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

dyld[36000]: Library not loaded: @rpath/OneSignalExtension.framework/OneSignalExtension
  Referenced from: <73267F14-3268-3859-8C8A-F520871A425C> /Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/omuzreact
  Reason: tried: '/Users/bayram/Library/Developer/Xcode/DerivedData/omuzreact-duyekhofqkcjgacibvlgueczygxi/Build/Products/Debug-iphonesimulator/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2)
dyld[36001]: Library not loaded: @rpath/OneSignalExtension.framework/OneSignalExtension
  Referenced from: <73267F14-3268-3859-8C8A-F520871A425C> /Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/omuzreact
  Reason: tried: '/Users/bayram/Library/Developer/Xcode/DerivedData/omuzreact-duyekhofqkcjgacibvlgueczygxi/Build/Products/Debug-iphonesimulator/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (errno=2, not in dyld cache), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Users/bayram/Library/Developer/CoreSimulator/Devices/7A5132B8-C78D-4552-A493-6A8B5283B2DF/data/Containers/Bundle/Application/D48308EF-DDF5-400A-B3C2-39FA04812850/omuzreact.app/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OneSignalExtension.framework/OneSignalExtension' (errno=2)

Code of Conduct

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

Gfr1992 commented Mar 22, 2023

Hello, do you have any update on this?

@Bayramito
Copy link
Author

Fixed with latest version

@erickgtzh
Copy link

Fixed with latest version

how??
updated it but I'm still getting the same issue :/ (v4.5.1)

@pierroo
Copy link

pierroo commented Mar 24, 2023

I am confused too; last version is 4.5.1 and was pushed last week; was there a new version since @Bayramito ?

@Bayramito
Copy link
Author

On me, i am using react-native 0.71.4 (latest) on my project

and this is the onesignal config in my podfile...

target 'OneSignalNotificationServiceExtension' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks! :linkage => :static
  pod 'OneSignalXCFramework', '>= 3.0.0', '< 4.0'
end

this is the onesignal version....

"react-native-onesignal": "^4.5.1",

and i did not added any framework or something manually from xcode.

and it's working perfectly. I just cleaned my pod cache, as well as DerivedData, maybe you need to perform these as well

@emawby
Copy link
Contributor

emawby commented Apr 12, 2023

This is likely a duplicate of #1459. There is discussion of fixes in that thread that could help!

@emawby emawby closed this as completed Apr 12, 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