Pergunta

How I can run objective-c static library ".a" with iOS dependencies for Android application? Details: We have iOS project with objective-c framework (customized and haven't analogs on java). It should run on android. Android NDK can't run with iOS dependencies - it is a main problem

Foi útil?

Solução

You cannot directly add an objective c library to an android project but you can try this tool: http://www.apportable.com that lets you run objective c code on android.

Outras dicas

You won’t be able to take a static library built for iOS and directly use it on Android.

However, if your library consists of Objective C code using mainly the Foundation or CoreFoundation frameworks, you can use the GNUstep Android toolchain to compile the library for Android.

Note that this will not work if your library uses other iOS-specific frameworks like UIKit.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top