Runtime crash due to unversioned lib crypto dylib

A recent update to my app compiled on MacOS 11.5.2 using Xojo 2021 Release 2.1 was successfully submitted to the App Store but crashes on startup (dump attached) when I run it on MacBook Pro running MacOS 11.5.2. I use AppWrapper Version 4.3.1 to prepare it for the App Store.

If I run it on a Mac Mini with an M1 processor it runs fine.

Detecting these run-time issues has been a problem in the past so I’ve added code to my app so that if it is running on these two particular systems (using the MacAddress on the network interface to identify them) I can selectively turn on a debugging report. Doing this the app runs happily on both systems.

I thought this was due to my use of macoslib but earlier discussions suggest otherwise. But a solution is completely unclear to me.

And going through App Store submissions repeatedly to find a combination that works isn’t very attractive,

Any suggestions?

Process: MyAccounts [61887]
Path: /Applications/MyAccounts.app/Contents/MacOS/MyAccounts
Identifier: com.ramonsoftware.myaccounts
Version: 7.3.3 (2011.7.3)
App Item ID: 417494073
App External ID: 843748350
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: MyAccounts [61887]
User ID: 501

Date/Time: 2021-08-30 14:34:02.270 +1200
OS Version: macOS 11.5.2 (20G95)
Report Version: 12
Bridge OS Version: 5.5 (18P4759a)
Anonymous UUID: 4A929A68-EAF8-1254-BA7D-228CEEEB331C

Sleep/Wake UUID: 99AC8DAD-2430-4C71-B5B9-FBC22FB3001B

Time Awake Since Boot: 300000 seconds
Time Since Wake: 1400 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff204ff92e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff2052e5bd pthread_kill + 263
2 libsystem_c.dylib 0x00007fff20483406 abort + 125
3 libcrypto.dylib 0x00007fff77f11a4a __report_load.cold.1 + 36
4 libcrypto.dylib 0x00007fff77f11763 __report_load + 427
5 dyld 0x0000000119a29b47 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 535
6 dyld 0x0000000119a29f52 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
7 dyld 0x0000000119a24ae6 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 492
8 dyld 0x0000000119a2289f ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 191
9 dyld 0x0000000119a22940 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82
10 dyld 0x0000000119a12a12 dyld::runInitializers(ImageLoader*) + 82
11 dyld 0x0000000119a1e11a dlopen_internal + 616
12 libdyld.dylib 0x00007fff2054bc94 dlopen_internal(char const*, int, void*) + 185
13 libdyld.dylib 0x00007fff2053a07e dlopen + 28
14 com.xojo.XojoFramework 0x000000010ef35e94 LoadFunctionPointerFromLibrary + 492
15 com.ramonsoftware.myaccounts 0x000000010eb34f6e CertTools.ReadReceipt%o%o + 2622
16 com.ramonsoftware.myaccounts 0x000000010e97ab00 App.Event_Open%%o + 6128
17 com.xojo.XojoFramework 0x000000010eedad8e CocoaFinishApplicationStartup() + 152
18 com.xojo.XojoFramework 0x000000010eed9a11 0x10edf9000 + 920081
19 com.apple.CoreFoundation 0x00007fff2061d0cd CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
20 com.apple.CoreFoundation 0x00007fff206b8b1c ___CFXRegistrationPost_block_invoke + 49
21 com.apple.CoreFoundation 0x00007fff206b8a9a _CFXRegistrationPost + 454
22 com.apple.CoreFoundation 0x00007fff205ee34e _CFXNotificationPost + 736
23 com.apple.Foundation 0x00007fff2135ebb8 -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
24 com.apple.AppKit 0x00007fff22e36440 -[NSApplication _postDidFinishNotification] + 305
25 com.apple.AppKit 0x00007fff22e36192 -[NSApplication _sendFinishLaunchingNotification] + 208
26 com.apple.AppKit 0x00007fff22e2d6cd _DPSNextEvent + 2235
27 com.apple.AppKit 0x00007fff22e2b945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
28 com.xojo.XojoFramework 0x000000010eedb540 0x10edf9000 + 927040
29 com.xojo.XojoFramework 0x000000010eedb584 0x10edf9000 + 927108
30 com.ramonsoftware.myaccounts 0x000000010e5ea8e5 Application._CallFunctionWithExceptionHandling%%op + 181
31 com.xojo.XojoFramework 0x000000010f05e1b4 CallFunctionWithExceptionHandling(void (*)()) + 254
32 com.xojo.XojoFramework 0x000000010eedb4ed 0x10edf9000 + 926957
33 com.apple.AppKit 0x00007fff22e1dc69 -[NSApplication run] + 586
34 com.xojo.XojoFramework 0x000000010f05cafe RuntimeRun + 41
35 com.ramonsoftware.myaccounts 0x000000010e698d73 REALbasic._RuntimeRun + 19
36 com.ramonsoftware.myaccounts 0x000000010ebcc6c8 _Main + 536
37 com.ramonsoftware.myaccounts 0x000000010ebcb203 main + 19
38 libdyld.dylib 0x00007fff20549f3d start + 1

Thread 1:
0 libsystem_pthread.dylib 0x00007fff2052a420 start_wqthread + 0

Thread 2:
0 libsystem_pthread.dylib 0x00007fff2052a420 start_wqthread + 0

Thread 3:
0 libsystem_pthread.dylib 0x00007fff2052a420 start_wqthread + 0

Thread 4:
0 libsystem_pthread.dylib 0x00007fff2052a420 start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000119ae3e00 rcx: 0x00007ffee1696438 rdx: 0x0000000000000000
rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ffee1696460 rsp: 0x00007ffee1696438
r8: 0x00007fff808260e8 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000246
r12: 0x0000000000000103 r13: 0x00007ffee1696550 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007fff204ff92e rfl: 0x0000000000000246 cr2: 0x00007fff86b620a8

Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133

Thread 0 instruction stream not available.

Thread 0 last branch register state not available.

Binary Images:
0x10e562000 - 0x10ec36fff +com.ramonsoftware.myaccounts (7.3.3 - 2011.7.3) <8F88AADB-60E0-3D54-BC02-600A196B3BC8> /Applications/MyAccounts.app/Contents/MacOS/MyAccounts
0x10edf9000 - 0x10f17cfff +com.xojo.XojoFramework (1.0 - 2) <6CBAC103-FE58-366E-8A1B-60235D4E08AF> /Applications/MyAccounts.app/Contents/Frameworks/XojoFramework.framework/Versions/A/XojoFramework
0x112711000 - 0x112720fff +AppearancePakCocoa.dylib (0) <496EC999-9A5D-3DE2-985E-C601A2404B4D> /Applications/MyAccounts.app/Contents/Frameworks/AppearancePakCocoa.dylib
0x112731000 - 0x112788fff +Crypto.dylib (0) <5460CE22-9919-3594-B967-68B4739C8CF2> /Applications/MyAccounts.app/Contents/Frameworks/Crypto.dylib
0x1127a2000 - 0x1127a5fff +InternetEncodings.dylib (0) /Applications/MyAccounts.app/Contents/Frameworks/InternetEncodings.dylib
0x1127af000 - 0x112816fff +RegEx.dylib (0) <27013568-998C-37B1-9001-5A20F2E892B5> /Applications/MyAccounts.app/Contents/Frameworks/RegEx.dylib
0x112822000 - 0x112825fff +Shell.dylib (0) /Applications/MyAccounts.app/Contents/Frameworks/Shell.dylib
0x112830000 - 0x1128a3fff +XML.dylib (0) <035A07C1-0441-3FC5-8E39-83F455BF36C2> /Applications/MyAccounts.app/Contents/Frameworks/XML.dylib
0x114175000 - 0x114184fff libobjc-trampolines.dylib (824) /usr/lib/libobjc-trampolines.dylib
0x119a0c000 - 0x119aa7fff dyld (852.2) <57DB2053-BFD5-3683-97C6-F1DB2A1F1D09> /usr/lib/dyld
0x7fff20266000 - 0x7fff20267fff libsystem_blocks.dylib (79) /usr/lib/system/libsystem_blocks.dylib
0x7fff20268000 - 0x7fff2029dfff libxpc.dylib (2038.120.1) /usr/lib/system/libxpc.dylib
0x7fff2029e000 - 0x7fff202b5fff libsystem_trace.dylib (1277.120.1) <5B36BE08-BABA-3F2F-934B-B3FFD10A07A3> /usr/lib/system/libsystem_trace.dylib
0x7fff202b6000 - 0x7fff20353fff libcorecrypto.dylib (1000.140.4) <75692EFA-23F5-381B-A2BB-A8C8B78FCFAA> /usr/lib/system/libcorecrypto.dylib
0x7fff20354000 - 0x7fff20380fff libsystem_malloc.dylib (317.140.5) <0AEDABF0-CFF7-3304-9FF8-EB3BBF0801E6> /usr/lib/system/libsystem_malloc.dylib
0x7fff20381000 - 0x7fff203c5fff libdispatch.dylib (1271.120.2) /usr/lib/system/libdispatch.dylib
0x7fff203c6000 - 0x7fff203fffff libobjc.A.dylib (824) <551C4322-3921-3703-8CC6-1E8E143BB474> /usr/lib/libobjc.A.dylib
0x7fff20400000 - 0x7fff20402fff libsystem_featureflags.dylib (28.60.1) <45D158F7-C4E4-3BDE-A218-AD346686E7AB> /usr/lib/system/libsystem_featureflags.dylib
0x7fff20403000 - 0x7fff2048bfff libsystem_c.dylib (1439.141.1) <337F746F-8232-3439-BBFF-BAB9C10731F4> /usr/lib/system/libsystem_c.dylib
0x7fff2048c000 - 0x7fff204e1fff libc++.1.dylib (905.6) /usr/lib/libc++.1.dylib
0x7fff204e2000 - 0x7fff204f7fff libc++abi.dylib (905.6) <2F9B5E97-FD54-342A-8233-A5ECCD949F81> /usr/lib/libc++abi.dylib
0x7fff204f8000 - 0x7fff20527fff libsystem_kernel.dylib (7195.141.2) /usr/lib/system/libsystem_kernel.dylib
0x7fff20528000 - 0x7fff20533fff libsystem_pthread.dylib (454.120.2) /usr/lib/system/libsystem_pthread.dylib
0x7fff20534000 - 0x7fff2056ffff libdyld.dylib (852.2) <11007DE4-ABE1-3079-BF1C-4D0EADA884DD> /usr/lib/system/libdyld.dylib
0x7fff20570000 - 0x7fff20579fff libsystem_platform.dylib (254.80.2) <6F368391-D41B-3A7E-9992-6000FA985F21> /usr/lib/system/libsystem_platform.dylib
0x7fff2057a000 - 0x7fff205a5fff libsystem_info.dylib (542.40.3) <3965B574-34FA-3CF8-BB0B-FCEC7DA8C493> /usr/lib/system/libsystem_info.dylib
0x7fff205a6000 - 0x7fff20a43fff com.apple.CoreFoundation (6.9 - 1777.103) <08B48289-1C59-3259-8D49-F1FA51ED53D2> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff20a44000 - 0x7fff20c79fff com.apple.LaunchServices (1122.41 - 1122.41) <38848652-473A-32BF-AF80-AE71F486FF7E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x7fff20c7a000 - 0x7fff20d4efff com.apple.gpusw.MetalTools (1.0 - 1) /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools
0x7fff20d4f000 - 0x7fff20fabfff libBLAS.dylib (1336.140.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff20fac000 - 0x7fff20ff9fff com.apple.Lexicon-framework (1.0 - 86.2) <0E57E9C3-00A8-307E-B2DE-98720083D3E2> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
0x7fff20ffa000 - 0x7fff21068fff libSparse.dylib (106) <70D44B7A-1D2B-39F1-B606-6423E640D950> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
0x7fff21069000 - 0x7fff210e6fff com.apple.SystemConfiguration (1.20 - 1.20) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff210e7000 - 0x7fff2111bfff libCRFSuite.dylib (50) <0CBFE708-F55B-3B66-A06A-8BCB9355F169> /usr/lib/libCRFSuite.dylib
0x7fff2111c000 - 0x7fff21354fff libmecabra.dylib (929.10) <083F04E5-49A8-397C-8014-7DAD0C55C568> /usr/lib/libmecabra.dylib
0x7fff21355000 - 0x7fff216b3fff com.apple.Foundation (6.9 - 1777.103) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff216b4000 - 0x7fff2179cfff com.apple.LanguageModeling (1.0 - 247.3) /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x7fff2179d000 - 0x7fff218d3fff com.apple.CoreDisplay (237.4 - 237.4) <9E2D1EEA-C99A-3406-BC4B-9153DA78B157> /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
0x7fff218d4000 - 0x7fff21b44fff com.apple.audio.AudioToolboxCore (1.0 - 1181.72) /System/Library/PrivateFrameworks/AudioToolboxCore.framework/Versions/A/AudioToolboxCore
0x7fff21b45000 - 0x7fff21d2afff com.apple.CoreText (677.6.0.2 - 677.6.0.2) /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x7fff21d2b000 - 0x7fff223bcfff com.apple.audio.CoreAudio (5.0 - 5.0) <3A5F6819-CA35-3C12-870E-325F236FCA20> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff223bd000 - 0x7fff22714fff com.apple.security (7.0 - 59754.140.13) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff22715000 - 0x7fff22974fff libicucore.A.dylib (66112) <0F2D441F-A530-322B-B408-5963ABE0A3DF> /usr/lib/libicucore.A.dylib
0x7fff22975000 - 0x7fff2297efff libsystem_darwin.dylib (1439.141.1) <3D4F1678-BA4A-3318-8DD0-D391F3AB9986> /usr/lib/system/libsystem_darwin.dylib
0x7fff2297f000 - 0x7fff22c6afff com.apple.CoreServices.CarbonCore (1307.3 - 1307.3) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff22c6b000 - 0x7fff22ca9fff com.apple.CoreServicesInternal (476.1.1 - 476.1.1) /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
0x7fff22caa000 - 0x7fff22ce4fff com.apple.CSStore (1122.41 - 1122.41) <71140CEC-66B4-3475-84B8-3DEB24167B77> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
0x7fff22ce5000 - 0x7fff22d93fff com.apple.framework.IOKit (2.0.2 - 1845.120.6) <67BE2B74-A20F-320C-9484-603D141A47AF> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff22d94000 - 0x7fff22d9ffff libsystem_notify.dylib (279.40.4) <1AE27156-89B5-3E4A-AB14-A77E91F93DC7> /usr/lib/system/libsystem_notify.dylib
0x7fff22da0000 - 0x7fff22dedfff libsandbox.1.dylib (1441.141.1) <37533D5B-1AC4-3E2F-B29B-F33D0C463F49> /usr/lib/libsandbox.1.dylib
0x7fff22dee000 - 0x7fff23b39fff com.apple.AppKit (6.9 - 2022.60.128) <8B44AAAB-01A1-30A2-9B1B-CBBBE6DFB82A> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff23b3a000 - 0x7fff23d88fff com.apple.UIFoundation (1.0 - 728.9) <82EA11F1-7D9B-39F7-8CCE-C3E2E6CCBE68> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x7fff23d89000 - 0x7fff23d9bfff com.apple.UniformTypeIdentifiers (637 - 637) /System/Library/Frameworks/UniformTypeIdentifiers.framework/Versions/A/UniformTypeIdentifiers
0x7fff23d9c000 - 0x7fff23f26fff com.apple.desktopservices (1.21 - 1346.6.1) /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x7fff23f3a000 - 0x7fff24148fff com.apple.CoreDuet (1.0 - 1) /System/Library/PrivateFrameworks/CoreDuet.framework/Versions/A/CoreDuet
0x7fff24206000 - 0x7fff2488cfff libnetwork.dylib (2288.140.7) /usr/lib/libnetwork.dylib
0x7fff2488d000 - 0x7fff24d2bfff com.apple.CFNetwork (1240.0.4 - 1240.0.4) <9256A031-E247-364B-BD8C-6D701A07C85A> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff24d2c000 - 0x7fff24d3afff libsystem_networkextension.dylib (1295.140.3) <8D9FA7DC-AE37-3C15-B730-B9E3CA879BA7> /usr/lib/system/libsystem_networkextension.dylib
0x7fff24d3b000 - 0x7fff24d3bfff libenergytrace.dylib (22.100.1) /usr/lib/libenergytrace.dylib
0x7fff24d3c000 - 0x7fff24d98fff libMobileGestalt.dylib (978.140.1) /usr/lib/libMobileGestalt.dylib
0x7fff24d99000 - 0x7fff24daffff libsystem_asl.dylib (385) <9284A3C6-2AB1-3596-BD6C-0D19C7A0DD99> /usr/lib/system/libsystem_asl.dylib
0x7fff24db0000 - 0x7fff24dc8fff com.apple.TCC (1.0 - 1) /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff24dc9000 - 0x7fff2512efff com.apple.SkyLight (1.600.0 - 588.7) <5CE5D2B0-BDA7-3F08-BD50-A37580EF6F03> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
0x7fff2512f000 - 0x7fff257b8fff com.apple.CoreGraphics (2.0 - 1463.16.1) /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff257b9000 - 0x7fff258affff com.apple.ColorSync (4.13.0 - 3473.4.3) <109E4F48-F6CB-3128-9E00-8CA54AC7ED27> /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x7fff258b0000 - 0x7fff2590bfff com.apple.HIServices (1.22 - 716) <6E7F240C-BAD6-34BA-8D41-2E0CF04BF089> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x7fff259ff000 - 0x7fff25bbffff com.apple.Montreal (1.0 - 142) /System/Library/PrivateFrameworks/Montreal.framework/Versions/A/Montreal
0x7fff25cb2000 - 0x7fff260d1fff com.apple.CoreData (120 - 1048) <28EADAF4-E5F9-3D99-80C9-1C41C0B2664A> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff260d2000 - 0x7fff260e7fff com.apple.ProtocolBuffer (1 - 285.24.10.20.1) /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer
0x7fff260e8000 - 0x7fff2629bfff libsqlite3.dylib (321.3) /usr/lib/libsqlite3.dylib
0x7fff2629c000 - 0x7fff26318fff com.apple.Accounts (113 - 113) /System/Library/Frameworks/Accounts.framework/Versions/A/Accounts
0x7fff26319000 - 0x7fff26330fff com.apple.commonutilities (8.0 - 900) /System/Library/PrivateFrameworks/CommonUtilities.framework/Versions/A/CommonUtilities
0x7fff26331000 - 0x7fff263b0fff com.apple.BaseBoard (526 - 526) <43C017F2-785C-3B1A-9B75-77CE7D911B34> /System/Library/PrivateFrameworks/BaseBoard.framework/Versions/A/BaseBoard
0x7fff263b1000 - 0x7fff263f9fff com.apple.RunningBoardServices (1.0 - 505.100.8) <1A4FCF53-32D3-3E86-A748-4681AD3DBC89> /System/Library/PrivateFrameworks/RunningBoardServices.framework/Versions/A/RunningBoardServices
0x7fff263fa000 - 0x7fff2646efff com.apple.AE (918.6 - 918.6) <9C51A5C3-4443-3E35-9B8B-058522D67014> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x7fff2646f000 - 0x7fff26475fff libdns_services.dylib (1310.140.1) /usr/lib/libdns_services.dylib
0x7fff26476000 - 0x7fff2647dfff libsystem_symptoms.dylib (1431.140.1) /usr/lib/system/libsystem_symptoms.dylib
0x7fff2647e000 - 0x7fff26609fff com.apple.Network (1.0 - 1) <54D14297-AAE0-3F91-AB8E-C279835253F4> /System/Library/Frameworks/Network.framework/Versions/A/Network
0x7fff2660a000 - 0x7fff26639fff com.apple.analyticsd (1.0 - 1) /System/Library/PrivateFrameworks/CoreAnalytics.framework/Versions/A/CoreAnalytics
0x7fff2663a000 - 0x7fff2663cfff libDiagnosticMessagesClient.dylib (112) <73ADCBBF-4E05-3F3B-B6FD-BAA6D027A3AF> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff2663d000 - 0x7fff26689fff com.apple.spotlight.metadata.utilities (1.0 - 2150.26) <4E669BF7-7B96-3147-BDCC-97DDB25D8A83> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
0x7fff2668a000 - 0x7fff26724fff com.apple.Metadata (10.7.0 - 2150.26) <297F20A5-88F2-37EC-916F-10E0256367E1> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x7fff26725000 - 0x7fff2672bfff com.apple.DiskArbitration (2.7 - 2.7) <44EF83F5-B10C-3EB3-BD7E-98ADEC4D4835> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff2672c000 - 0x7fff26d93fff com.apple.vImage (8.1 - 544.4) <6812D055-19BD-321F-B3E3-F51EEF3EBF5B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff26d94000 - 0x7fff27071fff com.apple.QuartzCore (1.11 - 927.24) <58088A96-989A-37F5-B1AE-757CA4CC7DAF> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff27072000 - 0x7fff270b3fff libFontRegistry.dylib (309) <562EE3DF-A4B8-3601-B5E5-66A247E23C89> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff270b4000 - 0x7fff271f4fff com.apple.coreui (2.1 - 692.1) <34077D62-EC7B-3E65-89F3-7F8CBDAB23AE> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff271f5000 - 0x7fff272e0fff com.apple.ViewBridge (553.1 - 553.1) /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/ViewBridge
0x7fff272e1000 - 0x7fff272ecfff com.apple.PerformanceAnalysis (1.278.3 - 278.3) <2E7C10E8-DF57-3627-A3A0-8A658284FAEF> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x7fff272ed000 - 0x7fff272fcfff com.apple.OpenDirectory (11.5 - 230.40.1) /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff272fd000 - 0x7fff2731cfff com.apple.CFOpenDirectory (11.5 - 230.40.1) <3E73B2D0-2BFD-3BCD-ACB0-FB1835634596> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x7fff2731d000 - 0x7fff27329fff com.apple.CoreServices.FSEvents (1290.120.5 - 1290.120.5) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x7fff2732a000 - 0x7fff2734efff com.apple.coreservices.SharedFileList (144 - 144) <5D0C2E87-9DAE-34D3-8CD4-CA797A96E22D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
0x7fff2734f000 - 0x7fff27351fff libapp_launch_measurement.dylib (14.1) <592E974E-B5CA-3403-AFF1-E85B14F5F499> /usr/lib/libapp_launch_measurement.dylib
0x7fff27352000 - 0x7fff27399fff com.apple.CoreAutoLayout (1.0 - 21.10.1) <926B66A6-602C-3983-A98E-8645DE61ADCE> /System/Library/PrivateFrameworks/CoreAutoLayout.framework/Versions/A/CoreAutoLayout
0x7fff2739a000 - 0x7fff2747cfff libxml2.2.dylib (34.10) <069D24D9-19F5-3000-AF25-D7162E74B880> /usr/lib/libxml2.2.dylib
0x7fff2747d000 - 0x7fff274cafff com.apple.CoreVideo (1.8 - 414.7) <9EBD539C-AD95-363E-B48C-75DE39D8539A> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff274cb000 - 0x7fff274cdfff com.apple.loginsupport (1.0 - 1) /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
0x7fff274ce000 - 0x7fff274f5fff com.apple.aps.framework (4.0 - 4.0) /System/Library/PrivateFrameworks/ApplePushService.framework/Versions/A/ApplePushService
0x7fff274f6000 - 0x7fff27511fff com.apple.UserManagement (1.0 - 1) <209049A9-BA50-336B-B43E-050998B5E33D> /System/Library/PrivateFrameworks/UserManagement.framework/Versions/A/UserManagement
0x7fff27512000 - 0x7fff276a3fff com.apple.cloudkit.CloudKit (990 - 990) /System/Library/Frameworks/CloudKit.framework/Versions/A/CloudKit
0x7fff27726000 - 0x7fff27ab5fff com.apple.CoreML (1.0 - 1) <7EE67D1E-9AE6-32F0-91C8-6C322E987B58> /System/Library/Frameworks/CoreML.framework/Versions/A/CoreML
0x7fff28408000 - 0x7fff28484fff com.apple.corelocation (2420.19.23 - 2420.19.23) <81AB234F-A243-3FA6-A563-2E08BCCCAF88> /System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation
0x7fff28485000 - 0x7fff28495fff libsystem_containermanager.dylib (318.100.4) <6A824A01-6B4C-30DA-907A-580FD51773B8> /usr/lib/system/libsystem_containermanager.dylib
0x7fff28496000 - 0x7fff284a7fff com.apple.IOSurface (290.8.1 - 290.8.1) <1F429DA5-5C44-3CE7-AB92-A1795C6DC8C9> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff284a8000 - 0x7fff284b1fff com.apple.IOAccelerator (442.9 - 442.9) <411D0577-C20D-32D0-8AFB-D7FA59D3BEDA> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x7fff284b2000 - 0x7fff285d5fff com.apple.Metal (244.303 - 244.303) <385BACC4-E10E-3B01-839A-C1C8323C84E6> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
0x7fff285d6000 - 0x7fff285f2fff com.apple.audio.caulk (1.0 - 70) <57C30294-F8E7-3501-BE60-20FFF8B3B020> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk
0x7fff285f3000 - 0x7fff286ddfff com.apple.CoreMedia (1.0 - 2780.10) <39EC2321-F8D6-3A1F-BDA5-EDCF1B5AE0CA> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
0x7fff286de000 - 0x7fff2883afff libFontParser.dylib (305.6.0.2) <4E2122C1-2092-328A-B8CF-6BFAC82A71C0> /System/Library/PrivateFrameworks/FontServices.framework/libFontParser.dylib
0x7fff2883b000 - 0x7fff28b36fff com.apple.HIToolbox (2.1.1 - 1062) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox

Model: MacBookPro16,2, BootROM 1554.140.20.0.0 (iBridge: 18.16.14759.0.1,0), 4 processors, Quad-Core Intel Core i5, 2 GHz, 16 GB, SMC
Graphics: kHW_IntelIrisPlusGraphicsItem, Intel Iris Plus Graphics, spdisplays_builtin
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, LPDDR4X, 3733 MHz, Samsung, -
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, LPDDR4X, 3733 MHz, Samsung, -
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x7BF), wl0: Jul 7 2021 02:54:21 version 9.30.444.17.32.5.70 FWID 01-6551fb93
Bluetooth: Version 8.0.5d7, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: USB 3.1 Bus
USB Device: Apple T2 Bus
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 85.0
Thunderbolt Bus: MacBook Pro, Apple Inc., 85.0

Chances are this comes from code to validate the App Store Receipt. It will need updating to overcome this change from Apple.

Which version of the macOS is your minimum?

I have a feedback report for Xojo to expose the needed functionality in their Crypto libraries so that we can bypass Apple’s shenanigans (especially as with Big Sur, they’ve taken to hiding them from us, for security).

Please add some votes to <https://xojo.com/issue/64336>

There is a project by Jürg Otter who had made the Crypto libs available with a current ARM build: How to build OpenSSL (libcrypto) and include it in a Xojo built app

@Sam Rowlands: the OP wants the solve the problem this decade and not in the next decade.

I get that, by figuring out which is his minimum OS, I can suggest which version to use for the moment. Plus if it can get enough votes, it would really help all Xojo customers who target the App Store and help to keep our apps sizes to a minimal.

We had this problem before: App Store Rejection for using libcrypto.dylib

My solution is to use libcrypto35 -. this one is available on macOS 10.11 up to 11.x

Find the places where you use libcrypto (as Sam already guessed it will be in the app store receipt module) and replace it with libcrypto35

#if TargetMacOS then
  Declare Function d2i_PKCS7_fp Lib "/usr/lib/libcrypto.35.dylib" (fp As Integer, p7 As Ptr) As Ptr
  declare sub PKCS7_free lib "/usr/lib/libcrypto.35.dylib" (p7 as Ptr)
  declare function OBJ_obj2nid lib "/usr/lib/libcrypto.35.dylib" (ASN1_OBJECT as Ptr) as int32
  declare function ASN1_get_object lib "/usr/lib/libcrypto.35.dylib" (ByRef pp as Ptr, ByRef plength as integer, _
  ByRef ptag as Int32, ByRef pclass as Int32, omax as integer) as int32
...
1 Like