Reputation: 8117
I'm not sure whether it's possible or even making sense so I'm asking here. If I have a third-party C++ source. Can I compile it into an iPhone binary? The binary would then be packed in my application bundle which then submitted to AppleStore. The application bundle contain my app, just that it also contains a copy of the third-party binary.
The point is that I'm imagining if this is possible, I could use the third-party binary via command and hence avoid static linking.
Does that make sense?
Upvotes: 0
Views: 188
Reputation: 6777
Apps are allowed to run code from other languages as long as all the code they run is included with the application. For example, you couldn't write an app that allows the user to write Java programs, but you could include a little Java compiler as long as it was compiling code written and uploaded with the app. Does that make sense?
Upvotes: 1
Reputation: 16973
iOS applications that aren't run on jailbroken devices don't have any privileges to execute other programs. You'd be better off static linking.
Upvotes: 1