Qt Creator : Failed build after update to xcode 9 GM
-
wrote on 13 Sept 2017, 06:55 last edited by
Hi.
Today, I installed xcode 9 GM seed. But Qt project build failed.
First error message... not found Mac sdk path
So, I modify a code of 'Qt5.9.1/5.9.1/clang_64/mkspecs/features/mac/sdk.prf file.
QMAKE_MAC_SDK_PATH = $$ system ( "xcodebuild -version -sdk | grep '^ Path * MacOSX'| cut -d ''-f 2")
After the change, the following error appears when building.
warning: no such sysroot directory: '-mmacosx-version-min=10.10' [-Wmissing-sysroot] /Users/kakao/Qt5.9.1/5.9.1/clang_64/lib/QtCore.framework/Headers/qsystemdetection.h:95: error: 'TargetConditionals.h' file not found include <TargetConditionals.h> ^~~~~~~~~~~~~~~~~~~~~~
.... What should i am? ㅠ_ㅠ
-
wrote on 13 Sept 2017, 07:24 last edited by patrik08
Hi i am sure if you install the MacOSX-SDKs
from your version the problem is solved
https://github.com/phracker/MacOSX-SDKs/releasesCarbonHeaders TargetConditionals.h
-
Hi i am sure if you install the MacOSX-SDKs
from your version the problem is solved
https://github.com/phracker/MacOSX-SDKs/releasesCarbonHeaders TargetConditionals.h
wrote on 13 Sept 2017, 07:54 last edited byThank you for kind your answer. : )
I downloaded MacOSX10.12.sdk.
unzip file...
but how to install the sdk? ㅠ_ㅠIt's installed means that the 10.12.sdk folder copy to '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs' path?
How to install the sdk? ...
-
wrote on 13 Sept 2017, 12:19 last edited by
macOS Sierra?
is the Sierra not to slow? i wait to update wen become more stable point...
sdk is only copy at the right place inside Xcode or like https://stackoverflow.com/questions/34876144/where-to-download-an-slightly-older-ios-sdk -
macOS Sierra?
is the Sierra not to slow? i wait to update wen become more stable point...
sdk is only copy at the right place inside Xcode or like https://stackoverflow.com/questions/34876144/where-to-download-an-slightly-older-ios-sdk -
wrote on 14 Oct 2017, 21:14 last edited by
example of code you must insert in your .pro, replace 10.13 by whatever version you want...
macx { QMAKE_MAC_SDK = macosx10.13 QMAKE_MAC_SDK_PATH = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" }