Reputation: 10137
Is it truly a good API which can actually be used to develop applications for the iphone in Linux? The main reason I ask is because I really want to learn Objective-c, but also be able to port it to something as well.
Upvotes: 0
Views: 556
Reputation: 34185
The answer is no. To develop an app for iOS, you need a Mac. The main development environment called XCode only runs on a Mac, and without XCode it is a serious pain to install the compiled app to the iOS devices to perform a test-run.
So, if you want to develop an app for iOS, and distribute the resulting app to the wider world (for non jailbroken devices), just give up hope and buy a Mac.
Now, if you just want to learn Objective-C, as NSResponder says, GNUStep is a good place, which replicates the OpenStep specification (which comes before NeXTStep took over Apple). Cocotron is on the other hand is a port of the main APIs of later OS X to Windows. (I don't know if Cocotron is ported to Linux or not.)
But you also need to understand that both GNUStep and Cocotron cover only Foundation (non-GUI parts of the Objective-C framework) and AppKit (desktop GUI parts of the Objective-C), not the UIKit (mobile GUI parts of the Objective-C). AppKit and UIKit are rather similar, so knowing one helps learning the other.
Upvotes: 2