The error in the title occurs every time, when I test my unity mobile application on Xcode.
if there’s anyone who is familiar with this error, would you give me some advice??
Unity version: 2019.2.9f
Xcode version: 11.5
Used Asset: Native Gallery
My device for test: iPhone SE
Websites I referred:[iOS: selecting image appears but path not complete (no file extension) #93][1]
[UnityNativeGallery][2]
[Native Gallery for Android & iOS (Open Source)][3]
Code of Native Gallery on C#
private void PickImage(int maxSize)
{
NativeGallery.Permission permission = NativeGallery.GetImageFromGallery((path) =>
{
Debug.Log("Image path: " + path);
if (path != null)
{
// Create Texture from selected image
Texture2D texture = NativeGallery.LoadImageAtPath(path, maxSize);
if (texture == null)
{
Debug.Log("Couldn't load texture from " + path);
return;
}
testImg.texture = texture;
imgPath = path;
}
}, "Select a PNG image", "image/png");
Debug.Log("Permission result: " + permission);
}
Entire log when Native gallery method is carried out.
020-06-19 13:18:53.909512+0900 Name of app[3461:1994737] [core] “Error returned from daemon: Error Domain=com.apple.accounts Code=7 “(null)””
2020-06-19 13:18:53.933617+0900 Name of app[3461:1994570] Copied source image from UIImagePickerControllerImageURL
Image path: /var/mobile/Containers/Data/Application/3C80F83D-64EE-4A05-A009-29F9F6585DAA/Library/Caches/pickedImg.png
<>c__DisplayClass7_0:b__0(String)
MediaPickCallback:Invoke(String)
NativeGalleryNamespace.NGMediaReceiveCallbackiOS:OnMediaReceived(String)
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
In order to check whether native gallery properly works or not, I use this simple layout for my device test.
[1]: iOS: selecting image appears but path not complete (no file extension) · Issue #93 · yasirkula/UnityNativeGallery · GitHub
[2]: GitHub - yasirkula/UnityNativeGallery: A native Unity plugin to interact with Gallery/Photos on Android & iOS (save and/or load images/videos)
[3]: https://forum.unity.com/threads/native-gallery-for-android-ios-open-source.519619/page-13