Post

Replies

Boosts

Views

Activity

Reply to Missing Library Error in Mac Catalyst when distributed through Testflight
I also am getting this same issue loading the Lottie.framework at runtime from my Mac Catalyst app dyld[19098]: Library not loaded: @rpath/Lottie.framework/Versions/A/Lottie Referenced from: <47989D2F-6B41-3EE2-89CA-48B1D3D8F089> /Applications/Play 2 - Beta.app/Contents/MacOS/Play 2 - Beta Reason: , (security policy does not allow @ path expansion) [1] 19098 abort /Applications/Play\ 2\ -\ Beta.app/Contents/MacOS/Play\ 2\ -\ Beta A few notes: : Hardened Runtime Enabled w/ Disable Library Validation Sandbox Enabled Archiving with Xcode Cloud using manual signing I then distribute with a post build action to create a DMG with the exported archive provided by XC Cloud, and notarize the DMG All code sign verification looks good The Lottie.framework does exist in the <.app>/Resources/Frameworks/ folder The Lottie framework is embedded as a binary target Interesting to note that they mention the following about versions > 4.4.0 of the Lottie framework: We distribute XCFramework bundles for each release on GitHub. In Lottie 4.4.0 and later, these XCFramework bundles include a code signature. These bundles are self-signed under the name "Lottie iOS" and have the following fingerprint: When using lottie-spm, the downloaded Lottie.xframework isn't visible in the project navigator. To validate the authenticity of a lottie-spm package, you can confirm that the Package.swift file references a binary XCFramework from https://github.com/airbnb/lottie-ios/releases I assume it is okay code sign this framework again. I tried importing the framework manually and setting “Embed without Codesign” and my app won’t build. Here are the details from otool -l: otool -l /Applications/Play\ 2\ -\ Beta.app/Contents/MacOS/Play\ 2\ -\ Beta | grep -B 1 -A 2 LC_RPATH Load command 88 cmd LC_RPATH cmdsize 40 path @loader_path/../Frameworks (offset 12) Load command 89 cmd LC_RPATH cmdsize 48 path @executable_path/../Frameworks (offset 12) -- Load command 88 cmd LC_RPATH cmdsize 40 path @loader_path/../Frameworks (offset 12) Load command 89 cmd LC_RPATH cmdsize 48 path @executable_path/../Frameworks (offset 12) otool -l /Applications/Play\ 2\ -\ Beta.app/Contents/MacOS/Play\ 2\ -\ Beta | grep -B 1 -A 2 LC_ID_DYLIB LC_ID_DYLIB is returning no value, assuming that could be a problem?
Sep ’24