Comments (10)
So it seems this error may also be caused by not having Xcode installed alltogether or if you have installed the command-line tools AFTER you installed Xcode. Please try to run the command sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
and see if that fixes the problem. I will patch the toolchain to be more specific and also to hint about possible solutions to the problem.
from ios-cmake.
Hi! This error often occurrs when upgrading Xcode or the iOS toolchain to a newer version. This is due to the fact that the CMAKE_OSX_SYSROOT is cached in the build-files generated by cmake. I'll have a look at it and see if i can come up with a solution. The easiest solution for now is to clean the project and rebuild it again.
from ios-cmake.
I met this problem, too.
from ios-cmake.
solved it ?? I had same problem too
from ios-cmake.
Thank you for your reply。
i used 'make clean' to clean the project,the same error occured.
Is there any other way?
the project Can't be opened with Xcode and I cloned it from the Internet。
from ios-cmake.
i also has this problem, seems like a cmake upgrade issues, only build ios platform goes this error。but the logs something different like @wanJunGe post . here is my build logs. @leetal
-- Building with Xcode version: 9.4
-- Configuring iOS build for platform: SIMULATOR64, architecture(s): x86_64
-- Using SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk for platform: SIMULATOR64
-- Using C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Using CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Building for minimum iOS version: 8.0 (SDK version: 11.4)
-- Version flags set to: -mios-simulator-version-min=8.0
-- Disabling bitcode support.
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
See also "/Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/CMakeOutput.log".
====================== the verbose logs will be
......
/Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/3.12.0/CMakeSystem.cmake(13): set(CMAKE_CROSSCOMPILING TRUE )
Called from: [2] /Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/3.12.0/CMakeSystem.cmake
[1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
/Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/3.12.0/CMakeSystem.cmake(15): set(CMAKE_SYSTEM_LOADED 1 )
Called from: [2] /Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/3.12.0/CMakeSystem.cmake
[1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
/usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake(5): find_program(CMAKE_MAKE_PROGRAM NAMES ninja-build ninja DOC Program used to build from build.ninja files. )
Called from: [2] /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake
[1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
/usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake(8): mark_as_advanced(CMAKE_MAKE_PROGRAM )
Called from: [2] /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake
[1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
Called from: [1] /Users/WangJ/git/kp2pserver/CMakeLists.txt
-- Configuring incomplete, errors occurred!
See also "/Users/WangJ/git/kp2pserver/build/ios/iphonesimulator/CMakeFiles/CMakeOutput.log".
from ios-cmake.
i add the CMAKE_FIND_ROOT_PATH_BOTH in the find NinjaFindMake.cmake works
eg: /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/CMakeNinjaFindMake.cmake
find_program(CMAKE_MAKE_PROGRAM
NAMES ninja-build ninja
CMAKE_FIND_ROOT_PATH_BOTH
DOC "Program used to build from build.ninja files.")
mark_as_advanced(CMAKE_MAKE_PROGRAM)
from ios-cmake.
This has been fixed in version 2.1.0. Closing the issue 🗡
from ios-cmake.
Hi @leetal ,
I am having a similar issue:
-- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain!
-- Building with Xcode version: 10.2.1
CMake Deprecation Warning at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:149 (message):
IOS_PLATFORM argument is DEPRECATED. Consider using the new PLATFORM
argument instead.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)
CMake Deprecation Warning at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:154 (message):
IOS_DEPLOYMENT_TARGET argument is DEPRECATED. Consider using the new
DEPLOYMENT_TARGET argument instead.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)
-- Targeting minimum SDK version 10.0. Dropping 32-bit support.
-- Configuring iphoneos build for platform: OS64, architecture(s): arm64
-- Using SDK: for platform: OS64 when checking compatibility
-- Enabling bitcode support by default. ENABLE_BITCODE not provided!
-- Enabling ARC support by default. ENABLE_ARC not provided!
-- Hiding symbols visibility by default. ENABLE_VISIBILITY not provided!
CMake Error at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:385 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)
CMake Error at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:386 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)
CMake Error at /Users/prowerdev/Development/Alexa/cross-compile/iOS/ios-cmake/ios.toolchain.cmake:389 (message):
Invalid CMAKE_DEVELOPER_ROOT: does not exist.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeDetermineSystem.cmake:90 (include)
CMakeLists.txt:10 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
How can I resolve it? any guidance will be helpful.
Regards,
from ios-cmake.
CMake Error at CMakeLists.txt:131 (setup_cocos_app_config):
Unknown CMake command "setup_cocos_app_config".
-- Configuring incomplete, errors occurred!
See also "/Users/govindsjrmac/Documents/Workspace/Toddler/Abc123Kids_Android/ios-build/CMakeFiles/CMakeOutput.log".
I'm getting this error need help to solve this.
from ios-cmake.
Related Issues (20)
- [bug] Should set ENABLE_STRICT_TRY_COMPILE TRUE by default HOT 5
- [bug] The platform OS64COMBINED generate Xcode project only for iOS HOT 1
- Feature: Add Support for Universal macOS builds (Apple Silicon + Intel) HOT 2
- [bug] build fail for SIMULATOR64 with xcode 14 HOT 2
- [question] Issue with APPLE_TARGET_TRIPLE (aarch64-apple-ios/arm64-apple-ios) HOT 5
- how to omit -G Xcode to use Makefile or use -G Ninjau HOT 2
- Honor CMAKE_FIND_FRAMEWORK if passed via command line
- [bug] Support for SIMULATORARM64_TVOS only HOT 2
- [bug] Support for OS only for armv7 HOT 2
- [bug] MacCatalyst x86_64 is building with macOS flags and not macabi HOT 5
- Add support for visionOS HOT 11
- [bug] Intermediate binaries compiled during cmake build are not signed when using ios.toolchain.cmake HOT 3
- command not found: cmake HOT 2
- how to show the duplicate symbols HOT 1
- Copy-if-different error while trying to build brainflow libraries using OS64COMBINED HOT 1
- ARM64 support for WATCHOS simulator is missing. HOT 2
- [bug] CMAKE_OSX_DEPLOYMENT_TARGET not CACHE HOT 2
- what's the different about release version and debug version? HOT 1
- the compiled framework contains only arm64
- [bug] building for iOS, but linking in object file built for iOS Simulator HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-cmake.