Reputation: 129
How can I can the 10.6 version of MacOSX SDK with the latest version of the Xcode (version 4.6)?
Upvotes: 5
Views: 5566
Reputation: 3154
You would have to install an older Xcode, take MacOSX10.6.sdk
out of the SDK folder at the location it's installed (default: /Developer/Platforms/MacOSX.platform/Developer/SDKs
) and copy it to the SDK folder in your latest Xcode.app (default: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
).
As for fixing your error, try importing/including <sys/ucontext.h>
instead of Apple's ucontext.h
.
Upvotes: 5