How can i make my OS X application downloadable? - xcode

I want to download my Mac application from xCode so i can use it myself.
I have gone through all the tabs at the top of xCode but don't find annything.
How can i do that?

After your App is build, you can find it under Products. To find it:
righ+click on the .app file
choose Show in Finder

Related

Keeping 2 x Versions of Xcode on Mac

I was rooting around for the answer on StackOverflow to the question above, as I had recently updated to Mac Sierra and by doing so Xcode 7 updated to 8 automatically. I couldn't find the answer to what I wanted, so I decided to share my findings.
Of course I'm not quite ready to invest the time just yet in Swift 3.0 so I wanted to know how to keep two instances of Xcode on my machine for the time being.
Therefore below is how I went about doing this...
Login to Apple Developer Downloads and find Xcode 7.3.1 or equivalent version of what you want to maintain on your machine.
Download the file and double click on it to open the installer
DON'T drag it across to Applications just yet
Instead, open a Finder Window and drag it to Desktop/Downloads, to install it there
Control-click on the Xcode file to "Get Info"
Under Name & Extension, in the text field, change this from Xcode.app to Xcode7.app (or equivalent naming convention)
Drag this renamed file into Applications
Restart Mac
Open Xcode7 (or new & renamed application)
Voila! 2 x instances of Xcode on your Mac (Xcode proper & Xcode7)
I gather you should never open both apps at the same time. However here is a solution that really does help you if you are still currently developing in two apps or environments on different versions of Swift. Hope this helps.

Unable to update to Xcode 8

I would like to update to Xcode 8, but when I start the App Store it just shows me an Open button, but my existing Version is 7.3.1
The requirements should be El Capitan 10.11.5 - I have 10.11.6 installed.
Why is there no Update button?
Check if you have multiple installations of Xcode on your system. The App Store often gets confused and loads one you're not considering, such as the version on your back up drive. It's possible it has updated a different installation than the one it launches as well.
Executing the following command in a terminal window should list all installations of Xcode the App Store may find.
mdfind "kMDItemCFBundleIdentifier == 'com.apple.dt.Xcode'"
When you have Xcode open (from hitting Open in the store), right click the Xcode icon on your dock, select Options, and Show in Finder. Does the installation it shows match up with the one you expected it to launch?
If you specifically open each Xcode installation the mdfind command found, are any of them Xcode 8?
You can control which installation of Xcode the App Store will update. Check each of the app folders, and look for a Contents/_MASReceipt folder. Ensure the installation you want to update has that (and a receipt file inside that), and delete the _MASReceipt folder for all of the other versions.
Now the App Store app should update the correct installation for you.
All I had to do was restart my mac. Then, went to the App Store and saw "Update" instead of "Open".

Deploy a Swift OS X app locally?

I am not new to programming, but I am new to Swift. I have developed a small app that I have no intention of distributing, I just want to use it for myself. Everything works just as desired in XCode and now I want to deploy that app locally. How can I run my app on my machine without needing to have XCode also running? I just want to see my app in my Applications folder and run it when I want. Does XCode put build files somewhere that I can access them and use outside of XCode?
On the Product menu there is an Archive option. Select that to create an archive of your app.
Xcode should then automatically open the Organiser window with the archive of your app selected.
You'll see a big blue button called Upload to App Store on the right with two smaller buttons below it. The one you want is called Export... Press it and you'll get a pane giving you various export options with different kinds of signing.
The bottom option creates an unsigned .app file which you can put in your Applications directory.
NB As Eric D says, you can just drag the app out of the products directory, but unless you edit the scheme, that will give you a debug build with less optimisation and with asserts activated.
Update for Xcode 11.2
As Bell B. Cooper points out, the process has changed slightly. Now when you archive an app, you get a window listing the apps and a big blue "Distribute" button. Pressing this, gets you a dialog box giving you the various options. Which one you choose depends on what you want to do with the executable. With Catalina, unless it's just for your own use, you probably want to go for one of the options that involves signing the app.
Edit: while this answer still works, it targets old Xcode versions and uses the debug version of your executable. For recent Xcode versions, and for using the release version of your executable, see JeremyP's answer.
Each time you build an OS X application with the current scheme, Xcode automatically populates the "Products" folder with the related app bundle.
You can find this folder in the Project Navigator:
Xcode > Project Navigator > "Products" folder
Your .app is in there and ready to be used and/or copied to the /Applications folder.

xcode install cocoa project at launchpad

When I run my Mac OS X Cocoa project, Xcode says build succeeded and the application opens, but never appears as installed. When I go to launchpad I can't find the application. Seems it is only emulated. I need to watch how is shown in the launchpad with the icon and the title. How can I install the application from the xcode?
I have xcode 6.1.
Need help please.
Thanks in advance.
Only Apps inside of /Applications and ~/Applications are displayed in Launchpad. When you launch from Xcode the apps are copied to a temporary build directory. So you have to copy your app to the correct location.
If you only want the Debug version, because you want to test your app, you can simply locate the app bundle in Finder:
Open the Products group in Xcode, right click the .app file and select "Show in Finder". In Finder simply drag & drop the app into the Applications folder.
If you need the Release version you can archive the app. Select Product/Archive in the Xcode menu.
In the Organizer you choose Export, in the Export wizard you select "Export as Mac Application". You can directly save it into the Applications directory, or save it somewhere else and copy or move it into the Applications directory

How do you export your finished application from Xcode?

I feel silly for having to ask this. I've got an application to a point where I want to send someone a beta to test on their machine, but I don't know how to get Xcode to produce a .app file for me to send to them. Help?
This has changed in Xcode 4.
Now Apps can be exported from the "Organizer"
If you haven't already, you need to create an Archive.
On the menu go to Product -> Archive
Once you're in the Organizer - Archives screen click Share or Distribute... (Xcode 4.3.3 or newer)
Then choose the format you want to export.
the app is generally under your
project_dir/build/Debug/Name Of App
project_dir/build/Release/Name Of App
project_dir/build/Distribution/Name Of App
depending on which configuration of build you did or want to send.
On Xcode 13 you need to choose Product -> Destination -> Any iOS device (arm64).
Then afterwards you can run Product -> Archive.
to get to the .app application you have to go into the folder where you created it into build the your app will be there

Resources