KtxUnity icon indicating copy to clipboard operation
KtxUnity copied to clipboard

building on Xcode failed for ios simulator

Open AhmadMansy opened this issue 3 years ago • 2 comments

I am working on a project and i use glTFast in it, which is depending on this package and draco decompression one. When i set the target as ios simulator the build on xcode is failing with this message Building for iOS Simulator, but the linked library 'ibktx_unity.a' was built for iOS. I need this build not to failed even if the plugin is not supporting the simulator. I don't know if it is possible or not to exclude this lib when targeting a simulator build but not ios device build. I know that adding a compile flag (!TARGET_OS_SIMULATOR) to the lib will help but how can i do this for a package from package manager? And is it possible that this lib to be compiled for simulator as well?

AhmadMansy avatar Apr 22 '22 12:04 AhmadMansy

@AhmadMansy Thanks for reaching out.

Afaik we'd need to compile the libs another time specifically for iOS simulator. Then I'd guess one puts those into the package (along the other iOS lib) and it works, but I never tried that.

Testing on actual hardware does work though! I know it can have longer iteration times, but at least it's not a blocker.

atteneder avatar Apr 22 '22 23:04 atteneder

thank you. and yes it would be great if the simulator is taking into consideration

AhmadMansy avatar Apr 23 '22 01:04 AhmadMansy

So, I've done the tests and the next release will contain iOS simulator binaries as well. However, I noticed that in the simulator many textures don't load properly. I assume there's a discrepancy between what Unity's API reports as supported textures vs. what the hosting macOS system actually supports. I expect some problems that won't get fixed right away.

atteneder avatar Sep 27 '22 11:09 atteneder

Fixed in 1.3.1 and 2.2.2

atteneder avatar Sep 28 '22 23:09 atteneder