Unable to compile Qt with Xcode 6.0.1

I upgraded Xcode to version 6.0.1 and found that I could no longer compile the Qt project in the Qt creator because of this:

warning: there is no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk'

Error: TargetConditionals.h file not found

Can someone help me please? How can i solve this?

Thanks!

+5
source share
5 answers

I ran into the same problem as yours and downloaded MacOSX10.8.sdk from this place:

GitHub - Phracker

and copying it to

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S DKs

solved a problem!

amuses

+3
source

You cannot debug your code using the Xcode 6 debugger. You must rename Xcode 6 as Xcode6.app, and then reinstall Xcode 5.1.1 as Xcode.app in the Applications folder. And then wait for Qt to officially support Xcode 6 and 10.9.SDK.

+4
source

I used the following with Qt5.3 to let QtCreator work with MacOSX10.9 and Xcode 6.0.1.
Add the following line to qt-install-dir / 5.3 / clang_64 / mkspecs / qdevice.pri:
!host_build:QMAKE_MAC_SDK = macosx10.9

To enable iOS build, add the following line to qt-install-dir / 5.3 / ios / mkspecs / qdevice.pri:
!host_build:QMAKE_MAC_SDK = iphoneos8.0

Update: To use Xcode 6.1 to build iOS, the line must be:
!host_build:QMAKE_MAC_SDK = iphoneos8.1

+3
source

I had the same problem, but I did the following and it worked:

 sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk 

and for the simulator:

 sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk 
+1
source

Method 1

This error appears every time you upgrade Xcode

so you can delete the cache file in qt before building or just delete when you get an error

 rm {your target build folder}/.qmake.stash 

or

 rm {your project folder}/.qmake.stash 

if you do not know where to find .qmake.stash , try

 find ~ -name .qmake.stash 

Method 2

Not recommended because you may get a build error when using Xcdoe APP

iphoneOS

 cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ sudo ln -s iPhoneOS.sdk iPhoneOS{version}.sdk 

iPhoneSimulator

 cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ sudo ln -s iPhoneSimulator.sdk iPhoneSimulator{version}.sdk 
0
source

Source: https://habr.com/ru/post/1203025/


All Articles