4 ms·
I'm a bit confused, what is C++ doing in there? I thought the XCode path was all Obj-C for iPhone apps...?
by tvon 17y ago
I'm a bit confused, what is C++ doing in there? I thought the XCode path was all Obj-C for iPhone apps...?
- rayval 17y agosome low level libraries and frameworks are written in C and C++, which can co-exist with Objective C in the same project. For example, the Chipmunk physics engine is in C, and the Sound Engine multi-threaded sound library is in C++
- gte910h 17y agoThe iPhone's native API is a mix of C and ObjC. Some libraries are written in C++ but have C bindings for the most part. All of these languages can relatively easily call one another (even on the iPhone). As C++ is a huge deal in the game world, lots of shops just went pretty much straight C++. XCode is just using clang to analyze/gcc to compile then signing it with Apple signing programs. If I'm not mistaken, the entire app toolchain was inspired by the "open toolchain" created by the original jailbreakers before there was a native app api.