Debugging an IOS App on a Device - ios

Is there any up-to-date, step-by-step instructions for running an IOS APP on a device?
For example, in these instructions, I have made it through step 3.
http://code.tutsplus.com/tutorials/how-to-test-your-app-on-an-ios-device--mobile-13861
At step for, it says to click "Use For Development"
When I have my device connected, there is no "Use for Development" button on that screen.

If you are looking for "Use for Development".
connect your device.
Open X-Code.
select Window menu and choose Organizer.
4.Select Devices.
Your device would be listed on the left tab.
Select the device.
Use should find the use for development button in the details pane (right pane) along with other details about device.
If everything is good ,you would have a green light indicator. Else there would be a red/yellow indicator besides your device name in left pane. When you select the device, the issue would be displayed in the right pane.

Related

Installing apps on my own device through Xcode

I’m quite new to Xcode and I’m only interested in making apps as a hobby. I would like to install my own apps that I make on my own devices without using the App Store (without paying the £99/year developer fee). So I would like to know the following:
How can I install an app through Xcode so that the app remains on my iPhone after disconnecting it from my Mac?
How long will the app remain on my iPhone i.e. how long until I have to manually reinstall it? (I’ve seen some websites that say 7 days and some that say 1 year)
This is something else really but am I right in thinking to use the TestFlight app I’d need to pay the £99/year developer fee?
If it helps all my devices are running the latest software versions.
Yes, you can use your own device for testing purposes and it will remain on your phone after you disconnect it.
To set this up, connect your device to your Mac. Then, click the simulator selection dropdown in the top left of Xcode. It might say Generic iOS Device if you haven't selected a simulator since opening Xcode. At the bottom of that dropdown menu, you should see a button that says Add additional simulators...
At the top of the window that comes up after you click Add additional simulators.. there should be a Devices tab. Select that tab and add your device via the + icon in the bottom left of the window. Once connected and paired, you can travel back to the simulator dropdown menu and scroll up. Your device should be listed there if it's plugged in and paired. Select the device and run your app - Xcode will take care of installation.
Without purchasing the Apple Developer Program, your app will function on your phone for one week after the most recent run.
Yes, you are correct. TestFlight is something that comes with the Apple Developer Program.

Itunes connect device famly, only submit for iphone

I want my app to only support iphone/ipod. Yet for some reason itunes connect still thinks I'm submitting for Ipad as well. If you noticed below I have my device family set properly to 1 for Iphone/ipod.
Whats up here? Am I missing a setting in xcode?
Can you please share your deployment target screen?
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html
To set the target devices
In the project navigator, select the project and your target to display the project editor.
Click General and, if necessary, click the disclosure triangle next to Deployment Info to reveal the settings.
From the Devices pop-up menu, choose iPhone, iPad, or Universal (to target both families).

Simulators vanished from Xcode

I just reopened Xcode and now I only see 6s simulators. All the others have just disappeared. How do I add them back ?
EDIT :
Silly me ,I missed that the scheme and target somehow changed to Apple Watch and I didn't notice. Should I delete this question :P .
Open Xcode, click on 'Xcode' in top left of the screen, select 'Preferences...', once a separate window opens up click on the 2nd last tab called 'Downloads'. Inside, check the installed components.
If you deleted any previously installed simulators, then you should be able to re-download them here.
check whether simulators are installed or not by preferences section in xcode. Or it might just be glitch. Restart your computer and Xcode
Just go to Xcode -> window -> devices
follow this steps
1)
2) select the devices options, you will be able to see this screen
3) click on add button. and add the simulator you want like this

Apple Watch App Image Control

I have just downloaded Xcode 6.2 (Beta) and tried my first app on Apple Watch. I have tested the app successfully by putting a simple static label and ran the app perfectly. However, when I am trying to put an Image control on the Interface Controller, it shows up onn the storyboard but not when the app is launched in the Apple Watch Simulator.
Here is what storyboard shows
But this is what happens when I run the app
I am not an expert not even intermediate level iPhone developer but just a learner, so may be I am missing some thing basic.
Any help will be appreciated.
Thanks
Select the image file in XCode
Open Utilities View in XCode (The right most icon in the screenshot below)
Select you watch app target check box under "Target Membership"
heading.

iOS device UDID

I need to add an iOS device to iTunes connect for develop and testing - the registration of a new device requires a UUID.
Where can I find an iOS device UUID/id?
As of macOS Catalina (macOS 10.15), iTunes isn't available. But you can get the UDID using Finder. Connect your iOS device to your computer and open Finder. You should see your iOS device listed under Locations on the left side of the Finder window. Select your iOS device. Details about your device will appear on the right side of the Finder window. At the top will be an icon of your device showing your device's name (such as "Bob's iPhone 11"). Under that will be type of device, disk size and available space, and your battery level. Tapping on the line with the batter level a few times will cycle through other details about the iOS device. One of these will include the UDID. Once displayed you can right-click on the UDID and select Copy to copy the serial number and UDID to the pasteboard.
For those with Xcode, you can get the device's UDID from the Devices and Simulators window. Select the Devices tab on that window. Select the iOS device on the left side under Connected. In the detail pane on the right you will see Identifier: followed by the UDID. Right-click on the UDID to copy it to the pasteboard or share it in some desired fashion.
Old answer for those still using iTunes
Connect your iPhone to your computer and open iTunes. Select your device in iTunes so you can see the serial number. Click on the serial number. The UDID will take its place. You can copy & paste the UDID that's displayed on the screen.
If one of these tutorials don't do it for you, then nothing will!
http://whatsmyudid.com // For old iTunes versions
or use this - http://get.udid.io // For new iTunes versions
or use this - Working https://udidiphone.com for UDID, IMEI, Serial Number, OS Version, Build Number
If nothing is showing up in iTunes, you have to open up Xcode, go to the devices list (Window -> Devices and Simulators) and then click on the devices tab. Under devices, select your device in the left sidebar and it will show your udid in the main window. You can also just click use for development and it will register your device for you.

Resources