Create an execution file from Xcode mac project - objective-c

I had created a mac app in Xcode, and i would like to create a file out of it , so that it will be a regular program on my mac, which i can run on startup , and send to other people.
I don't know if it has to be a .dmg , , or something else.
I have tried this link to do that, but the dmg is just a file that when i open, shows me the Xcode project and not run the app as like any other mac app :
Creating a .DMG (dbf answer and marc answer)
How do you create an app? a regular mac app from Xcode project ??
How do enable it to be open at startup as like any other app ?
EDIT
I can see lots of people just taking the .app from Xcode, to use as the desktop app . but for me, when i click this file .app . nothing is happens, (it open and than closed)
Thanks.

Open your project in Xcode.
In the "Products" folder on the left-hand side of the Xcode window, select .app
In the "Product" menu, select "Archive."
When Xcode has finished building your project, the Archive window will open.
On the right, near the top is an "Export..." button. Click it.
You have several options for creating your Archive. The last one is: Export as a Mac Application. That option will simply save your project as an ordinary Mac application. Click it.
You'll then be presented with a dialog in which you can select the destination folder for your application. Choose where you want your application saved, and click "Export."
In the "Finder" go to the same folder you just selected and your application will be there.
~~
To make your application open when you log into your account on your computer, open "System Preferences," select "Users & Groups," select the "Login Items" tab, click on the "+" button, find your application, click on the "Add" button.

Related

Xcode 8 iOS 10 archiving/uploading to TestFlight takes very long

Since I updated to XCode 8, it takes a long time archiving/uploading an app to TestFlight. While preparing archive (right after I press "Upload to Appstore"and select the appropriate Apple account), it starts Codesigning all the frameworks included in the project (I am using Cocoapods).
Any help would be highly appreciated as I am managing around 10 different accounts and it wastes a lot of time.
You can use this method to create ipa file,
right click your Archive and select show in finder
Again right click on resulted file in finder and select show package content
from result open product folder --> Application folder --> and select ".app" file
Simply add this .app file under apps of iTunes software on mac
After completing adding process right click on app icon in iTunes and show in finder which will give you iPA file.

How to disable the target for application extension when building in xcode?

I am looking a way to disable today extension target to decrease build time everytime while developing for application target.
In order to disable building/running the NSExtension you build, you should:
Click the project file in the project navigator
Click the containing app target (the one you DO want to run)
Click Build Phases tab
Open Target Dependencies or Embed App Extensions
Remove the extension (the one you DON'T want to run)
To bring it back, simply click the + sign in the same place and re-add it.
In Xcode 9 the Extension was stil visible in the Widget List of the phone.
In order to hide totally it I had to remove it from "Embed App Extensions".
The procedure is similar to the one described by nurxyz:
Click the project file in the project navigator
Click the containing app target (the one you DO want to run)
Click Build Phases tab
Open Embed App Extensions
Remove the extension (the one you DON'T want to run)

iPhone - Can not find my application

I have a super weird issue. I'm developing an iOS-app and just recently I noticed that I can not find my app on my iPhone. It shows up in the list when searching for the app and when I try to build my app on Xcode it fails because of my app's Core Data model is different from the one I'm building in Xcode. So I need do delete my app from my iPhone but it's hard when I can't find the actual app at all.
I've tried restarting my iPhone to no avail and I have also browsed every screen in the springboard to find my app but it is just not there.
Xcode 4.5 and iOS 6.0.1
On iOS 6, when you search for an app in Springboard (the launcher), it shows the name of the folder containing the app (if the app is in a folder). That might help you find it.
But if you've installed the app using Xcode, there's an easier way to delete it. Choose Window > Organizer from the menu bar, then click the Devices tab in the Organizer window. Find your device in the list of devices and click the “Applications” row under your device. The Organizer will show you a list of all the apps you have installed on the device using Xcode. You can click on an app in the list, then press the delete key on your keyboard, or click the Delete button at the bottom of the window, to remove the app from the device.

Where is the .app program? (Mac OS X and iOS)

I'm trying to find the .app file in my project folders but I can't find it. As I remember it was just to go into the build folder in the project folder and the .app file should be there but now I don't have a build folder in those app.
Thank you in advance!
In Xcode: expand Products then, right click on your app and from the menu click on Show on Finder or Reveal on Finder.
In Xcode 4, build products are stored by default in:
~/Library/Developer/Xcode/DerivedData/AppName-lotsofrandomchars/Build/Products/
If you've upgraded to Xcode 4, things have changed. Click Product/Archive to build a release version of your app, then Window/Organizer, and select the Archives pane. Select the archive you just built, then click the "share" button towards the top right.

How to put xcode in my /applications folder, preferably in a /developer sub-folder

Not sure why, but currently the only way I can access xcode is by going into finder and typing 'xcode'.
How can I link xcode from my applications folder, and pref. put it into a 'developer' sub-folder.
(new'ish to mac)
Xcode is installed in /Developer/Applications/, just open it using spotlight and when the icon is in the dock, right click and select Keep in dock.
Find xcode in spotlight.
press command+enter to open it in a Finder window
drag the icon to the dock
or drag it to another folder while
pressing command+alt (to create a
link/alias)