-
-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App with MediaPipeUnity instantly crashes on startup on iOS (Library not loaded) #880
Comments
Full logs:
|
Realised that the plugin needs to be rebuilt for iOS because the package name matters for iOS building unlike Android... Will be trying that first |
I rebuilt everything and am still getting the same errors... I'll leave this issue open for now while I continue investigating. |
It seems that As a workaround, please try checking Lines 77 to 80 in 31de77b
See also #602 (comment). |
@homuler In the Installation guide when building for iOS there's this step: (For iOS) Open mediapipe_api/objc/BUILD and modify bundle_id. What is that bundle_id supposed to represent? I changed it to be the exact same as my main app but I'm getting this error now in XCode when trying to build to device:
Am I supposed to just have a unique bundle id just for the mediapipe framework embedded within my app? |
Glad to say that after following these instructions and using the pre-built plugins provided in the unity package I'm now successfully running my app on iOS. Thanks for the help |
Plugin Version or Commit ID
v0.11.0
Unity Version
2021.3.16f
Your Host OS
Windows 10
Target Platform
iOS
Description
I'm using the pre-built libraries provided in the unitypackage file. When building for iOS, the app instantly crashes on startup with errors like "Library not Loaded" and "(errno=2) Not in dyld cache". Unfortunately I don't have access to the error logs currently but I'll edit this and paste them in later.
I've already ensured that the plugin file is in the correct folder (Packages\com.github.homuler.mediapipe\Runtime\Plugins\iOS\MediaPipeUnity.framework). It even shows up in XCode as one of the frameworks. I tried forcing it to be included by changing it from "Do not Embed" to "Embed & Sign" but still to no avail. I feel like I must be missing some simple step but I can't figure out what I'm doing wrong.
The app works perfectly fine on Android.
Thanks @homuler for this plugin regardless, it's been a lifesaver.
Code to Reproduce the issue
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: