XITRIX / iTorrent

Torrent client for iOS 16+
MIT License
2.19k stars 203 forks source link

Library not loaded: OpenSSL #257

Closed ThinkDeeper closed 4 months ago

ThinkDeeper commented 1 year ago

I am getting this error right after instalation and first run. Running on latest master with iPad.

dyld[1614]: Library not loaded: @rpath/OpenSSL.framework/OpenSSL
  Referenced from: <26735387-303A-3FD9-AB04-0D335A8A629B> /private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/ITorrentFramework.framework/ITorrentFramework
  Reason: tried: '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/ITorrentFramework.framework/Frameworks/OpenSSL.framework/OpenSSL' (code signature invalid in <A2B2AAE2-C7FB-350D-AFFE-3A40A89DC1B4> '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/ITorrentFramework.framework/Frameworks/OpenSSL.framework/OpenSSL' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00264240, codeBlobSize=0x0000C580), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/usr/local/Cellar/boost/1.67.0_1/lib/OpenSSL.framework/OpenSSL' (errno=2), '/private/preboot/Cryptexes/OS/usr/local/Cellar/boost/1.67.0_1/lib/OpenSSL.framework/OpenSSL' (errno=2), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/usr/local/Cellar/boost/1.67.0_1/lib/OpenSSL.framework/OpenSSL' (errno=2), '/private/preboot/Cryptexes/OS/usr/local/Cellar/boost/1.67.0_1/lib/OpenSSL.framework/OpenSSL' (errno=2), '/private/preboot/Cryptexes/OS@rpath/OpenSSL.framework/OpenSSL' (errno=2), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/ITorrentFramework.framework/Frameworks/OpenSSL.framework/OpenSSL' (code signature invalid in <A2B2AAE2-C7FB-350D-AFFE-3A40A89DC1B4> '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/ITorrentFramework.framework/Frameworks/OpenSSL.framework/OpenSSL' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00264240, codeBlobSize=0x0000C580), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/usr/local/Cellar/boost/1.67.0_1/lib/OpenSSL.framework/OpenSSL' (errno=2), '/private/preboot/Cryptexes/OS/usr/local/Cellar/boost/1.67.0_1/lib/OpenSSL.framework/OpenSSL' (errno=2), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/private/var/containers/Bundle/Application/98A81BB1-6FE4-47D8-BECF-6A0F8E45C072/iTorrent.app/Frameworks/OpenSSL.framework/OpenSSL' (errno=2), '/usr/local/Cellar/boost/1.67.0_1/lib/OpenSSL.framework/OpenSSL' (errno=2), '/private/preboot/Cryptexes/OS/usr/local/Cellar/boost/1.67.0_1/lib/OpenSSL.framework/OpenSSL' (errno=2), '/System/Library/Frameworks/OpenSSL.framework/OpenSSL' (errno=2, not in dyld cache)

Any idea where is problem? How to make it run? Thx.

XITRIX commented 1 year ago

How did you installed it? You've compiled it manually with xCode?

ThinkDeeper commented 1 year ago

@XITRIX yes, I downloaded the code, successfully build it and install it with xCode, but it crash just after the app starts.

lRoMYl commented 1 year ago

Not sure which OpenSSL this project is linked to but tentatively I'm fixing it with this universal open ssl pod https://github.com/krzyzanowskim/OpenSSL

mahee96 commented 1 year ago

Faced the same issue, had to add OpenSSL-Universal to podfile and add OpenSSL.xcframework to the Linkable libraries list under Build Phases.

image

image