简体   繁体   English

我可以在iOS应用程序的“文档”或“库”目录中放置和访问静态库(.a)吗?

[英]Can I place and access a static library (.a) in the Documents or Library directory for an iOS app?

I would like to make my iOS app easy to update a library without updating the app to the App Store. 我想使我的iOS应用程序易于更新库,而无需将其更新到App Store。 So I think I may place and access a static library (.a) in the Documents or Library directory of the app. 因此,我认为我可以在应用程序的Documents或Library目录中放置和访问静态库(.a)。

Would this be possible? 这可能吗? If so, how this can be done. 如果是这样,该如何做。

So far, I can put a static library (a.) in the Documents or Library directory of the app but cannot link this library from Xcode project. 到目前为止,我可以在应用程序的Documents或Library目录中放置一个静态库(a。),但不能从Xcode项目链接此库。

Please give me any suggestions. 请给我任何建议。 Thank you. 谢谢。

No. This won't work. 不,这行不通。 Static libraries must be linked into the final executable. 静态库必须链接到最终可执行文件中。 And Apple doesn't allow for dynamic libraries. 而且Apple不允许使用动态库。

You will have to submit an app update anytime you need to update any code. 您需要随时更新任何代码,都必须提交应用更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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