# running CMAKE\_TRY\_COMPILE shows error armv7 is deprecated

**URL:** https://discourse.cmake.org/t/running-cmake-try-compile-shows-error-armv7-is-deprecated/6746
**Category:** Usage
**Created:** [October 28, 2022, 1:47am UTC](https://discourse.cmake.org/t/running-cmake-try-compile-shows-error-armv7-is-deprecated/6746 "2022-10-28T01:47:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sshsu](https://discourse.cmake.org/user_avatar/discourse.cmake.org/sshsu/32/2875_2.png) [@sshsu](https://discourse.cmake.org/u/sshsu)
#### Post date: [October 28, 2022, 1:47am UTC](https://discourse.cmake.org/t/running-cmake-try-compile-shows-error-armv7-is-deprecated/6746/1 "2022-10-28T01:47:10Z")

</div>

I am trying to use cmake to generate xcode project but fail and get error as below, it is said that the cmake project CMAKE\_TRY\_COMPILE tries to use armv7 architecture but armv7 is deprecated since xcode14 doesn’t support armv7, how can I disable CMAKE\_TRY\_COMPILE compile armv7 architecture?  
ios.toolchain.cmake of mine: [GitHub - gerstrong/ios-cmake: A CMake toolchain file for iOS, watchOS and tvOS C/C++/Obj-C++ development](https://github.com/gerstrong/ios-cmake.git)
