发出的错误太多,现在停止 - XCode 7和Cocos2d-x的问题2.2.6 - C ++ 11

时间:2015-11-16 02:32:10

标签: ios objective-c c++11 cocos2d-x xcode7

我真的需要一些帮助。我目前已将我的cocos2d-x项目迁移到更新版本的Cocos2D,我已经把一切都搞定了,但是现在,我已经陷入了一些我自己无法解决的问题。

我的项目全部被C ++ 11覆盖,看起来它无法编译iOS库,因为它们使用Objective-C。

我的项目在构建设置中具有以下设置:

  • 在链接下 - >链接标准库 - > NO
  • Apple LLVM7.0下 - 语言 - > C语言方言 - >编译器默认
  • Apple LLVM7.0下 - 语言 - >编译源代码 - >根据文件类型
  • Apple LLVM7.0下 - 语言 - C ++ - > C ++语言方言 - > C ++ 11 [-std = C ++ 11]
  • Apple LLVM7.0下 - 语言 - C ++ - > C ++标准库 - >编译器默认

正在显示的错误如下:

In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.cpp:1:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.h:5:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/proj.ios/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:7:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:435:1: error: expected unqualified-id
@class NSString, Protocol;
^
                                                       ^
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.cpp:1:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.h:5:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/proj.ios/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:7:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:8:1: error: expected unqualified-id
@class NSString;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:18:64: error: unknown type name 'NSString'
FOUNDATION_EXPORT void NSSetZoneName(NSZone * __nullable zone, NSString *name)NS_SWIFT_UNAVAILABLE("Zone-based memory management is unavailable");
                                                               ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:19:19: error: unknown type name 'NSString'
FOUNDATION_EXPORT NSString *NSZoneName(NSZone * __nullable zone) NS_SWIFT_UNAVAILABLE("Zone-based memory management is unavailable");
                  ^
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.cpp:1:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.h:5:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/proj.ios/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:7:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:10:1: error: expected unqualified-id
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:11:1: error: expected unqualified-id
@class Protocol;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:17:1: error: expected unqualified-id
@protocol NSCopying
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

0 个答案:

没有答案