Xcode 6 - 未知类型名称'NSString'/预期标识符或'(' [英] Xcode 6 - Unknown type name 'NSString' / Expected identifier or '('

查看:262
本文介绍了Xcode 6 - 未知类型名称'NSString'/预期标识符或'('的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Xcode 6中运行我的项目时,我遇到了许多奇怪的错误。

When I am running my project in Xcode 6, I am having many weird errors.

Parse Issue - Unknown type name 'NSString'
Format argument not an NSString
Could not build module Foundation
Could not build module QuartzCore

所有这些错误都发生在Apple的头文件中,例如:CAMediaTiming.h,NSObjCRuntime.h,NSZone.h,NSObject.h,CALayer.h等。

All of these errors occur in Apple's header files such as: CAMediaTiming.h, NSObjCRuntime.h,NSZone.h,NSObject.h, CALayer.h, etc.

不幸的是,答案在这里: ios - NSObjCRuntime,NSZone和NSObject 中的解析问题对我不起作用。

Unfortunately, the answers in here: ios - Parse Issues in NSObjCRuntime, NSZone, and NSObject did not work for me.

您如何建议我修复这些错误?

How do you recommend I fix these errors?

推荐答案

问题是我的项目中有一些.c文件,显然Xcode 6不喜欢.c文件。

The problem was that I had some .c files in my project, apparently Xcode 6 doesn't like .c files.

我将.c文件的扩展名更改为.m,Xcode 6再次开心!

I changed the extension of the .c files to .m and Xcode 6 is happy again!

这篇关于Xcode 6 - 未知类型名称'NSString'/预期标识符或'('的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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