我真的需要一些帮助。我目前已将我的cocos2d-x项目迁移到更新版本的Cocos2D,我已经把一切都搞定了,但是现在,我已经陷入了一些我自己无法解决的问题。
我的项目全部被C ++ 11覆盖,看起来它无法编译iOS库,因为它们使用Objective-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.