Cmake configuration build fails on test big endian

I used iOS 13 as the build target for the Xcode project and got this

=== BUILD TARGET cmTC_ad949 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===

Check dependencies
target specifies product type ‘com.apple.product-type.tool’, but there’s no such product type for the ‘iphoneos’ platform
warning: The armv7 architecture is deprecated for your deployment target (iOS 13.0). You should update your ARCHS build setting to remove the armv7 architecture.

** BUILD FAILED **

What am I doing wrong yet? Thanks