The invention discloses a convenient method to package the code in the iOS IPA implantation, (1) add hook scripts in the iOS project source code will be added to the hook script in the code of the project; (2) to generate embedded code, IPA package, using decompression tool to unpack, will need to compile into code a dynamic library, added to the Framework directory; (3) re signature, and packaged into a new IPA, (4) dynamic call, the new IPA when the package runs through hook scripts and DLL Dynamic link call, embedded code function. Using the method of the invention not only can make the source code in SDK access hook scripts, and the generation of IPA, but also can achieve the corresponding tools, complete access, greatly reducing the workload of SDK access.
【技术实现步骤摘要】
一种在iOSipa包植入代码的便捷方法
本专利技术涉及代码集成领域,具体是一种在iOSipa包植入代码的便捷方法。
技术介绍
传统的iOS平台SDK传统接入方法都是在ipa生成前执行源代码接入,传统方法接入,一般来说需要做以下步骤:1)SDK2)参考接入文档,在原代码工程中添加相关SDK3)SDK执行运行环境4)SDKAPI5)ipa,完成接入。由此可以看出,传统的接入方法,过程繁琐,SDK工作量大,运行效率慢。
技术实现思路
本专利技术的目的在于提供一种在iOSipa包植入代码的便捷方法,以解决上述
技术介绍
中提出的问题。为实现上述目的,本专利技术提供如下技术方案:一种在iOSipa包植入代码的便捷方法,具体步骤如下:(1)添加勾子脚本在iOS工程源码中将勾子脚本加入到工程代码中,勾子脚本是通过objective-c语言开发的,通过iOS提供的打包工具生成ipa发布包;(2)植入代码对步骤(1)生成的ipa包,利用解压工具将其解压,将需要引入的代码编译成动态库,添加到Framework目录中;(3)重签名,并打包成新ipa将执行步骤(2)后的相关解压缩文件重新生成ip ...
【技术保护点】
一种在iOS ipa包植入代码的便捷方法,其特征在于,具体步骤如下:(1)添加勾子脚本在iOS工程源码中将勾子脚本加入到工程代码中,勾子脚本是通过objective‑c语言开发的,通过iOS提供的打包工具生成ipa发布包;(2)植入代码对步骤(1)生成的ipa包,利用解压工具将其解压,将需要引入的代码编译成动态库,添加到Framework目录中;(3)重签名,并打包成新ipa将执行步骤(2)后的相关解压缩文件重新生成ipa包,利用iOS提供的codesign工具对payload文件夹进行重新签名,完成后利用zip工具压缩paylod文件夹,命名扩展名为ipa即可;(4)动态 ...
【技术特征摘要】
1.一种在iOSipa包植入代码的便捷方法,其特征在于,具体步骤如下:(1)添加勾子脚本在iOS工程源码中将勾子脚本加入到工程代码中,勾子脚本是通过objective-c语言开发的,通过iOS提供的打包工具生成ipa发布包;(2)植入代码对步骤(1)生成的ipa包,利用解压工具将其解压,将需要引入的代码编译成动态库,添加到Framework目录中;(3)重签名,并打包成新ipa将执行步骤(2)后的相关解压缩文件重新生成ipa包,利用iOS提供的cod...
【专利技术属性】
技术研发人员:王修强,彭俊,
申请(专利权)人:深圳市慧动创想科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。