videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
107 stars 14 forks source link

VideoKit iOS crash on startup (not in dyld cache) #152

Closed Apidcloud closed 2 weeks ago

Apidcloud commented 2 weeks ago

I believe this to be the same issue as https://github.com/videokit-ai/videokit/issues/81

Shouldn't it supposedly be fixed since June?

For reference, we are using Unity 2021.3.42f1 (as you told us sometime ago it should work).

Here's our logs:

(lldb) dyld[5899]: Library not loaded: @rpath/Function.framework/Function
  Referenced from: <BE3154C3-2183-3509-B048-90BCE41B0355> /private/var/containers/Bundle/Application/3149D381-666D-4257-81D9-207B1A40F09B/Runner.app/Frameworks/UnityFramework.framework/UnityFramework
  Reason: tried: '/private/var/containers/Bundle/Application/3149D381-666D-4257-81D9-207B1A40F09B/Runner.app/Frameworks/Function.framework/Function' (no such file), '/usr/lib/swift/Function.framework/Function' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Function.framework/Function' (no such file), '/usr/lib/swift/Function.framework/Function' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Function.framework/Function' (no such file), '/private/var/containers/Bundle/Application/3149D381-666D-4257-81D9-207B1A40F09B/Runner.app/Frameworks/Function.framework/Function' (no such file), '/private/var/containers/Bundle/Application/3149D381-666D-4257-81D9-207B1A40F09B/Runner.app/Frameworks/Function.framework/Function' (no such file), '/private/var/containers/Bundle/Application/3149D381-666D-4257-81D9-207B1A40F09B/Runner.app/Frameworks/Function.framework/Function' (no such file), '/usr/lib/swift/Function.framework/Function' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Function.framework/Function' (no such file), '/usr/lib/swift/Function.framework/Function' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/Function.framework/Function' (no such file), '/private/var/containers/Bundle/Application/3149D381-666D-4257-81D9-207B1A40F09B/Runner.app/Frameworks/Function.framework/Function' (no such file), '/private/var/containers/Bundle/Application/3149D381-666D-4257-81D9-207B1A40F09B/Runner.app/Frameworks/Function.framework/Function' (no such file), '/private/var/containers/Bundle/Application/3149D381-666D-4257-81D9-207B1A40F09B/Runner.app/Frameworks/Function.framework/Function' (no such file), '/System/Library/Frameworks/Function.framework/Function' (no such file, not in dyld cache)
olokobayusuf commented 2 weeks ago

@Apidcloud what version of VideoKit are you using? The fix should be simple: in Xcode, click on the 'General' tab of your target and make sure that Function.framework is set to Embed & Sign:

Screenshot 2024-11-06 at 12 02 18
Apidcloud commented 2 weeks ago

The latest 0.0.21 + ai fnx 0.0.26. I will let you know tomorrow when we test again

Apidcloud commented 2 weeks ago

Ah, they were indeed already set to embed & sign, but we have an extra target where we had to manually add (the + button under Frameworks, Libraries, and Embedded Content) both Function.framework and VideoKit.framework and it worked.