GPUImage框架_文档翻译_03

作者: CC老师_HelloCoder | 来源:发表于2017-06-23 15:38 被阅读249次

Adding this as a framework (module) to your Mac or iOS project

(将此作为框架(模块)添加到Mac或iOS项目中)

Xcode 6 and iOS 8 support the use of full frameworks, as does the Mac, which simplifies the process of adding this to your application. To add this to your application, I recommend dragging the .xcodeproj project file into your application's project (as you would in the static library target).

Xcode 6和iOS 8支持全框架的使用,如MAC,从而简化了添加到您的应用程序的过程。要添加到您的应用程序,我建议拖。xcodeproj项目文件到你的应用程序的项目(你会在in the static library target)。

For your application, go to its target build settings and choose the Build Phases tab. Under the Target Dependencies grouping, add GPUImageFramework on iOS (not GPUImage, which builds the static library) or GPUImage on the Mac. Under the Link Binary With Libraries section, add GPUImage.framework.

对于你的app,去它的target build settings 并且选择 Build Phases标签。 在目标相关性分组下,添加GPUImageFramework 在iOS(不是GPUImage,建立静态库) 或者 Mac。在 Link Binary With Libraries 部分,添加GPUImage.framework

This should cause GPUImage to build as a framework. Under Xcode 6, this will also build as a module, which will allow you to use this in Swift projects. When set up as above, you should just need to use

你应该使用GPUImage 建立一个框架。在Xcode 6.0,这会建立一个模块,如上所述它会允许你使用在 Swift 项目。

import GPUImage

导入GPUImage文件

You then need to add a new Copy Files build phase, set the Destination to Frameworks, and add the GPUImage.framework build product to that. This will allow the framework to be bundled with your application (otherwise, you'll see cryptic "dyld: Library not loaded: @rpath/GPUImage.framework/GPUImage" errors on execution).

你需要添加一个新的拷贝文件在build phase。设置目标框架,并添加

GPUImage.framework在已建立的项目中。它将允许框架内被捆绑你的应用程序。(否则,你将看到"dyld: Library not loaded: @rpath/GPUImage.framework/GPUImage" 错误警告)

小伙伴们阅读后,请喜欢一下。文章更新可以提醒到你哦~~~~

相关文章

  • GPUImage框架_文档翻译_03

    Adding this as a framework (module) to your Mac or iOS pr...

  • GPUImage框架_文档翻译_01

    是的,我要开始写关于GPUImage 框架的文章了!先来把简介看一波!借助翻译工具也得啃出来哇!!!看来我又得早起...

  • GPUImage框架_文档翻译_02

    “咳咳.......” CC 又上线了哦!今天花30分钟把剩下的文档介绍翻译一下!不喜勿喷!不过可以指出CC的错误...

  • GPUImage框架_文档翻译_04

    Documentation (文档) Documentation is generated from header...

  • GPUImage文档翻译

    概述 GPUImage框架是一个获得bsd许可的iOS库,允许您对图像、实时摄像机视频和电影应用gpu加速过滤器和...

  • GPUImage图片美颜

    准备工作: 导入GPUImage框架 代码 : 方法一: (利用GPUImage框架提供的GPUImageView...

  • GPUImage阅读笔记-概述

    GPUImage主要由AVFoundation和OpenGL ES两个框架组成 GPUImage框架是使用了链式结...

  • iOS-DIY美颜相机

    本例是使用GPUImage开源框架,生成美颜相机。实时采集画面,进行美颜。 GPUImage GPUImage是开...

  • GPUimage -1

    GPUImage框架地址: [https://github.com/BradLarson/GPUImage] 对G...

  • iOS滤镜那些事儿

    一. GPUImage 框架的介绍及基本使用 1.GPUImage 的介绍 GPUImage是基于OpenGL E...

网友评论

    本文标题:GPUImage框架_文档翻译_03

    本文链接:https://www.haomeiwen.com/subject/cvlfcxtx.html