It is currently Mon May 20, 2013 2:33 pm

All times are UTC - 8 hours




 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: Errors Running Recipes in XCode 4.2
PostPosted: Thu Feb 09, 2012 2:38 pm 

Joined: Thu Feb 09, 2012 2:22 pm
Posts: 2
Great book. I just got it and am working my way through the first chapter.

However, both of my Macs throw lots of warnings when trying to run the source code. The builds succeed and I can run the examples, but the there are up to 65 warnings, depending on the project.

I'm running XCode 4.2 for Snow Leopard on my Macbook, and XCode 4.2 for Lion on my iMac. Both have the same issues.

The warnings are almost all Semantic Issues and Deprecations, and appear to be coming from the Cocos2d libraries, not the recipe code.

Here's a typical semantic issue: "Incompatible pointer types assigning to 'CCActionalInterval *' from 'CCAction *'" in CCActionGrid.m, line 198.

If I create a new Cocos2d project and compile the Hello World program, it runs without errors.

My guess is that these are versioning issues. Any ideas or remedies?


Offline
 Profile  
 
 Post subject: Re: Errors Running Recipes in XCode 4.2
PostPosted: Sun Feb 12, 2012 4:07 am 
Site Admin
User avatar

Joined: Wed Jan 11, 2012 1:57 pm
Posts: 12
Location: Los Angeles, CA
Most of the warnings could be fixed, but, I haven't had the time to get to them. They are all small issues like you mentioned. I recommend investigating the warnings on a case by case basis. Most of them shouldn't cause a problem. Its possible that deprecated method calls could turn into errors in future. I'll work on ironing out the warnings for the soon to be released Starter Kit.


Offline
 Profile  
 
 Post subject: Re: Errors Running Recipes in XCode 4.2
PostPosted: Mon Feb 13, 2012 8:35 pm 

Joined: Thu Feb 09, 2012 2:22 pm
Posts: 2
Thanks for getting back to me.

You're right that the warnings don't cause a problem and the recipe examples run ok.

For new projects, I've downgraded my installation of cocos2d to 1.0.0, which still supports the methods used in the recipes. That seems to be a good interim solution because some of those functions are indeed deprecated in cocos2d 1.0.1 and cannot be used.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron