avatar
Today is Monday
May 20, 2013

Search Results Category: iPhone

October 29, 2010

How To Fix: Cocos2d error: There is no SDK with the name or path ‘iphoneos4.0′

by admin — Categories: Cocos2d, MAC, Xcode, iPhone — Tags: , , , , No Comments

If tried to run Cocos2d for the first time, you may get this error

error: There is no SDK with the name or path ‘iphoneos4.0′

to fix this:

1- In Xcode Groups & Files, Double click on Targets.

2- Right click on your Proj file name from the targets list my proj name babaGanoj

3- Click on get info

4- On Base SDK       iOS Device is (missing)


5- We need to change it to iOS Device 4.1

6- Click On Overview and select Release

7- Click on Active SDK and select Simulator

8- Build and run your app.

How To: Install Cocos2d 0.99.4 template on XCode for iPhone

Step by step installing Cocos2d 0.99.4 and solve error problem while installing it.

1- Download Cocos2d for iPhone.

2- Click Spotlight

3- Search & Run Terminal

4- In terminal type cd

5- Hit space once.

6- Drag Cocos2d folder to the terminal

7- Hit Enter.

8- Browse to Cocos2d folder and locate file “install-templates.sh”.
9- Drag file install-templates.sh to the terminal and hit Enter.


10- You may get this Error
Error: This script must be run as root in order to copy templates to /Library/Application Support/Developer/Shared/Xcode
Try running it with ‘sudo’, or with ‘-u’ to install it only you:
sudo /Users/abdullah/Documents/downloaded/cocos2d-iphone-0.99.4/install-templates.sh
or:
/Users/abdullah/Documents/downloaded/cocos2d-iphone-0.99.4/install-templates.sh -u

Error: This script must be run as root in order to copy templates to /Library/Application Support/Developer/Shared/Xcode
Try running it with ‘sudo’, or with ‘-u’ to install it only you:   sudo /Users/abdullah/Documents/downloaded/cocos2d-iphone-0.99.4/install-templates.shor:   /Users/abdullah/Documents/downloaded/cocos2d-iphone-0.99.4/install-templates.sh -u

11- Copy and paste this line sudo /Users/abdullah/Documents/downloaded/cocos2d-iphone-0.99.4/install-templates.sh

12- hit Enter

13- Enter your Admin password

14- installation Done and the template installed on Xcode.

Note: if you dont have Admin password then create one, to do so:

Step by Step Create Admin Password on MAC

1- click Apple

2- System prefrences

3- Acounts

4- Change Password

© 2013 How To Do All rights reserved - Wallow theme by TwoBeers Crew - Powered by WordPress - Have fun!