oleghnidets / OHMySQL

Swift + MySQL = ❤️
https://oleghnidets.github.io/OHMySQL/documentation/ohmysql/
MIT License
230 stars 41 forks source link

App crash on iOS16 and iOS17 Device, Simulator runs fine #42

Open Dirk23 opened 1 year ago

Dirk23 commented 1 year ago

Description Hi,

i was testing my iOS App on XCode15 and an iPad on iOS17Beta3. The app runs fine in Simulator, but on the Device the App crashes with the following Debug Log:

  Referenced from: <7BE0D17B-2357-39ED-8D20-5305DA2BF18C> /private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/MySQL.framework/MySQL
  Reason: tried: '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/MySQL.framework/Frameworks/OpenSSL.framework/OpenSSL' (code signature invalid in <A2B2AAE2-C7FB-350D-AFFE-3A40A89DC1B4> '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/MySQL.framework/Frameworks/OpenSSL.framework/OpenSSL' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x009AC240, codeBlobSize=0x00024020), '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/MySQL.framework/Frameworks/OpenSSL.framework/OpenSSL' (code signature invalid in <A2B2AAE2-C7FB-350D-AFFE-3A40A89DC1B4> '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/MySQL.framework/Frameworks/OpenSSL.framework/OpenSSL' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x009AC240, codeBlobSize=0x00024020), '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/92FAA264-1198-43B5-8495-696E0787C8AA/eDine Kitchen.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/System/Library/Frameworks/OpenSSL.framework/OpenSSL' (no such file, not in dyld cache)

Device

Any help is appreciated.

Thank you.

Dirk

Dirk23 commented 1 year ago

With Version 3.1.0 everything is fine.

HammerheadH commented 11 months ago

I've got the same problem, I only installed the framework a few days ago and have made sure I'm on the latest version using CocoaPods. Runs fine in the simulator but crashes on startup on a real device. Seems to crash if the framework is installed, even if you don't execute anything. My target version is iOS 16.2 on XCode 14.2.

HammerheadH commented 11 months ago

@Dirk23 Did you really just update OHMySQL? I'm on the latest version but I'm still having the issue... Not really sure what to try.

Dirk23 commented 11 months ago

@Dirk23 Did you really just update OHMySQL? I'm on the latest version but I'm still having the issue... Not really sure what to try.

https://github.com/oleghnidets/OHMySQL/issues/42#issuecomment-1639734800

I use 3.1.0, with this version everything works fine for me.

oleghnidets commented 11 months ago

Hi guys Do you integrate the library via CocoaPods?

Dirk23 commented 11 months ago

Hi guys Do you integrate the library via CocoaPods?

yes

HammerheadH commented 11 months ago

Hi guys Do you integrate the library via CocoaPods?

Yep

oleghnidets commented 11 months ago

Weird.. anyway, I'm going to remove support of tvOS and watchOS. These platforms add additional complexity to maintenance.

HammerheadH commented 11 months ago

Just an update, adding " pod 'OpenSSL-Universal' " to my podfile and then installing it fixed it, not an ideal fix but it works.

oleghnidets commented 10 months ago

Hi there @HammerheadH @Dirk23 Please, check out the latest release 3.3.0.

Dirk23 commented 8 months ago

Sorry for late Reply, but it still crashes with the OpenSSL Error Message

Dirk23 commented 8 months ago

Just an update, adding " pod 'OpenSSL-Universal' " to my podfile and then installing it fixed it, not an ideal fix but it works.

This didnt help at all, still crashing with some OpenSSL issues.

Ian7110 commented 1 week ago

I am also having a similar issue OhMySQL 3.3.0, IOS 17.5.1 fails but OhMySQL 3.1.0 works I am not importing any OpenSSL component as I am not using SSL. The simulator works but a real device fails

dyld[3046]: Library not loaded: @rpath/OpenSSL.framework/OpenSSL Referenced from: <4B8D1E49-2B9D-3086-9689-310321E8FF5A> /private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/MySQL.framework/MySQL Reason: tried: '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/MySQL.framework/Frameworks/OpenSSL.framework/OpenSSL' (code signature invalid in <3BEC285B-B10D-3071-B247-FC159DC7A070> '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/MySQL.framework/Frameworks/OpenSSL.framework/OpenSSL' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x009C4CB0, codeBlobSize=0x00024500), '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/MySQL.framework/Frameworks/OpenSSL.framework/OpenSSL' (code signature invalid in <3BEC285B-B10D-3071-B247-FC159DC7A070> '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/MySQL.framework/Frameworks/OpenSSL.framework/OpenSSL' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x009C4CB0, codeBlobSize=0x00024500), '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/private/var/containers/Bundle/Application/AABE4983-B456-4BEC-9AE1-4E777349FC09/Fronius.app/Frameworks/OpenSSL.framework/OpenSSL' (no such file), '/System/Library/Frameworks/OpenSSL.framework/OpenSSL' (no such file, not in dyld cache)