GPUImage swift iOS 7

一世执手 提交于 2019-12-11 11:19:23

问题


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)

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.


回答1:


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.

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.

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.

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.



来源:https://stackoverflow.com/questions/26530014/gpuimage-swift-ios-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!