我在 SpriteBuilder 中创建了一个新项目,并尝试使用 Apportable 将其转换为 Android。
当我运行$ apportable build
时,我现在收到许多error: use of undeclared identifier
与 CCLabelTTF.m 相关的错误。以下是其中三个作为示例:
/Users/name/Documents/TestApp/Source/libs/cocos2d-iphone/cocos2d/CCLabelTTF.m:350:50: error: use of undeclared
identifier 'NSForegroundColorAttributeName'; did you mean 'kCTForegroundColorAttributeName'?
if (![formattedAttributedString hasAttribute:NSForegroundColorAttributeName])
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kCTForegroundColorAttributeName
/Users/name/Documents/TestApp/Source/libs/cocos2d-iphone/cocos2d/CCLabelTTF.m:372:50: error: use of undeclared
identifier 'NSFontAttributeName'; did you mean 'kCTFontAttributeName'?
if (![formattedAttributedString hasAttribute:NSFontAttributeName])
^~~~~~~~~~~~~~~~~~~
kCTFontAttributeName
Compiling /Users/name/Documents/TestApp/Source/libs/cocos2d-iphone/cocos2d/CCParticleSystem.m
/Users/name/Documents/TestApp/Source/libs/cocos2d-iphone/cocos2d/CCLabelTTF.m:380:49: error: use of undeclared
identifier 'NSShadowAttributeName'
if ([formattedAttributedString hasAttribute:NSShadowAttributeName])
^
任何建议如何进行?
我在用着
- Xcode 5.0.2
- 合适的release_1.0.30
- SpriteBuilder 0.9.alpha。