Hi all. I'm trying to build libNu.a to integrate into an iPhone
project, and I'm having trouble getting it to compile for the iPhone
simulator with the 3.0 SDK. It builds arm version for the device fine
(after a minor tweak to the Nukefile to make it use gcc-4.2). When I
try to build for the simulator, gcc fails when including some
framework headers. The trace ends up here:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator3.0.sdk/System/Library/Frameworks/Security.framework/
Headers/SecKey.h:257: error: expected declaration specifiers or ‘...’
before ‘SecPadding’
Here's a link to the full output and the diff of my changes to the
Nukefile:
http://gist.github.com/174144
I'm probably missing something simple like a compiler flag, but I have
no idea what it could be. You'd think that gcc would be able to
compile the Apple headers. Any help would be greatly appreciated.
Thanks!
-Nathan