Cocos2d install - iphone

I tried to install cocos2d framework to my xcode but I can't. I have Xcode version 3.2.5, cocos2d framework version 0.99.5, and iOS version 4.2.
I opened the terminal and entered
$ sudo /mac2/cocos2d-iphone-0.99.3/install-templates.sh
Terminal asks me for my password and I enter it. Everything seems going well; the terminal displayed "done". When I open Xcode, I do not see any cocos2d project in user templates (I do not see user template section in the new project list).What is the problem?

sudo ./install-templates.sh
means to install for system wide. The template would appear in the system wide section.
For as user template, use -u option.
./install-templates.sh -u

This is a duplicate of :
How to install Cocos2d PROJECT templates in Xcode 4?
The solution is that you have to get the latest from github in order to get xcode 4 templates.
The solution link is here:
http://www.cocos2d-iphone.org/forum/topic/13782/page/2#post-82267
The github link is:
https://github.com/cocos2d/cocos2d-iphone.git
I just verified this works.

I only use ./install-templates.sh -u -f and it works for me.

Do this:
In finder, go to your hard drive,
Go to Developer => Library and drag the cocos2d folder into this folder,
Next, open terminal, type cd , and drag the cocos2d folder into the terminal window.
Now do sudo ./install-templates.
That should work.
After, restart xcode.
Hope that helps.

sudo ./install-templates.sh -u -f
Don't forget the -f

Related

App can't be opened because it is from an unidentified developer

I installed Mac OS X Mavericks (10.9) yesterday and since then I am not able to start my Eclipse. I am attaching a screenshot of the message I see.
Is there a workaround for this?
I found a solution in Fix the “App can’t be opened because it is from an unidentified developer” Error in Mac OS X.
It's because of the Security options.
Go to System Preferences... > Security & Privacy and there should be a button saying Open Anyway, under the General tab.
You can avoid doing this by changing the options under Allow apps downloaded from:, however I would recommend keeping it at the default Mac App Store and identified developers.
An easier way to open a document from an unidentified developer, if you know it's safe, is to control-click on the file icon and then select "Open." You will then be given the option of opening it regardless of its unidentified source.
Right-click (or control-click) the application in question and choose "Open"
In terminal type the command:
xattr -d com.apple.quarantine [file path here]
Once you click enter it will no longer have that problem. Its annoying that apple adds a quarantine to files automatically. I do not know how to turn this off but there probably is a way...
You can also use the xattr command as in Stack Overflow question How do I remove the "extended attributes" on a file in Mac OS X?.
Just remove the com.apple.quarantine attribute. It works even if you don't have an administrator account, which can be a plus. After that, the app isn't considered "downloaded" and is therefore not blocked.
It is prohibiting the opening of Eclipse app because it was not registered with Apple by an identified developer. This is a security feature, however, you can override the security setting and open the app by doing the following:
Locate the Eclipse.app (eclipse/Eclipse.app) in Finder. (Make sure you use Finder so that you can perform the subsequent steps.)
Press the Control key and then click the Eclipse.app icon.
Choose Open from the shortcut menu.
Click the Open button when the alert window appears.
The last step will add an exception for Eclipse to your security settings and now you will be able to open it without any warnings.
Note, these steps work for other *.app apps that may encounter the same issue.
you can modify the gatekeeper settings by running the following command
To disable to allow apps from anywhere to be installed use the following command in terminal ::
sudo spctl --master-disable
To re-enable use the following command
sudo spctl --master-enable
I had the same problem, Eclipse would not start. Found this link and it worked like a charm:
Can't click Menu Bar Items in Eclipse
Java is messed-up on Maverick, need to download and install from here:
http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
Control Click the application in the Applications folder, not lauchpad. Choose open and then you get an options to actually open it.
Right click > Open.
Or, you can go into System Preferences, Security & Privacy, and set the restrictions on opening apps there.
I had got the same error.
Because of security reasons, I could not see option for allowing Apps downloaded from Anywhere in System preference-> Security Tab.
I removed the extended attribute from Zip file by below command.
xattr -d com.apple.quarantine [Zip file path]
And then got below error:-
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
Resolved it by uninstalling all different versions of java and installed just 1.8.0_231.
Worked finally.
In your terminal, simply run
sudo spctl --master-disable
in order to allow apps be downloaded from any developer
Open terminal, go to extracted folder of eclipse and run the following command:
./eclipse -clean
Terminal type:
Last login: Thu Dec 20 08:28:43 on console
~  sudo spctl --master-disable
Password:
~  spctl --status
assessments disabled
~ 
System Preferences->Security & Privacy
Open Terminal, Go to the eclipse folder, Run ./eclipse
Try looking into Gatekeeper. I am not sure of too much Mac stuff, but I heard that you can enable it in there.

Step by step instructions for getting cppunit up and running with Netbeans 7.2 on OS X 10.8 Mountain Lion

Can someone please provide step by step instructions for getting cppunit working on OS X 10.8 Mountain Lion? This includes any downloads needed and any configuration of Netbeans.
Currently, when I add a cppunit test, there is a warning on the Add Test dialog that says "cppunit library is not detected. Test compilation might fail." I've download both from Sourceforge and from svn cppunit and copied the files to /usr/local/include, but this does not make compilation errors go away.
What am I missing? The Google™ has been of no help with this issue.
I used Homebrew to install CppUnit on OS X 10.8 Mountain Lion. Unit tests then worked from within Netbeans without issue.
The process I followed was:
Install the XCode Command Line Tools
Available in XCode preferences or Download as separate DMG
Install Homebrew
See Link
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
Following install instructions (brew doctor at the end for example)
Use brew to install cppunit
brew install cppunit
In Netbeans:
Create C++ project
Add a function to test
Right click cpp file, select "Create Test", choose CppUnit Test
Select function from list, follow prompts to create test
Execute tests
Right click project, select Test (or crtl+F6)
I finally figured out what I was doing wrong, so I thought I would answer my own question and avoid a Wisdom of the Ancients.
install Xcode.
install Xcode Command Line Tools via the Preferences dialog (Apple's documentation showing how to do this in Xcode 4)
download CPPUnit from Sourceforge
extract
Run ./configure
run make
run sudo make install
It's possible that the first time I tried this I didn't run the correct command for ./configurebut that's a dubious claim given the fact that I was able to tab complete i.e. I shouldn't have been able to run say ./config.
But I think the real key to my problem was having to call sudo on the make install. I was getting a permission error because the script needs admin rights to put the libraries where they need to go. I could have swore I tried this at some point and it too failed.
I had a coworker try this for me a month or so ago and he got it to work. I procrastinated retrying, but once I did, it worked like a charm. As far as I know, there's no bug between OS X 10.8.1 and 10.8.2 or .3.
Once I followed the steps I have listed above, I was able to go back to Netbeans and add a unit test without the dialog complaining. Furthermore, the test code compiled and ran.

Git clone error after OS X Mountain Lion update

I just updated my MBP to OSX 10.8 and am trying to start a new project with brunch.io which by default uses coffeescript and I prefer javascript so I need to clone the simple js skeleton. So something like this:
brunch new <someprojectname> --skeleton https://github.com/brunch/simple-js-skeleton.git
Which is what I have used previously and it worked fine. But today I am getting the following error:
error: Git clone error: /bin/sh: git: command not found
I really don't know how to fix this...
You can download Apple's official collection of developer command line utilities (which includes git) by either:
Opening Xcode, going to Preferences > Downloads and clicking the install button next to 'Command Line Utilities'
Going to developer.apple.com/downloads, and downloading "Xcode 4.4 Command Line Tools for OSX 10.8" from the Xcode 4.4 category
Check your .bashrc or .bash_profile if the appropiate PATH is set. Did you install git via macports? The update probably dropped the /opt/bin or /opt/local/bin from the PATH.
I got everything working again. Apparently the update to Mountain Lion dropped git altogether. Simply downloading the install package from here and running it has everything working again.
YOu have to change your security settings go to System Preferences > Security and Privacy > Change Allow Applications downloaded from --> Anywhere. There is a chance your security settings would be locked in that case press the lock at the bottom left on the pref pane.
Based on this article:
open your ~/.bash_profile, if you use nano it would be :
$ sudo nano ~/.bash_profile
add this line to the file:
export PATH=$PATH:/usr/local/git/bin/
Save & close the file and type on the terminal:
$ source ~/.bash_profile

Filemerge application not working from svnX after installing xCode4.3?

I just installed xcode 4.3, since they moved filemerge application inside xCode package. filemerge is not working through svnX app(I have set default application as filemerge in svnX) to find the difference. How to fix this one(Xcode4.3 + svnX + filemerge)?
It appears that the system does not know about the new path to the Developer directory. I executed the following command in Terminal and restarted svnX. This did the trick.
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/
After installing the Xcode 4.3 all the utilities apps are moved in the Xcode.app folder in the applications. just do a "Show Package Contents" and navigate to :
/Applications/Xcode.app/Contents/Applications and you'll find it there, u can drag it to your dock back again

Uninstall Eclipse under OSX?

I'm running Eclipse SDK 3.4.0 on Mac OS X 10.5.6.
Every time I try to install something new through "software updates", the message "The software items you selected may not be valid with your current installation" shows up.
So I'm going to uninstall it and re-install Eclipse.
Should I just erase the Eclipse folder or is there a way to uninstall it?
Actually Eclipse does create some other files not within it's directory which survive deleting it's directory.
In Snow Leopard, look in your user's account under:
~/Library/Caches/org.eclipse.eclipse
~/Library/Preferences/org.eclipse.eclipse.plist
Not sure if you need to turn on viewing of hidden files to see those.
Under Lion I deleted the following files and folders:
eclipse in /Applications (obviously)
.eclipse in ~
.eclipse_keyring in ~
org.eclipse.eclipse in ~/Library/Caches
org.eclipse.eclipse.savedState in ~/Library/Saved Application State/
Some of them are hidden so you should delete them via Terminal.
Here is my list of things to delete for OSX Mountain Lion
~/.eclipse (folder);
~/Library/Saved Application/org.eclipse.eclipse.savedState;
~/Library/Preferences/org.eclipse.eclipse.plist;
~/Library/Caches/org.eclipse.eclipse;
... and of course the eclipse install folder
No need to uninstall anything, you can just delete the eclipse/ folder, but you should also use a fresh workspace or delete the workspace/.metadata folder.
In my case with High Sierra, apart from the eclipse folder, I deleted also:
~/.eclipse
~/.p2/pool/plugins/org.eclipse.*
~/.p2/pool/.eclipseextension/
~/.p2/org.eclipse.equinox.p2.repository/
~/.p2/org.eclipse.equinox.p2.engine/
~/.p2/org.eclipse.equinox.p2.core/
From terminal, find all eclipse directories with
sudo find / -iname "Eclipse"
Delete those directories with rm command.
Deleting the eclipse folder is equivalent to uninstalling it. In fact, if you don't want to tamper with the existing installation you can create another instance of eclipse and run from the new location.
Eclipse has no impact on Mac OS beyond it directory, so there is no problem uninstalling.
I think that What you are facing is the result of Eclipse switching the plugin distribution system recently. There are now two redundant and not very compatible means of installing plugins. It's a complete mess. You may be better off (if possible) installing a more recent version of Eclipse (maybe even the 3.5 milestones) as they seem to be more stable in that regard.
I know this thread is too old but recently I was wondering how to delete eclipse app on my MacBook Pro running macOS High Sierra.
Bellow are the steps which I followed to delete it from my system. Added screenshots for more clear understanding.
Open the eclipse app and it will show an app icon in dock. If it is not already present in dock then please try to run the app from Spotlight Search by pressing ⌘ + space.
Now right click on that eclipse logo from dock and click Show in Finder under Options.
It will open the location of the eclipse app in an external finder window.
You can just delete the entire root directory (i.e. - eclipse) by pressing ⌘ + delete.
Don't forget to delete the app from Trash as well if you are removing it from system completely.
Thanks. Hope this helped.
BTW. AppZapper is a great OSX tool for uninstalling apps and their preferences.
It sometimes comes a part of MacHeist
For BigSur, I did follow considering all the above.
Remove from Applications folder
rm -rf ~/.eclipse/
rm -rf ~/.p2/pool/
rm -rf ~/.p2/org.eclipse.equinox.p2.repository/
rm -rf ~/.p2/org.eclipse.equinox.p2.engine/
rm -rf ~/.p2/org.eclipse.equinox.p2.core/
rm -rf ~/Library/Caches/org.eclipse.platform.ide/
rm ~/Library/Preferences/org.eclipse.oomph.setup.installer.product.with-jre.restricted.plist
rm ~/Library/Preferences/org.eclipse.platform.ide.plist
rm -rf ~/Library/Saved\ Application\ State/org.eclipse.oomph.setup.installer.product.with-jre.restricted.savedState/
rm -rf ~/Library/Saved\ Application\ State/org.eclipse.platform.ide.savedState/
I just had a similar problem, with the GWT-PlugIn not showing up in the interface.
Deleting the eclipse folder did not solve it, GWT was still there!
Deleting workspace didn't work!
But deleting the .eclipse folder in the home directory did!
I'm working under WIndows 7 here, but it should be the same with OSX. But you may have to make the folder visible first. Under linux based system, folders starting with a dot are invisible by default.
This folder was probably the reason I had problems in the first place. If I remember right, I switched from basic Eclipse to EE, but didn't delete this folder.
In my opinion, an uninstall skript would do Eclipse quite good.
Just delete the eclipse folder wherever it is