o3de-atom-sampleviewer
o3de-atom-sampleviewer copied to clipboard
[iOS] Building AtomSampleViewer.GameLauncher from the Xcode solution fails
Describe the bug Building AtomSampleViewer.GameLauncher using Xcode fails displaying the following warnings and errors:
Object file (/Users/macpro13/.o3de/3rdParty/packages/lz4-1.9.3-vcpkg-rev4-ios/lz4/lz4/lib/liblz4.a(lz4.c.o)) was built for newer iOS version (14.5) than being linked (14.0)
Object file (/Users/macpro13/.o3de/3rdParty/packages/lz4-1.9.3-vcpkg-rev4-ios/lz4/lz4/lib/liblz4.a(lz4frame.c.o)) was built for newer iOS version (14.5) than being linked (14.0)
Object file (/Users/macpro13/.o3de/3rdParty/packages/lz4-1.9.3-vcpkg-rev4-ios/lz4/lz4/lib/liblz4.a(lz4hc.c.o)) was built for newer iOS version (14.5) than being linked (14.0)
Object file (/Users/macpro13/.o3de/3rdParty/packages/lz4-1.9.3-vcpkg-rev4-ios/lz4/lz4/lib/liblz4.a(xxhash.c.o)) was built for newer iOS version (14.5) than being linked (14.0)
Undefined symbol symbol: _png_do_expand_palette_rgba8_neon
Undefined symbol symbol: _png_do_expand_palette_rgb8_neon
Undefined symbol symbol: _png_riffle_palette_neon
Undefined symbol symbol: _png_init_filter_functions_neon
Please note that changing the iOS version to the 14.5 mentioned by the warnings (or any other version) results in another error being thrown:
overriding '-miphoneos-version-min=14.0' option with '-target arm64-apple-ios14.5'
Please refer to the attached screenshots for more information.
Prerequisites
- AtomSampleViewer project has been built for MacOS using source engine.
- All iOS assets have been processed.
Steps to reproduce
- Run the iOS project generation command from the project root directory:
cmake -B build/ios -S . -G Xcode -DCMAKE_TOOLCHAIN_FILE=<path_to_source_engine>/cmake/Platform/ iOS/Toolchain_ios.cmake -DLY_MONOLITHIC_GAME=1
- Open the XCode project at build/ios/<Project_Name>.xcodeproj.
- Set the build configuration to Profile.
- Change the GPU Frame Capture to disabled and uncheck the Metal API Validation.
- Build the AtomSampleViewer.GameLauncher.
Expected behavior Build is successful and the GameLauncher is deployed to a device.
Actual behavior Build fails.
Screenshots/Video
14.0 iOS version (default):
14.5 iOS version (changed):
Found in Branch ASV: Stabilization/2205(bcaac3e) O3DE: Stabilization/2205(968ce59)
Desktop/Device
Device: iPad Pro 11-inch (3rd Generation)
- OS: iPadOS
- Version: 15.3.1
- CPU: Apple M1 Octa-core
- GPU: Apple GPU (8-core graphics)
- Memory: 8GB
Device: MacBook Pro
- OS: macOS
- Version: Big Sur 11.3.1
- CPU: Intel Core i5 2.0GHz Quad-Core
- GPU: Intel Iris Plus Graphics 1536 MB
- Memory: 16GB