Monday 10 December 2012

How to get .app file of a xcode application

Hi i have created a xcode project. Now i want to give .app file to my friend to use that application. From where i get this file. How to install this .app file in his Applications folder using installer package?
share|edit|flag

48% accept rate

 
 
Thanks. But where is the accept mark? – Shakti Dec 31 '09 at 10:36

4 Answers

Build a release version, and the .app file is under build/Release folder of your project. Just copy it to Applications folder of your friend's machine. I don't think you need to build a installer.
share|edit|flag

 
 
i need to install some supporting components with that .app file. Thats why i have created installer package. but that install every thing except .app file. How to install that .app file? I got that accetpted mark. – Shakti Dec 31 '09 at 10:40
2
 
This answer is no longer correct for Xcode 4. – Nelson Feb 16 at 2:09
2
 
@Nelson this begs the question... what is the correct answer in Xcode 4? – Greg Apr 2 at 21:44
The application will appear in your projects Build directory. In the source pane on the left of the Xcode window you should see a section called 'Products'. Listed under there will be your application name. If you right-click on this you can select 'Reveal in Finder' to be taken to the application in the Finder. You can send this to your friend directly and he can just copy it into his Applications folder. Most applications do not require an installer package on Mac OS X.
share|edit|flag


You can find the .app file here:
~/Library/Developer/Xcode/DerivedData/{app name}/Build/Products/Deployment/
(credit for path goes to http://stackoverflow.com/a/9673810/1208218 )
SIDENOTE: I had a lot of fun trying to get this into my iPad after that. It worked however. Using Snow Leopard + Xcode 4.2 + iPad with IOS 5.1.1 :) - I used the iPhone configuration utility to get the app into the ipad (you have to add the app, then click on the device, then click "install" behind the app you just added in the "application library" of iphone configuration utility) and had to create a Distribution Provisioning Profile (https://developer.apple.com/ios/manage/provisioningprofiles/viewDistributionProfiles.action) and get the WWDR certificate (https://developer.apple.com/ios/manage/certificates/team/distribute.action) and finally change the build settings in Xcode after all the certificates were in place (http://developer.apple.com/library/ios/#technotes/tn2250/_index.html#//a) - but after much fun I am now looking at my first app on my iPad :) - btw, for getting apps into the app store you need to create a app store Distribution Provisioning Profile, while for ad hoc installs like these you create an ad hoc one. There is a bit more to it, but I think these are the most important and tricky steps. Enjoy.
PS. Just remembered that you also have to set the build type (top left of xcode) to "iOS device", otherwise it will never sign your application. So the path name above only has limited value: yes, it will have the .app file in it, but no you can't upload it (at least not using the iphone configuration utility) since it is not code signed - you will get an "Could not copy validate signature" error. So change it to "iOS device" and build (remember to select the right certificates in the build section of xcode as per the url info above). In that same build section, you can also set the "Installation Build Products Location" to a different path, so that you can determine where the .app (the one that is properly code signed) ends up.
share|edit|flag


Under Xcode 4.5.2, you can find the .app file in this way:
  1. Select Window > Organizer in the Xcode's menu(or just press 'Shift+Command+2')
  2. Select your project on the left side of Organizer, and you will find the Derived Data path on the right side. Just click the mini arrow in the end of the path, this will open Finder at the path.
  3. In the Finder, click "Build > Products > Release", you will find the .app.

No comments:

Post a Comment