Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot compile Qt with Xcode 6.0.1

I updated Xcode to 6.0.1 and found I cannot compile the Qt project in Qt creater anymore because of this:

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

error: 'TargetConditionals.h' file not found

Can anyone help me, please? How can I solve this?

Thanks!

like image 952
wking Avatar asked Sep 20 '14 06:09

wking


2 Answers

You won't be able to debug your code with the Xcode 6 debugger. You should rename Xcode 6 as Xcode6.app and then reinstall Xcode 5.1.1 as Xcode.app in your Applications folder. And then wait until Qt officially supports Xcode 6 and the 10.9.SDK.

like image 83
Dr. Daniel L. Lau Avatar answered Sep 30 '22 06:09

Dr. Daniel L. Lau


I encountered the same problem as yours and downloading MacOSX10.8.sdk from this location :

GitHub - Phracker

and copying it to

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

solved the problem !

cheers

like image 42
Greg Avatar answered Sep 30 '22 05:09

Greg