[Tip]no rule to process file “blabla” of type sourcecode.javascript for architecture i386 on xcode4

Leave a comment

On Xcode3

Go to Targets, click the arrow, and drag the unprocessed file from the “compile sources” folder to the “Copy Bundle Resources”

then do a “clean all targets” from the main menu and try to build again.

 

Since the Target node is gone in the project tree in XCode 4, you have to do the following

1. click on the project node (the blue one with the Xcode icon)

2. click on the tab labeled ‘Build Phases’

3. open the panel labeled ‘Copy Bundle Resources’

4. click the ‘+’ button at the lower left hand corner of the panel

5. add the .js file

Advertisements

[Recommendation]Things you need to know about iOS5

Leave a comment

I would like to share an awesome post about the introduction of iOS5 for developers. Please check it out before coding on it.

http://gravityjack.com/gravityjack_news/ios-5-for-developers-what-you-need-to…

[Tip]error: cast to ‘id’ of a non-Objective-C to an Objective-C pointer is disallowed with Automatic Reference Counting

7 Comments

This error will appear when you compile your project with Xcode 4.2. Because of the new mechanism named ARC(Automatic Reference Counting). You could check out the document here: Programming With ARC Release Notes .

It could happen in this way: 

CALayer *imageLayer = [CALayer layer];

imageLayer.contents = (id) image.CGImage;

It is pretty easy to fix this problem,

just change “id” to “objc_unretainedObject“.

Hopefully this could help you out a little bit. Enjoy coding 🙂

Session next at Presidio room

Leave a comment


Taken at Apple Worldwide Developer Conference (WWDC)

Schedule this afternoon

Leave a comment


Taken at Apple Worldwide Developer Conference (WWDC)

2nd game session is about to begin~~

Leave a comment


Taken at Apple Worldwide Developer Conference (WWDC)

People who is joining in the game session

Leave a comment


Taken at Apple Worldwide Developer Conference (WWDC)

Older Entries