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

Library not loaded #775

Closed
yangdehui opened this issue Feb 20, 2024 · 1 comment
Closed

Library not loaded #775

yangdehui opened this issue Feb 20, 2024 · 1 comment

Comments

@yangdehui
Copy link

The real machine reports an error when running, but the simulator runs normally.
Install via cocoapods
pod 'Hero', '~> 1.6' # https://github.com/lkzhao/Hero

dyld[10115]: Library not loaded: @rpath/Hero.framework/Hero
Referenced from: /private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/SSR20240129
Reason: tried: '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero.framework/Hero ' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero. framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/ Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero.framework/Hero' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno= 2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A- DD73-4F35-B613-05EFB666A7ED/SSR20240129.App/Frameworks/Hero.framework/Hero '(Errno = 2),'/Prive/VAR/Bundle/Application/981653 0A-DD73-4F35-B613-05EFB666A7ED/SSR20240129. app/Frameworks/Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/private/preboot/Cryptexes/OS@rpath/Hero.framework/Hero' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero.framework/Hero' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno= 2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A- DD73-4F35-B613-05EFB666A7ED/SSR20240129.App/Frameworks/Hero.framework/Hero '(Errno = 2),'/Prive/VAR/Bundle/Application/981653 0A-DD73-4F35-B613-05EFB666A7ED/SSR20240129. app/Frameworks/Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero.framework /Hero' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2 ), '/private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/private/var/containers/ Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/System/Library/Frameworks/Hero.framework/Hero' (errno=2 , not in dyld cache)
Library not loaded: @rpath/Hero.framework/Hero
Referenced from: /private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/SSR20240129
Reason: tried: '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero.framework/Hero ' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Hero. framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/private/var/containers/Bundle/ Application/9816530A-DD73-4F35-B613-05EFB666A7ED/SSR20240129.app/Frameworks/Hero.framework/Hero' (errno=2), '/usr/lib/swift/Hero.framework/Hero' (errno=2, not in dyld cache), '/private/preboot/
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

@JoeMatt
Copy link
Collaborator

JoeMatt commented Mar 27, 2024

This doesn't appear to be an issue with the library but rather a user environment issue

@JoeMatt JoeMatt closed this as completed Mar 27, 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

2 participants