Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate cocos2d-objc into our existing project (iOS | Swift) #1362

Closed
riyanpratamap opened this issue May 26, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@riyanpratamap
Copy link

riyanpratamap commented May 26, 2019

Hi @badlogic , so sorry I have a question regarding how to integrate cocos2d-objc in our existing project. I still have a problem integrating spine in my current project. I tried to add the sources from spine-c/spine-c/src/spine and spine-cocos2d-objc/src/spine to your project, but still produce lexical or preprocessor issue.

I have follow your instruction to run it on my emulator here but i got few error.

/Spine/spine-runtimes-3-2.7/spine-cocos2d-objc/cocos2d/cocos2d/CCRendererBasicTypes.m:62:12: 
error: expected method to read dictionary element not found on object of type 'id<NSCopying>'
        id src = (options[CCBlendFuncSrcColor] ?: @(GL_ONE));

From other runtimes out there, I think the only one that support one file image asset in .png is cocos2d-objc. So i'll try to implement this library.

I found your answer in #1106 , but actually you are referring into cocos2dx installation for C++. Do you have any clue for me? Thank you.

@badlogic
Copy link
Collaborator

The problem is sadly in cocos2d-objc, and not in spine-cocos2d-objc, see cocos2d/cocos2d-objc#1394

You can fix this by changing line 56 in CCRendererBasicTypes.m to:

-(id)objectForKey:(id)options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants