Crash when embed Unity with ARDK inside IOS Native App

Include the following details (edit as applicable):

  • Issue category: Semantic Segmentation / Multiplayer / Real-time Mapping-Depth / ARDK Documentation / Unity Example Package / Sample App aka ‘AR Voyage’ / ARDK Virtual Studio Tools / Developer Tools / Networking
  • Device type & OS version: Android / iOS / Other Ex. iPhone 11 on iOS 13
  • Host machine & OS version: Mac / Windows / Linux / Other Ex. Mac on Big Sur x.x
  • Issue Environment : Unity Remote / Unity Mock / On Device / Dev Portal
  • Xcode version:
  • ARDK version:
  • Unity version:

Description of the issue:

My application crashes when integrating Unity(Ardk inside),
I am getting a file missing error from ardk_client_platform . library
Please help me, I appreciate the support

" 2022-04-15 19:07:19.080985+0700 SwiftyUnity[33151:1276226] Error loading /var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/ardk_client_platform.framework/ardk_client_platform

Referenced from: /private/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/UnityFramework.framework/UnityFramework

Reason: tried: ‘/private/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/ardk_client_platform.framework/ardk_client_platform’ (no such file), ‘/private/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/ardk_client_platform.framework/ardk_client_platform’ (no such file), ‘/usr/lib/swift/ardk_client_platform.framework/ardk_client_platform’ (no such file), ‘/private/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/ardk_client_platform.framework/ardk_client_platform’ (no such file), ‘/System/Library/Frameworks/ardk_client_platform.framework/ardk_client_platform’ (no such file)

2022-04-15 19:07:19.084127+0700 SwiftyUnity[33151:1276226] Error loading /var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/ardk_client_platform.framework/ardk_client_platform

Referenced from: /private/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/UnityFramework.framework/UnityFramework

Reason: tried: ‘/private/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/ardk_client_platform.framework/ardk_client_platform’ (no such file), ‘/private/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/ardk_client_platform.framework/ardk_client_platform’ (no such file), ‘/usr/lib/swift/ardk_client_platform.framework/ardk_client_platform’ (no such file), ‘/private/var/containers/Bundle/Application/4E1B03F1-65D6-44C6-B836-28550AA0873C/SwiftyUnity.app/Frameworks/ardk_client_platform.framework/ardk_client_platform’ (no such file), ‘/System/Library/Frameworks/ardk_client_platform.framework/ardk_client_platform’ (no such file)

ERROR: Was not able to load Unity

"

Hello Phạm,

To better troubleshoot the issues you’re having, could you please provide us with the following information?

  • What is your host machine and operating system?
  • What is your mobile device type and operating system?
  • What version of Unity are you using?
  • What version of ARDK are you using?