From 40beaaf70083dfc7385a9c8d23ccadab013698e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Zhang=20=28=E5=BC=B5=E9=81=93=E5=8D=9A=29?= Date: Sun, 26 Jan 2014 01:27:07 -1000 Subject: [PATCH 1/2] Add missing items from cocos2d-iphone 2.1 so that the project builds without errors. Added references to the project: * CCFontDefinition.m * CCFontDefinition.h Added CoreText.framework to the build phase. --- .../spine-cocos2d-iphone-ios.xcodeproj/project.pbxproj | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spine-cocos2d-iphone/spine-cocos2d-iphone-ios.xcodeproj/project.pbxproj b/spine-cocos2d-iphone/spine-cocos2d-iphone-ios.xcodeproj/project.pbxproj index fd59167d9..7cb784f9f 100644 --- a/spine-cocos2d-iphone/spine-cocos2d-iphone-ios.xcodeproj/project.pbxproj +++ b/spine-cocos2d-iphone/spine-cocos2d-iphone-ios.xcodeproj/project.pbxproj @@ -165,6 +165,8 @@ 43C32A09170B10FF004A9460 /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 43C32A08170B10FF004A9460 /* AppDelegate.mm */; }; 43DB2A3D172C16BC003045C5 /* CCSkeleton.m in Sources */ = {isa = PBXBuildFile; fileRef = 43DB2A3A172C16BC003045C5 /* CCSkeleton.m */; }; 43DB2A3E172C16BC003045C5 /* CCSkeletonAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 43DB2A3C172C16BC003045C5 /* CCSkeletonAnimation.m */; }; + 65210794189524EB00B1FF07 /* CCFontDefinition.m in Sources */ = {isa = PBXBuildFile; fileRef = 65210792189524EB00B1FF07 /* CCFontDefinition.m */; }; + 652107961895250000B1FF07 /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 652107951895250000B1FF07 /* CoreText.framework */; }; 9A5D2499170A94DA0030D4DD /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A5D2498170A94DA0030D4DD /* QuartzCore.framework */; }; 9A5D249B170A94DA0030D4DD /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A5D249A170A94DA0030D4DD /* OpenGLES.framework */; }; 9A5D249D170A94DA0030D4DD /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A5D249C170A94DA0030D4DD /* OpenAL.framework */; }; @@ -500,6 +502,9 @@ 43DB2A3A172C16BC003045C5 /* CCSkeleton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CCSkeleton.m; path = src/spine/CCSkeleton.m; sourceTree = ""; }; 43DB2A3B172C16BC003045C5 /* CCSkeletonAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CCSkeletonAnimation.h; path = src/spine/CCSkeletonAnimation.h; sourceTree = ""; }; 43DB2A3C172C16BC003045C5 /* CCSkeletonAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CCSkeletonAnimation.m; path = src/spine/CCSkeletonAnimation.m; sourceTree = ""; }; + 65210792189524EB00B1FF07 /* CCFontDefinition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CCFontDefinition.m; sourceTree = ""; }; + 65210793189524EB00B1FF07 /* CCFontDefinition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCFontDefinition.h; sourceTree = ""; }; + 652107951895250000B1FF07 /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; }; 9A5D2495170A94DA0030D4DD /* SpineExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SpineExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 9A5D2498170A94DA0030D4DD /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; 9A5D249A170A94DA0030D4DD /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; @@ -517,6 +522,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 652107961895250000B1FF07 /* CoreText.framework in Frameworks */, 9A5D2499170A94DA0030D4DD /* QuartzCore.framework in Frameworks */, 9A5D249B170A94DA0030D4DD /* OpenGLES.framework in Frameworks */, 9A5D249D170A94DA0030D4DD /* OpenAL.framework in Frameworks */, @@ -644,6 +650,8 @@ 43C32890170B0F14004A9460 /* cocos2d */ = { isa = PBXGroup; children = ( + 65210792189524EB00B1FF07 /* CCFontDefinition.m */, + 65210793189524EB00B1FF07 /* CCFontDefinition.h */, 43C32891170B0F14004A9460 /* CCAction.h */, 43C32892170B0F14004A9460 /* CCAction.m */, 43C32893170B0F14004A9460 /* CCActionCamera.h */, @@ -1008,6 +1016,7 @@ 9A5D2497170A94DA0030D4DD /* Frameworks */ = { isa = PBXGroup; children = ( + 652107951895250000B1FF07 /* CoreText.framework */, 9A5D2498170A94DA0030D4DD /* QuartzCore.framework */, 9A5D249A170A94DA0030D4DD /* OpenGLES.framework */, 9A5D249C170A94DA0030D4DD /* OpenAL.framework */, @@ -1122,6 +1131,7 @@ 43C3282B170B0BF6004A9460 /* ExampleLayer.m in Sources */, 43C3282F170B0C19004A9460 /* spine-cocos2d-iphone.m in Sources */, 43C32855170B0C6C004A9460 /* Animation.c in Sources */, + 65210794189524EB00B1FF07 /* CCFontDefinition.m in Sources */, 43C32856170B0C6C004A9460 /* AnimationState.c in Sources */, 43C32857170B0C6C004A9460 /* AnimationStateData.c in Sources */, 43C32858170B0C6C004A9460 /* Atlas.c in Sources */, From 690b7d1684b5ed94e3e22d3a91ec36876a5a427a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Zhang=20=28=E5=BC=B5=E9=81=93=E5=8D=9A=29?= Date: Sun, 26 Jan 2014 01:27:46 -1000 Subject: [PATCH 2/2] Adding a note about the need to also copy the appropriate licenses to the project. --- spine-cocos2d-iphone/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-cocos2d-iphone/README.md b/spine-cocos2d-iphone/README.md index 8259df550..2bfc151ed 100644 --- a/spine-cocos2d-iphone/README.md +++ b/spine-cocos2d-iphone/README.md @@ -5,7 +5,7 @@ The spine-cocos2d-iphone runtime provides functionality to load, manipulate and ## Setup 1. Download the Spine Runtimes source using [git](https://help.github.com/articles/set-up-git) or by downloading it [as a zip](https://github.com/EsotericSoftware/spine-runtimes/archive/master.zip). -1. Place the `cocos2d`, `CocosDenshion`, and `kazmath` directories from a cocos2d-iphone (v2.1-rc1 or later) distribution into the `spine-cocos2d-iphone/libs` directory. +1. Place the `cocos2d`, `CocosDenshion`, and `kazmath` directories from a cocos2d-iphone (v2.1-rc1 or later) distribution into the `spine-cocos2d-iphone/libs` directory. Also place `LICENSE_cocos2d.txt`, `LICENSE_CocosDenshion.txt`, and `LICENSE_Kazmath.txt` into the `spine-cocos2d-iphone/libs` directory. 1. Open the XCode project file for iOS or Mac from the `spine-cocos2d-iphone` directory. Alternatively, the contents of the `spine-c/src`, `spine-c/include` and `spine-cocos2d-iphone/src` directories can be copied into your project. Be sure your header search path will find the contents of the `spine-c/include` and `spine-cocos2d-iphone/src` directories. Note that the includes use `spine/Xxx.h`, so the `spine` directory cannot be omitted when copying the files.