iOS动态库能不能动态从服务器上下载到应用里面加载?
有没有成功的经验,必须可以发布到app store上不被拒的。
有没有成功的经验,必须可以发布到app store上不被拒的。
曾经做过动态加载framework的实验,发现每次打包生成framework的时候,都会去签名验证
所以基本上是没办法动态链接。
脚本的话有Wax,这里有一个阿里巴巴维护的64位版本https://github.com/alibaba/wax
JSPatch还没研究过
游戏里面很多都是用lua热更的,也没发现会有被拒绝的情况。
还是得开需求,评估一下值不值得做热更,没必要的话还是老老实实遵守规定
iOSProgramInformation43_15.pdf
3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's built-in WebKit framework or JavascriptCore, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.
条款表示苹果不允许应用下载可执行代码,唯一例外是下载的代码是通过苹果内置的WebKit或JavascriptCore运行的。苹果认为这种代码不会改变原始应用的主要功能点。
所以动态库更新是有风险的。但在不改变应用功能的原则下或可被豁免。
推荐一个开源项目:Small