GPUImage swift iOS 7 [英] GPUImage swift iOS 7

查看:120
本文介绍了GPUImage swift iOS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人发布了适用于iOS 7+的Swift和GPUImage的应用程序?
当我试图发布应用程序时,我收到错误(这不是我的屏幕,但我得到的相同)

Does anybody released app with Swift and GPUImage for iOS 7+ ? When I trying to post an app I'm getting error (it isn't my screen, but I getting the same)

应用程序适用于ios的所有设备和模拟器7,我也通过testflight发送它作为adhoc它仍然有效,但我现在无法释放它。

App worked perfect on all devices and simulators for ios 7, also I sent it as adhoc via testflight and it still worked, but I can't release it now.

推荐答案

所以这里的根本问题是对嵌入式框架的支持。要使像GPUImage这样的Objective-C框架可用于Swift项目,您必须将其构建为一个模块,该模块首先要求将其构建为完整的捆绑框架。我为GPUImage设置了它,以便它可以在Swift项目中使用。

So the root problem here is the support for embedded frameworks. To make an Objective-C framework like GPUImage available to Swift projects, you have to build it as a module, which first requires it to be built as a full bundled framework. I set this up for GPUImage so that it could be used in a Swift project.

对捆绑框架(而不是我们一直使用的静态库)的支持是新的到iOS 8,但您可以在本地运行,甚至可以使用捆绑的框架将iOS应用程序临时部署到iOS 7(Mac当然从一开始就支持这一点)。例如,使用GPUImage的我的FilterShowcaseSwift示例应用程序在iOS 7上运行良好。

Support for bundled frameworks (instead of the static libraries we have been using), is new to iOS 8, but you can run locally and even ad hoc deploy iOS applications using bundled frameworks back to iOS 7 (the Mac has of course supported this from the beginning). My FilterShowcaseSwift sample application using GPUImage works well on iOS 7, for example.

然而,听起来App Store拒绝使用针对早于8的iOS版本的捆绑框架的应用程序。我不知道是否有办法解决这个问题,因为再次,你可以在iOS 7中运行这些应用程序。这也可能是暂时的,因为我听说在App Store上使用捆绑框架的iOS 8专用应用程序也存在问题。

However, it sounds like the App Store is rejecting applications using bundled frameworks which target iOS versions earlier than 8. I don't know if there's a way around this, because again you can run these applications just fine in iOS 7. This may also be a temporary thing, because I've heard there have been issues with even iOS 8-only applications using bundled frameworks on the App Store.

也许您可以手动将GPUImage类添加到项目中并使用桥接头来避免框架本身的需要,但这听起来像是一团糟。

Maybe you could manually add GPUImage classes to your project and use a bridging header to avoid the need for the framework itself, but that sounds like a mess.

这篇关于GPUImage swift iOS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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