Description
After embedding the Zoom Meeting SDK, my app crashes at startup.
According to the documentation, I am only embedding and linking:
MobileRTC.xcframework
MobileRTCResources.bundle
excluding:
MobileRTCScreenShare.xcframework
zoomcml.xcframework
In order to keep the app size as small as possible.
Error:
Thread 1: signal SIGABRT
An abort signal terminated the process. Such crashes often happen because of an uncaught exception or unrecoverable error or calling the abort() function.
In console log there are the following lines:
dyld[7046]: Library not loaded: @rpathrpath/zoomcml.framework/zoomcml
Referenced from: 2D13342D-5E70@rpathrpath32FD-BB48-FEEC7D1E9BA2 /private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/MobileRTC.framework/MobileRTC
Reason: tried: ‘/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/MobileRTC.framework/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/zoomcml.framework/zoomcml’ (no such file), ‘/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/zoomcml.framework/zoomcml’ (no such file), ‘/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file)
Library not loa@rpathrpathed: @rpath/zoomcml.framework/zoomcml
Referenced from: 2D13342D-5E70@rpath32FD-BB48-FEEC7D1E9BA2 /private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/MobileRTC.framework/MobileRTC
Reason: tried: ‘/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/MobileRTC.framework/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file), '/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomc
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libLogRedirect.dylib:/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/usr/lib/libViewDebuggerSupport.dylib:/System/Library/PrivateFrameworks/GPUToolsCapture.framework/GPUToolsCapture
Libra@rpathy not loaded: @rpath/zoomcml.framework/zoomcml
Referenced from: 2D13342D-5E70@rpath32FD-BB48-FEEC7D1E9BA2 /private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/MobileRTC.framework/MobileRTC
Reason: tried: ‘/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/MobileRTC.framework/Frameworks/zoomcml.framework/zoomcml’ (no such file), ‘/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file, not in dyld cache), ‘/private/preboot/Cryptexes/OS/usr/lib/swift/zoomcml.framework/zoomcml’ (no such file), '/private/var/containers/Bundle/Application/0712A7EF-2C0C-4A7F-9085-9C99F0433782/Uptivo.app/Frameworks/zoomc
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libLogRedirect.dylib:/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/usr/lib/libViewDebuggerSupport.dylib:/System/Library/PrivateFrameworks/GPUToolsCapture.framework/GPUToolsCapture
Troubleshooting Routes
The error appears to be related to missing zoomcml files, but they should not be necessary.
Adding zoomcml.xcframework to my application obviously fixes the issue, but the app becomes too large to distribute.
How can I build and run my app only with MobileRTC.xcframework and MobileRTCResources.bundle but without MobileRTCScreenShare.xcframework, zoomcml.xcframework?
I tried with both Zoom Meeting SDK for ios v6.5.5.27010 and v6.5.10.27930 and the app crashes
I tried using Zoom Meeting SDK for ios v6.2.11.20350 and the app runs properly