How to test App on a real iphone using Xcode 6? - ios

As Xcode 6 is quite new, and the layout is a bit different from Xcode 5. I have no idea how to test my App on a real iphone using Xcode 6. I want to test my App on my iPhone 5s. I have joined the developer programme. Are there any step by step tutorials? Thank you.

If the above description doesn't work,
Just start XCode 6
Connect your iPhone 5S
Select "Devices" in the Window menu
Select your iPhone 5S on the left side under "Devices"
Press on "Use Device for development"
From this point on, you should be able to select your iPhone 5 as destination for the build.
XCode 6 has the Organizer split into "Organizer" and "Devices" so maybe you are just missing the "Devices" screen.

After xCode5 this process is more easier. Plug your device, run you project with the device selected
xcode will automatically created a provision profile for you.
You need first to associate your apple account with xcode
xCode->Preferences->Accounts

Just connect your phone to your mac with the USB cable, and then select your device like this:

Related

How to set default simulator device in Xcode 10 which is used for new projects [duplicate]

I've been making a ton of new projects as I'm learning Swift. My development is all on my laptop, so I hate using the default 6s Plus simulator, since the window is too big to easily see. Is there a way to change the default simulator to be a different one for new projects?
No need to delete simulators!
Product → Destination → Add Additional Simulators...
In the sidebar, select the simulator you want to hide
Uncheck "Show as run destination"
Edit: Updated for Xcode 10
You can select the desired simulator via the Hardware > Device > [OS] menu (Xcode 9):
While unchecking "Show as run destination" hides the simulator, this will also change the default value.
Updated image for Xcode 11.5
Xcode 9 UPDATE:
In Xcode 9, no need to delete simulators, and the way to turn them on/off is to go in Product/Destination/Add Additional Simulators... select the simulator you want to turn off, then uncheck the box: 'Show as run destination'
No. But...
If you don't like the size of the 6s plus simulator, make it smaller with the simulator Window Scale menu.
If you don't like the 6s plus simulator at all, delete it with the Xcode Window Devices menu.
Xcode 12.5
In Xcode, go to Product -> Destination -> Choose Destination menu and selecting the device you'd like to be your default.
The original answer could be found in apple support forum here: Apple support forum,
In addition if you want to make the device smaller just hover over bottom right corner of the simulator and you will see the resize option
Deleting the simulators you don't want will default you to the simulator you do want. I also develop on my laptop and the biggest simulator I can see w/o scaling down is the 4S, so I deleted simulators for iPhone 5 and above and now every project I create defaults to 4S simulator. If I ever need the newer simulators, I will just re-download.
In my case, just select the device in Product → Destination, Xcode 12.4
Xcode version 11.5
On Simulator > File > Open Device > iOS 13.5 > Change the default Simulator
Xcode(v11.5)
open your simulator, choose **File/Open Device/iOS 13.5/iPhone8 ** will change your simulator device to iPhone 8.
When you reopen your simulator, iPhone 8 will be your device simulator.

Xcode doesn't show the iphone simulators as the destination

I put my ios deployment target as 7.1 and when i uploaded my game to itunes connect, it said i need 3.5 screenshots and I only have an iphone 5 so I have to use the simulator but when I tried to change the scheme it doesn't show up the simulator options. Why does this happen? Thanks
Delete Derived Data and restart Xcode.
1) Open Terminal
2) rm -rf ~/Library/Developer/Xcode/DerivedData
3) Restart Xcode
You have to add screenshot for 3.5" because ios7.1 is also for iphone4s which have 3.5" screen.
You can find simulator at,
open simulator -> Hardware Menu -> Device -> Manage Device
In Manage device you can add simulator by clicking on '+' button which is at bottom left corner of the screen.
If you don't find the simulator here then you have to download from
xcode->preferences->downloads options
I think you are missing one little thing:
To choose your building/running destiny.
When your real iOS Device is selected it looks like:
1 - Click on your iOS Device Name to select which device you want to simulate (iPhone 4S - 3,5 inch)
2 - Build/Run your project and your app will appear on the simulator you choosed.

Xcode Beta 6 with iOS 8.0

When I connect my iPad with iOS 8.0 to xcode beta 6, I can't find the "Use For Development" button that usually appears when selecting your iPad in the "Devices" window. I reset and wiped my iPad so now I need to set it up again for development use. Anyone know how to do this in the new xcode?
I've seen some buggy things going on with Xcode betas (no surprise). Try unplugging the iPad, restart Xcode, and plug it back in. I would even go as far as a reboot to your machine.

New ios7 update & xcode 5 no device found

I just updated my iPhone4s to ios7 and xcode to 5.
I am trying to run my app on the iphone which worked for 6.1.x and 4.xx. However,
after the update xcode claims not to find my connected iphone testing my app.
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination?
Window -> Organizer.
Click on device tab.
Click on the iOS device on the left side and click the button 'Use for development'.
Check in Organizer if device is used for development or has lost this property on xcode actualization.
check the organizer like Rauru Ferro said. It might need some time to update the settings in Xcode. You should see a progress bar loading, after that everything should work fine.

Setting the Destination to iOS Device in Xcode 4.2

Yet, I have Xcode 4.2 open and my source code.
In the top left scheme dropdown, I have the scheme set but on the right hand side of that dropdown, its got my device set there.
I don't want my device set there because I'm not testing anymore.
I want to build/archive for distribution.
I want to see iOS Device in that target but I don't see it there.
Any idea how I can get iOS Device to be listed in that destination dropdown?
Currently, it has ipad and iPhone simulators and my own iPhone name.
Just select your iPhone name and go to Product -> Archive.
Or unplug all your iOS devices and then there will be shown iOS Device label.

Resources