现有ios项目sdk的appcelerator模块 [英] appcelerator module for existing ios project sdk
问题描述
我想在我的titanium
项目中使用现有sdk提供的功能( deezer sdk ).
I want to use into my titanium
project the functionalities provided by an existing sdk (deezer sdk).
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文件,那么您可以对 Titanium用于Google Admob 模块.最好只是检查他们的项目,而实际上,您所需要做的就是创建香草钛合金模块,放入* .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屋!