现有ios项目sdk的appcelerator模块 [英] appcelerator module for existing ios project sdk

查看:66
本文介绍了现有ios项目sdk的appcelerator模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的titanium项目中使用现有sdk提供的功能( deezer sdk ).

I want to use into my titanium project the functionalities provided by an existing sdk (deezer sdk).

我知道我必须处理modules,因此我找到了很多很好的说明

I know I must deal with modules, so I found a lot of tutorials that explain well how to create a titanium module from scratch. But I didn't find something about to explain how to "wrap" an existing ios project within a titanium module. I just need the login/signup functionality and to retrieve the logged user (functionalities provided by the deezer ios sdk, of course).

有人可以帮助我吗?

先谢谢了 达里奥(Dario)

thanks in advance Dario

推荐答案

创建香草模块后,您必须将要包装的框架(即deezer SDK)包含在捆绑包中. 然后按照以下步骤添加框架编译器指令.本质上,您只需添加以下内容即可:

After creating the vanilla module, you have to include the framework you are wrapping (so deezer SDK) inside the bundle. Then follow these steps to add the framework to the compiler directives. Essentially you just add this:

OTHER_LDFLAGS = $(继承)-框架DeezerSDK

OTHER_LDFLAGS=$(inherited) -framework DeezerSDK

到module.xconfig文件.只需检查一下SDK的确切名称即可.

To the module.xconfig file. Just check what the exact name is of the SDK.

之后,您可以像在常规本机Xcode开发中一样使用DeezerSDK.

After that, you can use the DeezerSDK just like you would in regular native Xcode development.

如果该库只是一个* .a文件,那么您可以对

If the library is just a *.a file, then you can model what Titanium did for the Google Admob module. Its best to just inspect their project, bt essentially all that you need to do is create the vanilla titanium module, drop in the *.a file, and the headers, and then use it just like a native project.

这篇关于现有ios项目sdk的appcelerator模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆