atteneder / KtxUnity

Load KTX and Basis Universal textures at runtime
Apache License 2.0
215 stars 42 forks source link

Building for iOS, but the linked library 'libktx_read.a' was built for iOS Simulator. #72

Closed iamnewaplayer closed 6 months ago

iamnewaplayer commented 1 year ago

/Volumes/ShareDisk//IOS/Unity-iPhone.xcodeproj Building for iOS, but the linked library 'libktx_read.a' was built for iOS Simulator. what can i do for this

atteneder commented 1 year ago

Hi and thanks for reporting,

I've added iOS simulator binaries in 1.3.0 and 2.2.1 respectively, having tested that it works both in simulator and on device.

You seem to have a conflict of the libraries now. Can you share which versions of KtxUnity, Unity and Xcode your are using?

atteneder commented 1 year ago

How did you install KtxUnity?

If you cloned it from GitHub (or downloaded a ZIP), make sure the binaries are properly fetched (since they are GIT LFS files).

iamnewaplayer commented 1 year ago

i try copy *.a to Simulator dir it is ok

Elyptos commented 1 year ago

Hello everyone.

I am also experiencing the same issue on my end.

XCode version: 13.4.1 Unity version: 2021.3.11 KtxUnity version: 2.2.2

KtxUnity was installed using Unity´s package manager and openupm.

I can confirm that Unity exports all binaries (simulator and device) during xcode generation, but Xcode tries to build the project with the simulator binaries instead of the device binaries.

Deleting the simulator binaries inside the xcode project solved the problem for me. I do not know if there is a way to tell xcode which binaries to build or if I am missing a setup step.

atteneder commented 1 year ago

Hello everyone.

I am also experiencing the same issue on my end.

XCode version: 13.4.1 Unity version: 2021.3.11 KtxUnity version: 2.2.2

KtxUnity was installed using Unity´s package manager and openupm.

I can confirm that Unity exports all binaries (simulator and device) during xcode generation, but Xcode tries to build the project with the simulator binaries instead of the device binaries.

Deleting the simulator binaries inside the xcode project solved the problem for me. I do not know if there is a way to tell xcode which binaries to build or if I am missing a setup step.

@Elyptos Thanks for the feedback.

Any chance you could try Xcode 14.1 ? I'm asking, since I don't have a problem and we should find out why.

Thanks

atteneder commented 7 months ago

I finally know a proper solution that was applied in another package. The fix will come in an update soon™.

atteneder commented 6 months ago

Fixed in KTX for Unity 3.3.0! Please transition to that package, as it is the official successor.

Full list of changes

Added

Changed

Fixed