Ok, guys, there are some additional instructions, how to integrate new spine runtime library into Xcode 5.1 with cocos2d-x v3.2 project, generated by cocos.
As you know, cocos2d-x presents you old spine runtime library v1.1. You can see it in folder cocos2d/cocos/editor-support/spine/
there you can see inside h and cpp files description * Version 1.1
This is working library, but is old. So we want to replace it.
- You need to delete all of files from this directory.
- In your project, which is generated by cocos-script, you have to find blue folder cocos_2dlibs.xcode_proj. Then expand it, find editor-support folder, expand it, find spine folder, expand it and delete all descriptions for h and cpp files of runtime library. They are not needed. Those files for old 1.1 version and they are a bit different.
- Then again go to folder cocos2d/cocos/editor-support/spine/ and copy to it as one heap files from distributive folder of new runtime library for cocos2d-x v.3.2 (folder "spine-runtimes-master"). You need copy only following files as one heap from:
spine-c/include/spine
spine-c/src/spine
cocos2d-x/3.2/src/spine
- After that go to Xcode, find blue folder cocos_2dlibs.xcode_proj. Then expand it, find editor-support folder, expand it, find spine folder, expand it and click right button of mouse. Select menu item "Add files to cocos_2dlibs.xcode_proj". Select all files from directory cocos2d/cocos/editor-support/spine/, which you just have copied as described in step 3. As you remember, you copied there new files with code of runtime library v2.1
- After that drag and drop this folder "spine" into your folder "Classes". Xcode will offer you dialog box, where you have to choose "Create group for any added folders" and select all platforms (Mac, iOS)
- In you file HelloWorldScene.h just add these lines after #include "cocos2d.h"
#include <spine/spine-cocos2dx.h>
USING_NS_CC;
using namespace spine;
using namespace std;
that's all
Sorry for bad english! Good luck!