“嵌入式dylib /框架仅在iOS 8或更高版本上运行”的后果“警告 [英] Consequences of "Embedded dylibs/frameworks only run on iOS 8 or later" warning

查看:115
本文介绍了“嵌入式dylib /框架仅在iOS 8或更高版本上运行”的后果“警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Xcode 6.x,我们可以使用CocoaTouch Framework模板构建一个框架库,Xcode将在我们构建时为我们创建.framework,这很棒。在我们的框架中,我们希望支持iOS 7.1及更高版本,因此对于Deployment Target(在我们的框架中),我们指定了7.1。现在,当我们构建时,我们会看到一个警告:嵌入式dylibs /框架仅在iOS 8或更高版本上运行。我已经阅读了很多关于这个主题的博客文章,只要在iOS 7.1上运行它就可以忽略这个警告,因为它运行正常(仍然需要测试以确保)。让我感到担忧的是,我在Stack Overflow上发布了一篇帖子,该帖子称App可能会被Apple在App Store中拒绝(参见:仅在iOS8中支持Xcode 6和嵌入式框架

With Xcode 6.x we can use CocoaTouch Framework template to build a framework library and Xcode will create the .framework for us when we build, which is awesome. In our framework we want to support iOS 7.1 and up, so for Deployment Target (in our framework) we specified 7.1. Now when we build we see a warning: "Embedded dylibs/frameworks only run on iOS 8 or later". I've since read a number of blog posts on the subject that as far as running it on iOS 7.1 this warning can be ignored because it will run fine (still need to test to make sure). What concerns me is that I read a post on Stack Overflow which says an app may be rejected by Apple in the App Store (see: Xcode 6 and Embedded Frameworks only supported in iOS8)

仅限于此在Xcode中应用时,应用程序链接到General> Embedded Libraries?

Does it only apply when in Xcode the app links to it in General > Embedded Libraries?

我们希望客户链接到我们框架的方式是:

The way we want our customers to link to our framework is:


  1. 通过CocoaPods

  2. 通过引用构建阶段中的.framework>使用库链接二进制文件

我需要了解App Store将在什么条件下拒绝使用我们的CocoaTouch框架并支持7.x iOS的应用程序。

I need to understand under what conditions App Store will reject an app which uses our CocoaTouch framework and supports 7.x iOS.

推荐答案

如果您将框架的类型更改为静态,则不会拒绝该应用。请参阅我的回答此处

The app wont be rejected if you'll change the type of your framework to Static. See my answer here.

这篇关于“嵌入式dylib /框架仅在iOS 8或更高版本上运行”的后果“警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆