简体   繁体   English

xcode 5无法将gpuimage项目添加到我的xcode项目中

[英]xcode 5 can't add the gpuimage project to my xcode project

my problem is, that I'll add the GPUImage.xcodeproj file to my xcode project. 我的问题是,我要将GPUImage.xcodeproj文件添加到我的xcode项目中。 But if I'll do this this window does not appear: 但是,如果执行此操作,则不会出现此窗口:

在此处输入图片说明

So I can't add the GPUImage Target Dependencie to my project. 因此,我无法将GPUImage Target Dependencie添加到我的项目中。 What am I doing wrong? 我究竟做错了什么?

在此处输入图片说明

You could use cocoapods to manage your dependencies, it's simple to use and to update. 您可以使用cocoapods管理您的依赖关系,使用和更新都很简单。

IMHO, it also makes your project cleaner. 恕我直言,这也使您的项目更清洁。

If you still want to install it manually, make sure you have followed this "tutorial": 如果仍然要手动安装,请确保遵循以下“教程”:

https://github.com/BradLarson/GPUImage#adding-the-framework-to-your-ios-project https://github.com/BradLarson/GPUImage#adding-the-framework-to-your-ios-project

Otherwise, use cocoaPods! 否则,请使用cocoaPods! :

1- open terminal and install cocoapods with gem : 1-打开terminal并用gem安装cocoapods:

$> sudo gem install cocoapods $> sudo gem install cocoapods

2- go into your project folder: 2-进入您的项目文件夹:

$> pod init $> pod初始化

// it will create a Podfile //将创建一个Podfile

3- Edit the Podfile and copy past: 3-编辑Podfile并复制过去:

platform :ios, "7.0"

pod 'GPUImage', '~> 0.1.0'

// save and close the file

4- install dependencies: 4-安装依赖项:

$> pod install $> pod安装

// on a successful install enter: //成功安装后,输入:

$> open projectName.xcworkspace/ $>打开projectName.xcworkspace /

// it will open your xcode project with your dependencies already set up //它会打开您的xcode项目,并且已经设置了依赖项

5- Import GPUImage in ViewController 5-在ViewController中导入GPUImage

6- Enjoy! 6-享受!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM