Skip to content

Commit 1cb266b

Browse files
authored
Update ios.toolchain.cmake
Added better hint about missing CMAKE_OSX_SYSROOT in the cases where xcode is missing or if the command-line tools were installed after Xcode had been installed, since this is not supported at the moment.
1 parent 30b5a65 commit 1cb266b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios.toolchain.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ if (NOT CMAKE_OSX_SYSROOT)
169169
message(STATUS "Using SDK: ${CMAKE_OSX_SYSROOT} for platform: ${IOS_PLATFORM}")
170170
endif()
171171
if (NOT EXISTS ${CMAKE_OSX_SYSROOT})
172+
message(SEND_ERROR "Please make sure that Xcode is installed and that the toolchain"
173+
"is pointing to the correct path. Please run:"
174+
"sudo xcode-select -s /Applications/Xcode.app/Contents/Developer"
175+
"and see if that fixes the problem for you.")
172176
message(FATAL_ERROR "Invalid CMAKE_OSX_SYSROOT: ${CMAKE_OSX_SYSROOT} "
173177
"does not exist.")
174178
endif()

0 commit comments

Comments
 (0)