xcode Appstore 评论家会允许我们在 iOS8 中使用动态库吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26504617/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:57:13  来源:igfitidea点击:

Will Appstore reviewers allow us to use dynamic library in iOS8?

iosobjective-cxcodecocoa-touchdylib

提问by Itachi

I read many articles about dynamic library usage including this page "Can you build dynamic library...".

我阅读了很多关于动态库使用的文章,包括这个页面“你能构建动态库......”。

As apple document said, "Frameworks for iOS. iOS developers can now create dynamic frameworks. Frameworks are a collection of code and resources to encapsulate functionality that is valuable across multiple projects. Frameworks work perfectly with extensions, sharing logic that can be used by both the main application and the bundled extensions.", see full page from here.

正如苹果文档所说,“ iOS 框架。iOS 开发人员现在可以创建动态框架。框架是代码和资源的集合,用于封装跨多个项目有价值的功能。框架与扩展完美配合,共享可供双方使用的逻辑主应用程序和捆绑的扩展程序。”,请参阅此处的完整页面。

Taking the security issue as consideration, I got the reject reason of dynamic library before iOS8, see details from "DarkDust's answer". But, how does it "just work" in iOS8? @appstore_reviewers?

考虑到安全问题,我得到了iOS8之前动态库被拒绝的原因,详见“ DarkDust的回答”。但是,它如何在 iOS8 中“正常工作”?@appstore_reviewers?

Anyway, currently I'm writing a sample demo app and try to upload it to Appstore for review, the main feature is downloading a framework from internet to client and dlopen it. Hope that really "just works"!

无论如何,目前我正在编写一个示例演示应用程序并尝试将其上传到 Appstore 进行审核,主要功能是从 Internet 下载框架到客户端并 dlopen 它。希望真的“有效”!

Besides, the deployment target is iOS7.0, not sure it could works well in it. I didn't get a so clear understand on differences between "dynamic library" and "framework", I think they are the same and in this thread I mean "Cocoa-touch framework" which could create in Xcode 6.

此外,部署目标是iOS7.0,不确定它是否可以在其中运行。我对“动态库”和“框架”之间的区别没有很清楚的了解,我认为它们是相同的,在这个线程中我的意思是可以在 Xcode 6 中创建的“Cocoa-touch 框架”。

Some background: I'm trying to build an iOS app which does't contain extension feature, my cocoa-touch framework is for easy expand without uploading a new version as it comes from internet....

一些背景:我正在尝试构建一个不包含扩展功能的 iOS 应用程序,我的 cocoa-touch 框架可以轻松扩展而无需上传来自互联网的新版本......

UPDATEI published a demo project GMDemo here, will try to upload to Appstore.

更新在这里发布了一个演示项目GMDemo,将尝试上传到 Appstore。

UPDATE2I failed to dlopen my dynamic framework with invalid code signing error after many tries in iOS device. Sorry, no good news here. (Almost forgot to update this question, sorry! BTW)

UPDATE2在 iOS 设备中多次尝试后,我未能 dlopen 我的动态框架并出现无效代码签名错误。抱歉,这里没有好消息。(差点忘了更新这个问题,抱歉!顺便说一句)

采纳答案by Bartek Chlebek

App Store Review Guidelines explicitly prohibit that in 2.4.5 Apps that download code in any way or form will be rejectedhttps://developer.apple.com/app-store/review/guidelines/

App Store 审核指南明确禁止在 2.4.5中拒绝以任何方式或形式下载代码的App https://developer.apple.com/app-store/review/guidelines/

回答by Sanzrew

UPDATE3 just use the same code signing!!!

UPDATE3 只需使用相同的代码签名!!!

I have test it in ad-hoc environment!

我已经在 ad-hoc 环境中测试过了!

when my dynamic library use the code signing with the same code signing,It works, otherwise,crush!!

当我的动态库使用具有相同代码签名的代码签名时,它可以工作,否则,粉碎!!