Hello.
Cesium for Unreal 2.5.0 was released on Marketplace and I installed it on Unreal Engine 5.4.1 and tried to package it for iOS.
Then I got the following error and packaging failed.
UATHelper: Packaging (IOS): ------ Building 4 action(s) started ------
UATHelper: Packaging (IOS): [1/4] sh /Users/macneko/UnrealProjects/CFUSample2 5.4/Binaries/IOS/CFUSample2
UATHelper: Packaging (IOS): ld: library not found for -l/Users/Shared/Epic Games/UE_5.4/Engine/Plugins/Marketplace/CesiumForUnreal/Source/CesiumRuntime/../ThirdParty/lib/iOS-xarm64/libktx.a
UATHelper: Packaging (IOS): clang: error: linker command failed with exit code 1 (use -v to see invocation)
UATHelper: Packaging (IOS): Total time in Parallel executor: 1.84 seconds
PackagingResults: Error: linker command failed with exit code 1 (use -v to see invocation)
UATHelper: Packaging (IOS): Total execution time: 7.11 seconds
UATHelper: Packaging (IOS): Took 7.22s to run dotnet, ExitCode=6
UATHelper: Packaging (IOS): UnrealBuildTool failed. See log for more details. (/Users/username/Library/Logs/Unreal Engine/LocalBuildLogs/UBA-CFUSample2-IOS-Development.txt)
UATHelper: Packaging (IOS): AutomationTool executed for 0h 0m 9s
UATHelper: Packaging (IOS): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (IOS): RunUAT ERROR: AutomationTool was unable to run successfully. Exited with code: 6
PackagingResults: Error: AutomationTool was unable to run successfully. Exited with code: 6
PackagingResults: Error: Unknown Error
I assume it is a plugin issue as it also occurs in the Cesium for Unreal sample project.
Can you please tell us how to solve this problem?
This appears to be a bug in our 2.5.0 release. I wrote an issue here:
Weāll get this fixed as soon as we can.
In the meantime, hereās a workaround you can try. Iām not certain this will work, but itās worth a try. In your Unreal Engine directory in Engine/Plugins/Marketplace/CesiumForUnreal/Source/ThirdParty/lib/iOS-xarm64/ktx.framework/, thereās a file named simply ktx. Copy that file to the parent directory (Engine/Plugins/Marketplace/CesiumForUnreal/Source/ThirdParty/lib/iOS-xarm64/) and rename it to libktx.a. Then try again and see if youāre able to package.
Otherwise, the only other workaround is to use the previous release (v2.4.1). However, that also means youāll need to go back to UE 5.3. If you want to use the previous release, instructions are here:
I tried the workaround you gave me.
We succeeded in packaging it as you predicted!
I will proceed this way for now until the plugin modifications are completed.
Thanks!