iphone compilation problems

I got the simulator to compile, I think with ios4.0 plus they went with the non-fragile abi. So these were the new compiler flags in dtool/pptempl/PostConfig.pp that I used just for the simulator build.

	#elif $[eq $[IOS_PLATFORM], iPhoneSimulator] 
		#define ARCH_FLAGS -arch i386 
		#define osflags -fpascal-strings -fasm-blocks -fmessage-length=0 -fobjc-abi-version=2 -fobjc-legacy-dispatch -fexceptions -fvisibility=hidden -pipe -Wno-trigraphs -O0 -Wreturn-type -Wunused-variable -DDEBUG -mmacosx-version-min=10.6
		#define DEBUGFLAGS -gdwarf-2 -DDEBUG
	#else 
		#error Inappropriate value for BUILD_IPHONE. 
	#endif 

I am not ready to send in the final version of that file yet, because I haven’t actually made an app run yet on either platform. Hopefully, I can get to that tonight.

Does anyone have an Xcode project that worked before?