Have I installed Xcode correctly? - xcode4.3

After years of custom in-house programming on AIX and Linux, I am completely new to OS X so I have a few ultra-naive questions that I am sure any Mac developer can answer.
I downloaded Xcode without specifying where it should be installed. The .dmg file showed up in my ~/Downloads directory, a disk image icon appeared on my desktop, and an ejectable device named Xcode showed up in Finder. I opened the desktop icon, saw an icon named Xcode.app, and dragged it to the dock. Clicking that opens the Xcode IDE and I can write and run programs there. Everything looks good so far but I just get the feeling that I have not installed Xcode in a standard way because:
1. The root directory of the machine does not contain the /Developer directory that I was expecting from what I have read.
2. There is no mention of Xcode in /Applications where I see OpenOffice.org.app, Safari.app, TextEdit.app, etc.
3. After a fresh login, when I start Xcode from the dock, an Xcode disk icon appears on the desktop, a folder containing nothing but Xcode.app gets opened, Xcode starts.
Question 1: Am I running Xcode straight out of its downloaded image?
Question 2: If it did get installed, where did it get extracted to?
Question 3: If not, how do I install it properly.
Question 4: How do I get Xcode to show up as an Application or in Launchpad?
Thank you,
Brian

You just need to do following steps to solve this problem :-
1) Whenever you click on xcode icon in the dock, it opens a new window containing xcode.app
2) Drag this xcode.app icon to the "Applications" folder of drive "OSX" on your MAC system.
3) It'll take some time to copy the xcode to the applications folder. Once it is done you'll never face the problem again in future.
Cheers!!!

Related

How to make my Extension start with XCode 8

I have created an XCode 8 Extension (For Deleting Lines, Like Sublime and Android Studio). I have code-signed it and it works as expected in the Gray Xcode Test thing.
I haven't seen a single instruction on how to get it to run with "Regular" XCode? What should I do to be able to use my extension whenever I start XCode?
After somehow getting this to work (once) by restarting my computer, I have finally found some working instructions on how to use an Extension with XCode 8. These are the steps:
Enable target signing for both the Application and the Source Code Extension using your developer ID.
Product > Archive.
Right click archive > Show in Finder.
Right click archive > Show Package Contents.
Open Products, Applications.
Drag "YourExtension".app to your Applications folder.
Go to System Preferences -> Extensions -> Xcode Source Editor and enable this extension.
Restart XCode if necessary

ConnectionKit app not opening on other Computers

I created a Mac app that uses ConnectionKit to connect to a server using FTP. Today I went to export the file and use it on another computer only to find that the app does not open entirely on a different computer.
On the development computer, the app functions completely, but on another computer, it opens, the icon stops bouncing in the dock, and the name of the app is shown in the menu bar, but the first view controller and window are never opened.
The menu is also not visible. It just shows the app title and nothing else.
I assume that this has to do with ConnectionKit, but I checked the package contents of the exported bundle and ConnectionKit is in there under Frameworks.
Here are the steps I took to include it.
I downloaded ConnectionKit using git clone
I downloaded each git submodule using git submodule update --recursive --init
I dragged the ConnectionKit.xcodeproj file to my Frameworks directory in the project explorer
I added ConnectionKit from the workspace into the "Link Binary with Libraries" section
I added a new "Copy Files" build phase.
I changed the destination to "Frameworks"
I added the ConnectionKit.framework from the Products of the ConnectionKit.xcodeproj to the copy files phase.
The build phases tab looks like this:
This doesn't seem to work. The application just sits there and doesn't launch the app on any computer other than the development computer.
What am I doing wrong here?
You need to run the app in Xcode under the debugger on one of these other computers. It sounds very likely that you are getting a raise at launch. Seeing the raise in the debugger would doubtless shed light on the cause, which might or might not even have anything to do with ConnectionKit. :-> You could also look at the console logs generated by your app, in Console.app (in Applications/Utilities/), but actually getting the raise in the debugger is generally more useful unless the problem is something very obvious.

Objective-c mac application - images not displaying on other computers

I recently made a mac application using objective-c in xcode, and it works fine on my computer (archiving it as an application through Xcode). But when I move it over to another computer via USB (I moved the .pkg file that I generated through Xcode - this usually works fine) the images do not display.
I checked, and when I right clicked to show the package contents of the application, the correct images were there, with the correct names. I also checked and in the Build Phases page in Xcode, the images were there correctly in the Copy Bundle Resources.
Is this a permission issue? Or is it not recognising the files for some reason?
Just to clarify, this worked on the computer I compiled it on, without extra files. All the images necessary are in the package.
Also, the application was not frozen or lagging in any way I could see or notice, so I do not think it was because of a slow processor.
If this helps, the mac it worked on was a 2013 Macbook Air running OSX 10.9, and the mac where the images did not display was a 2010 iMac running OSX 10.8. The application is able to run on OSX 10.8 normally (The Deployment Target is 10.8).
When I open it on the iMac, the application just shows with the default gray background without any images, only text, buttons etc. (I am using a textured window with:
[NSColor colorWithPatternImage:[NSImage imageNamed:#"backgroundImage.jpg"]]
to have the image, as well as image wells).
Also, I am not sure if this is significant, but I went onto Activity Monitor whilst the application was running without images, and I could not see my application on the list, even with a search. (I don't have too much experience with this, so not sure if this is normal)
Thank you, any help would be appreciated.

Cannot Install Squeak and Pharo Smalltalk on Mac OS X 10.9

I cannot manage to install Squeak and Pharo Smalltalk on Mac OS X 10.9.
as general a smalltalk system is composed of three elements; a VM, an image(if any changes to image then a changes file), and a sources file.
on squeak page
I have downloaded all in one linked file, but it does to include an .image or .sources. it includes a .app. on the page this is mentioned to be the VM on mac, and it is mentioned to include all files one require. anyway double clicking does not launch smalltalk.
on pharo page
similar promise but does not launch again. it says download that file it includes everything necessary and just run the executable. but it includes .image .changes and .sources files in sub directory of /Pharo2.0.app/Contents/Resources.
Am I doing something wrong?
UPDATE:
for squeak I have also found the .image .change and .sources files in some sub directory of the all-in-one. Should i, both for pharo and squeak, move these files to the same directory with the .app file.
UPDATE:
i have tried so. no change.
UPDATE:
because it is not signed upon first launch i modify settings to launch it authorizing as admin user one time. no problem with that.
The first time you run the Squeak all-in-one, you need to right-click the app and choose "open". Then you will get a dialog that let's you run it. If you just double-click you get the same warning dialog, but without the option to run it.
This is because the Squeak app is not signed with an Apple developer key.
You also can to change the run permission in System Preferences (Security Preferences), from "Map App Store" to "Anywhere".
The problem emerged from the fact that the application I had downloaded from Squeak or Pharo websites were not executable in my computer.
Issuing a change mod add executable command from terminal solves the problem for each one.
chmod +x /path/to/smalltalk/squeak/or/pharo/apps

XCode Project not saving all my files?

Alright. This is utterly puzzling.
I am developing a game project with Xcode 4.1.
The project files are always with me in an USB stick, because I am constantly developing the project on many different Macs.
So I come to a workstation, paste a copy of the project in the USB stick to the desktop, and start working on that copy. When I am done developing, I delete the project in the USB stick, and then copy the one in the workstation's desktop back to the USB stick.
For some reason, my file GameData.h and GameData.m are not properly updated. But everything else in the project is. Basically, I made some edits to GameData, and when I got back home, I noticed that GameData is not the same as the one I was editing a while back. In fact, it only has code I wrote yesterday.
What could be wrong? Why is that file the only thing that never gets copied properly?
Check to make sure your GameData.m/.h files are where you think they are. Select one of them in the navigator tree, right click, select Show in Finder. Examine the file it points to - is it in the same directory as it's project peers, does it have correct (writable) permissions, is it an alias to another file, etc.?
Sometimes you can get into trouble (usually with libs) by adding them to the project, but not checking the box that says "copy into destination group's folder if necessary". In this case, XCode tries to find the file in that other directory (which may not be on all of your Mac machines) rather than the directory where all the other project files are.
I have noticed that occasionally xCode either fails to save a file or fails to rebuild after a file has been changed. It seems to happen on some projects and not others (I've noticed it mostly on a desktop app, but never on phone apps). I have no idea why this happens.