swiftui and xcode 14A309 app crashes on start while using frameworks

Viewed 31

Hello I have my code in swift and i am using an iPhone SE 3rd generation with ios 16. in my project i have custom frameworks which when I run the app on an emulator it just works fine but when I launch on the device I get the following error logs

dyld[868]: Library not loaded: @rpath/card_detection/card_detection.framework/card_detection
  Referenced from: <750520CA-4406-3E9F-B4A7-11C85D07D712> /private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/yesid
  Reason: tried: '/private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/Frameworks/card_detection/card_detection.framework/card_detection' (errno=2), '/private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/Frameworks/card_detection/card_detection.framework/card_detection' (errno=2), '/private/preboot/Cryptexes/OS@rpath/card_detection/card_detection.framework/card_detection' (errno=2), '/private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/Frameworks/card_detection/card_detection.framework/card_detection' (errno=2), '/private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/Frameworks/card_detection/card_detection.framework/card_detection' (errno=2), '/System/Library/Frameworks/card_detection.framework/card_detection' (errno=2, not in dyld cache)
Library not loaded: @rpath/card_detection/card_detection.framework/card_detection
  Referenced from: <750520CA-4406-3E9F-B4A7-11C85D07D712> /private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/yesid
  Reason: tried: '/private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/Frameworks/card_detection/card_detection.framework/card_detection' (errno=2), '/private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/Frameworks/card_detection/card_detection.framework/card_detection' (errno=2), '/private/preboot/Cryptexes/OS@rpath/card_detection/card_detection.framework/card_detection' (errno=2), '/private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/Frameworks/card_detection/card_detection.framework/card_detection' (errno=2), '/private/var/containers/Bundle/Application/B0D49AD6-8320-4D21-B9BB-CCDD56E5B3F3/yesid.app/Frameworks/card_detection/card_detection.framework/card_detection' (
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
(lldb) 

if I disable the frameworks the app launches on the device. how can I fix this issue?

I have tried everything on the internet but it does not work on a physical device. thought on Xcode when i link it shows the card_detection.framework is avaiable

0 Answers
Related