未知类型名称'CGVector';你是说'CIVector'吗? [英] Unknown type name 'CGVector'; did you mean 'CIVector'?

查看:296
本文介绍了未知类型名称'CGVector';你是说'CIVector'吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目中工作,我开始使用最新的Xcode 4版本,当我打开并尝试使用新的Xcode 5运行它时,我在UIPushBehavior.h和UIGravityBehavior.h中都会出现此错误。

I am working in a project i started in the last Xcode 4 version and when i open and try tu run it using the new Xcode 5 i get this error in both UIPushBehavior.h and UIGravityBehavior.h.


/ Applications / xcode 4 / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS7.0。 sdk / System / Library / Frameworks / UIKit.framework / Headers / UIPushBehavior.h:34:34:未知类型名称'CGVector';你的意思是'CIVector'吗?

/Applications/xcode 4/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPushBehavior.h:34:34: Unknown type name 'CGVector'; did you mean 'CIVector'?

并且不编译我的项目。

and does not compile my project.

任何关于如何解决这个问题的想法都将不胜感激。

Any ideas on how to fix this will be greatly appreciated.

推荐答案

<我确定错误。问题依赖于标题搜索路径和库搜索路径都指向项目目录,因此项目使用的UIKit是旧的。

Well i fix the error.The problem relied on the Header Search Paths and the Library Search Path both were pointing to the project directories so the UIKit the project was using was an old one.

在我的情况下,我通过将标题搜索路径更改为:
/Applications/Xcode.app/Contents/Developer/Toolchains/来解决问题XcodeDefault.xctoolchain / u sr / include。

In my case i fix the problem by changing the Header Search Path to : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u‌​sr/include.

并将库搜索路径指向我的项目文件夹:

and leaving the Library search path pointing to my project folder:

$(SRCROOT)/ project_name

因为它在XCode 5 5A1413之前的任何版本中编译所以很棘手。

Tricky one since it compiled in any version prior to XCode 5 5A1413.

希望这对其他人有帮助。

Hope this helps to anyone else.

这篇关于未知类型名称'CGVector';你是说'CIVector'吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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