I’m happy to announce that cocos2d for iPhone v1.0.0-rc is available for download:
Highlights:
- Xcode 4 templates both for iOS and Mac. Includes: cocos2d, cocos2d + Box2d and cocos2d + Chipmunk templates
- Updated 3rd party libraries: uthash, FontLabel, TouchJSON
- And many bug fixes
Release Notes:
API Reference:
Full Changelog:
Reorder Sprite branch:
- reorderSprite branch: cocos2d-iphone-1.0.0-rc-reorder-sprite.tar.gz
- Use this alternative version if your game needs to reorder multiple sprites (or nodes) in one frame
I would appreciate if you can test the 1.0.0-RC in your game / apps, and report any kind of bug / issue that you might find.
Thanks.
UPDATE: To install the templates, use the following command from a Terminal:
$ cd cocos2d-iphone $ ./install-templates.sh -u -f




Awesome! Thank you riq!
Unless I’m something extremely silly (and feel free to laugh at me once you’ve pointed it out), the new Xcode 4 templates don’t have any code in them. Those files seem to be missing.
The Beta ones worked fine, but removing those and installing the new ones gives me a project that won’t compile and a bunch of potential source files in the project that are actually blank in Xcode.
(really hope I’m missing something silly here…)
Hooray, it was me
When the beta templates came out, I ‘installed’ them by dutifully copying them to my user area Xcode templates folder, so naturally I tried the same thing with the full version.
When that didn’t work, I posted on here saying I may have a problem.
I then read through the install script and saw that it was indeed trying to install the Xcode 4 templates, so I gave that a shot. It complained that it wanted to be root, so I su’d up to root and did that.
Still no joy, so I read through the install script some more and ran it again with the -u setting (well, -uf as it had already installed them somewhere). Still no templates in Xcode.
Then a moment of inspiration, and I exited from the root user and ran it as me (with the -u option). It worked.
So feeling quite silly but also quite happy, I figured I should point out where I fell over in case others do the same thing (doubtful, but you never know).
Hehe
Hooray~~
I tryed installing the templates, and creating a box2d project, when i build it, i get a bunch of errors, from all the box2d files, saying no such file or directory..
what am i missing here?
Great!
Worked for me with sudo ./install-templates -f!
Any news on cocos3d templates?
Thanks..:)
haha, cool! cocos2d-x will follow and upgrade in the next version!
@Walzer Are you going to include Xcode 4 templates ? If so and if you need help with them, just let me know and I’ll happily help you.
Thats a good news!
Installed and works fine.
For test i have created a new project with Coco2d+Box2D template, then i have compiled it.
No errors during the build phase and all works fine. (only two warnings concerning an unused variable in a Box2D class)
Also the Archive works fine.
Thank you!Got it!
I got a performance issue.
I wrote a game with cocos2d 0.9.
After I downloaded 1.0, I changed it to latest version cocos2d.
Then I ran my game on my iPhone 3G, fps dropped from 60 to 40, while my game was idle.
Check autorotation, speed may slow down when set to UIViewController-based rotation.
Hi,
Just installed cocos2d-iphone-1.0.0-rc. Generating a simple application results in eight files being referenced in the project that don’t appear to exist:
Under cocos2d CCCompatibility.h/m and CCSpriteSheet.h/m
Under TouchJSON/Extensions NSCharacterSet_Extensions.h/m and NSScanner_Extension.h/m
I’ve checked the installation against 0.99.5 and all of the above files are present in that distribution.
I’m using Xcode 3.2.6 and iOS 4.3.
Hi,
Running through Instruments, this version leaks through CCSpriteBatchNode, whereas the beta doesn’t. Not sure why it’s suddenly leaking, but I’ve had to downgrade in the meantime.
Matt
I’m using the reorder branch btw.
Regards
When will the file templates for Xcode 4 available.
Same problem as @adlmdj only i’m just having the .m files show up in the error log.
Tested the templates with XCode 4 and all worked as expected.
You must ensure to run in 4.2 platform.
Also a game converted from 0.8 to the latest release an all working perfectly. Great!
Regards,
Pablo
I’m with @Martin. When will the file templates be available?
Are the file templates supposed to be copied over? There seems to be a folder created for templates at the Application Support>Developer>Shared>Xcode>File Template>Cocos2d 1.0.0 location, but it’s empty.
Is that were file templates should go? Can’t we just put the xcode 3 templates there?
Xcode 4 “file” templates are not ready yet. They will be part of the next release.
You can’t use the Xcode 3 templates in Xcode 4.
i have same problem with @adlmdj
Hi,
i’m installed cocos2d-iphone-1.0.0-rc. Some files being referenced in the project that don’t appear to exist when it complies:
cocos2d CCCompatibility.h/m and CCSpriteSheet.h/m
Extensions NSCharacterSet_Extensions.h/m and NSScanner_Extension.h/m
I’m using Xcode 3.2.5 and iOS 4.2.
@derek: Yes. The Xcode 3 templates needs to be updated. They will be fixed in the next release.
UPDATE:
The Xcode 4 “File” templates are available in the “develop” branch: https://github.com/cocos2d/cocos2d-iphone/tree/develop
@riq
the xcode 4 “file” templates dont show up when i go to add a new file??
@riq
nevermind i got it too work
Exciting release! Just spotted in the readme it says “Snow Leopard (v10.5) or newer for Mac games” – might confuse some as Snow Leopard is 10.6.
Luke
Thanks for the info and update. I guess I’ll have to learn how to pull stuff down from github. Never used that before.
Thanks for the file templates.
First one to help me figure out where to place the file templates wins a prize.
yay! I figured it out so I win the prize. one bottle of smirnoff vodka!
Hello all
i do upadate to my xcode 3.2.6 and 4.3 final , and install cocos2d v1.0 creat new project team runs get 5 error
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
thanks
I got 5 simular errors.
just delete reference of these 5 files from your project.
Riq, congrats on the v1 RC release! A lot of us owe you so much for taking the effort to create and maintain this project!
Did anybody else noticed that the CCTouchDelegate class is absent from 1.0.0 API documentation? Any reason for this omission? The class is still there and fully working on Cocos2d 1.0.0 rc.