Skip to content

Instantly share code, notes, and snippets.

@neror
Created August 24, 2009 20:15
Show Gist options
  • Select an option

  • Save neror/174144 to your computer and use it in GitHub Desktop.

Select an option

Save neror/174144 to your computer and use it in GitHub Desktop.
diff --git a/iphone/Nukefile b/iphone/Nukefile
index 30a6ebc..dda717d 100644
--- a/iphone/Nukefile
+++ b/iphone/Nukefile
@@ -1,23 +1,23 @@
-(set platform "iPhoneOS")
+(set platform "iPhoneSimulator")
;; source files
(set @c_files (filelistWithRoot "^objc/.*\.c$" ".."))
(set @m_files (filelistWithRoot "^objc/.*\.m$" ".."))
-(set sdk_version "2.0")
+(set sdk_version "3.0")
(case platform
( "iPhoneOS"
(set PLATFORM "-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS#{sdk_version}.sdk")
(set @arch '("armv6"))
- (set @cc "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0")
+ (set @cc "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2")
(set @library_extras "platforms/iPhoneOS/libffi/*.o platforms/iPhoneOS/pcre/*.o"))
( "iPhoneSimulator"
(set PLATFORM "-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator#{sdk_version}.sdk")
(set @arch '("i386"))
- (set @cc "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0")
+ (set @cc "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2")
(set @library_extras "platforms/iPhoneSimulator/lib/libpcre.a"))
(else nil))
==========================================
neror@neror-laptop:~/Work/iphone/nu/iphone$ nuke
Using Nukefile with target default.
nuke: running in /Users/neror/Work/iphone/nu/iphone
nuke: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -g -Iinclude -I../include -DMININUSH -DDARWIN -DIPHONE -DMACOSX -std=gnu99 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk -fobjc-exceptions -arch i386 -c -o build/i386/method.o objc/method.m
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:29,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:14,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:80,
from objc/method.h:19,
from objc/method.m:19:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecKey.h:166: error: expected declaration specifiers or ‘...’ before ‘SecPadding’
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecKey.h:196: error: expected declaration specifiers or ‘...’ before ‘SecPadding’
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecKey.h:228: error: expected declaration specifiers or ‘...’ before ‘SecPadding’
/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’
nuke: terminating on command error (return code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment