yasirkula / UnityNativeGallery

A native Unity plugin to interact with Gallery/Photos on Android & iOS (save and/or load images/videos)
MIT License
1.4k stars 199 forks source link

iOS automated setup on 2019 LTS not working #197

Closed TCemAlpaydin closed 3 years ago

TCemAlpaydin commented 3 years ago

We have an android version and an ios version of the app. Unity exports are mainly added to native application. iOS builds do not save intended images to gallery whilst not reporting any errors in the meantime, while android does everything correctly. And the ios manual setup returns "undefined symbol" errors. We were not able to pinpoint the exact issue here, as unity dev is separate from ios native dev, but at least the automated setup for ios doesn't seem to work. (as there are no steps for me to do with the given specs) ios_nativegallery_xcode_error

yasirkula commented 3 years ago

So, are both manual and automated setups not working?

TCemAlpaydin commented 3 years ago

Yes, I do expect it having something to do with us merging parts of the project inside xcode after unity build, since there are no other reports of this, but ultimately we need the save to gallery function to work and it just doesn't do anything after the function.

yasirkula commented 3 years ago

After building your project using automated setup, what is the value of UnityFramework Target's Other Linker Flags?

PabloBuitrago commented 3 years ago

I get the same error:

image image

I have been working without any problem, my version of Unity (2019.4.8f1) has not changed.

The only thing that changes is the new version in iOS 14.6 an update of Xcode.

PabloBuitrago commented 3 years ago

image

This is the value in Other Linker Flags

TCemAlpaydin commented 3 years ago

I am checking on the UnityFramework target thing, ios dev is not in today.

yasirkula commented 3 years ago

image

This is the value in Other Linker Flags

Thanks! Can you post Other Linker Flags of other TARGETS, too?

PabloBuitrago commented 3 years ago

I don't see any. Only in UnityFramework.

image

yasirkula commented 3 years ago

Can you search all scripts in your Unity project for the term SetBuildProperty and report all usages of it to me? You can search the term in the Entire Solution (Look in) via CTRL+Shift+F on Visual Studio. Afterwards, can you check if the issue can be reproduced on a new project?

PabloBuitrago commented 3 years ago

The only SetBuildProperty is the ENABLE_BITCODE to NO, since an external library does not work with ENABLE_BITCODE.

I've been testing a new project:

All builds have worked correctly with a new project. I am not very clear that the error may be giving.

PabloBuitrago commented 3 years ago

I update the Asset in Unity Asset Store and now is working fine

yasirkula commented 3 years ago

It's good to hear. I'm guessing you weren't using the latest GitHub version either since GitHub and Asset Store versions are supposed to be the same.

@TCemAlpaydin Can you delete the plugin's folder completely and reimport the latest version?

TCemAlpaydin commented 3 years ago

Updated, thanks for the immediate response by the way. Will see if it works today.

PabloBuitrago commented 3 years ago

Many Thanks, for the attention and for the help.

It's funny, yesterday I deleted the version I had and reinstalled the version from the Unity Asset Store, and it didn't work well. I have had problems with some assets that did not download the latest version (maybe that is the problem).