Linked by Thom Holwerda on Thu 8th Apr 2010 22:38 UTC
Apple John Gruber has found out that cross-compilers are no longer allowed in iPhone OS 4.0. "My reading of this new language is that cross-compilers, such as the Flash-to-iPhone compiler in Adobe's upcoming Flash Professional CS5 release, are prohibited. This also bans apps compiled using MonoTouch - a tool that compiles C# and .NET apps to the iPhone. It's unclear what this means for tools like Titanium and PhoneGap, which let developers write JavaScript code that runs in WebKit inside a native iPhone app wrapper. They might be OK."
Thread beginning with comment 418348
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Fun
by whartung on Sat 10th Apr 2010 15:59 UTC in reply to "Fun"
Member since:

It should not affect people who build C/C++ and Objective-C based APIs. Same routines and target multiple platforms (mobile to desktop OSes). Unless Apple decides to ban C/C++ functions then those people are good. The routines call Apple's Native routines in Objective-C and are compiled with X-Code (api layers).

That's specifically what they don't want. The entire point of this clause is to eliminate eliminate "cross platform" code from running on the iPhone. The only code that can legitimately port to the iPhone is Mac OS code, and perhaps GNUStep code.

They don't want QT, or VC++, or anything else running on the iPhone. They don't want people write to compatibility layers. They want folks writing to the iPhone SDK. They don't want someone writing "new XYZButton" which then calls the appropriate "new iPhoneButton". If you want a new iPhone button, subclass iPhoneButton or whatever.

If your code is not targeting the iPhone as its primary UI library and toolkit, i.e. it's targeting something else, some other system, or some shim x-platform library, then it's disallowed.

Reply Parent Score: 2

RE[2]: Fun
by mutantsushi on Sat 10th Apr 2010 18:12 in reply to "RE: Fun"
mutantsushi Member since:

Excepting that the new policy kind of does a shitty job of barring QT, as long as you write with C/C++/Javascript.

Once again, people are making the mistake of equating different languages with different APIs and translating to fit Cocoa. Look up MonoTouch. Look up Wax. You can target Cocoa and only Cocoa just fine, with the exact same degree of native platform awareness as Obj-C, using other languages. What is the problem if a developer wants to use libraries of pre-made extensions onto Cocoa?

I am not waiting for Apple to be nice though. I am waiting for them to get a letter from EU competition commissioner or US anti-trust agency.

Reply Parent Score: 1

RE[3]: Fun
by JAlexoid on Mon 12th Apr 2010 21:33 in reply to "RE[2]: Fun"
JAlexoid Member since:

I am not waiting for Apple to be nice though. I am waiting for them to get a letter from EU competition commissioner or US anti-trust agency.

Based on what? For having only 25% of US smartphone market or 15% of worldwide market? Microsoft got smacked for having over 90% of market, no mere 25%.
And even though they are the dominant player in the PMP market, iPod Touch is not the major product in that category.

Reply Parent Score: 2