Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iphoneos is not an iOS SDK #52

Closed
syq7970 opened this issue Jun 7, 2019 · 7 comments
Closed

iphoneos is not an iOS SDK #52

syq7970 opened this issue Jun 7, 2019 · 7 comments

Comments

@syq7970
Copy link

syq7970 commented Jun 7, 2019

Building example-lib get an error:

CMake Error at /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/Platform/iOS-Initialize.cmake:4 (message):
  iphoneos is not an iOS SDK
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:21 (include)
  CMakeLists.txt:2 (project)

use cmake 3.15.rc not working.
can some one help me?

@syq7970
Copy link
Author

syq7970 commented Jun 7, 2019

Resolved!
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

@syq7970 syq7970 closed this as completed Jun 7, 2019
@keyurdoshi18
Copy link

Thanks a lot!!

@Vishnu0306
Copy link

Vishnu0306 commented Aug 19, 2022

Hi Team,

Even though i have been facing same issue

CMake Error at /usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/Platform/iOS-Initialize.cmake:4 (message):
is not an iOS SDK
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:21 (include)
CMakeLists.txt:3 (project)

cmake version 3.23.2

@PlinChen
Copy link

#52 (comment)
I met this too. It seems _CMAKE_OSX_SYSROOT_PATH was set to "" somewhere, but I couldn't find the exact place.

@PlinChen
Copy link

Hi Team,

Even though i have been facing same issue

CMake Error at /usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/Platform/iOS-Initialize.cmake:4 (message): is not an iOS SDK Call Stack (most recent call first): /usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:21 (include) CMakeLists.txt:3 (project)

cmake version 3.23.2

I got it. Upgrading cmake to the latest version works for me.

  1. upgrade via brew install cmake or brew reinstall cmake
  2. remove build directory manually and rebuild again, it would work.

@Vishnu0306
Copy link

Thank you so much @PlinChen

It is resolved.

@kcoul
Copy link

kcoul commented May 30, 2023

This may also occur due to cached CMake files if you are already on latest cmake version via homebrew. In that case just follow syq7970's advice to invoke xcode-select, and then jump to step 2 provided by PlinChen, and then build again. Wiping the build directory forces CMake to not use cached state to fail the build config step prematurely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants