简体   繁体   中英

run objective-c static library on Android

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

您不能直接将目标c库添加到android项目中,但可以尝试使用此工具: http : //www.apportable.com ,该工具可让您在android上运行目标c代码。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM