What languages can you use in a multi-language project for iOS using Xcode?
-
When creating an iPhone app with Xcode you can use C++ and Obj-C in the same project. What other languages could you use?
-
Answer:
In an iOS Application (built in Xcode), you can really only use Objective-C. However because Objective-C is a superset of C, you are most likely already writing a good amount of C code. C++ is also allowed. The only other "language" I can think of is javascript, but that would only be to the extent that you could have a webview and evaluate javascript inside of it. There are certainly many other tools, like Xamarin which would let you write you app in a language other than Objective-C, but these come with their own IDE's
Jamie Matthews at Quora Visit the source
Other answers
If you are talking about XCode as a build system, bundling and text editing environment, you also have a few choices using other languages for which it doesn't provide a compiler. You can use any interpreter you like provided you bundle the interpreter and make sure the user cannot download code to run on it. That means you can code in Python, Ruby, Lua, Scheme... pretty much any interpreter on the planet has been ported to run on iOS (apart from the JVM and CLR for Java and C# bytecode). You can also use the Glasgow Haskell Compiler - see XCode 5 integration instructions: https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS. Slightly more work required to use the OCaml compiler invoked from XCode: http://psellos.com/ocaml/compile-to-iphone.html
Andy Dent
Related Q & A:
- What colors should i use for a project of architecture?Best solution by Yahoo! Answers
- What can I use as a screen name?Best solution by Yahoo! Answers
- What pc games can you use with a xbox 360 wired controller?Best solution by Yahoo! Answers
- What else can you use to clean the metal part of the Oreck XL air cleaner besides their Assail-A-Cell?Best solution by Yahoo! Answers
- What monitor can I use with a mac mini?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.