iPhone Simulator Looks Confusing
December 24th, 2008
A week ago I found some annoying thing about iPhone OS and iPhone simulator. As a result you cannot be really sure that application that works great on simulator whould even be compiled for device.
Unpretty thing that I found is that NSCalendarDate and NSURLDownload classes are not supported on iPhone OS. But they are do supported on simulator! Code is not compiled in device mode with error that class is unknown. Seems to be a simulator bug :(
Please, be careful, and do not use NSCalendarDate and NSURLDownload. Also test your application on a device regularly. If you do not have a device, just build your app (Cmd-B) in device mode, to be sure it is successfully compiled.


I don’t think it’s OK to allow serious differences between emulator and real device :/ It looks like a serious bug!!! I hope Apple will fix it o_O
What did you mean saying it won’t even compile? Are there 2 profiles while compiling? One for simulator and one for real device? Sorry for dumb questions as you know I do not develop iPhone apps but still looks like you have pretty weird issues that should fixed by Apple…
Yep - there are two different profiles:
one for simulator - it is compiled for x386 processors
second for ARM processors - these are used in iPhones.
Both binaries are not compatible.
When trying to compile for device, compiler produces error like ‘NSCalendarDate class is unknown’ :\
Also seems like this bug is known by Apple, but it is not fixed in latest SDK yet.