質問

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

役に立ちましたか?

解決

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.

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top