How do I access my iPhone 4's UDID? - udid

I have just bought an iPhone 4 for development.
Unfortunately, I forgot to register my phone to my development account before I tried installing the iOS 4.3 beta 2 software.
Now I can't restore my iPhone because I haven't got my UDID in my developer account, and I cannot get the UDID in iTunes because my phone is stuck in recovery mode.
Does anyone know how to restore my phone, or how to get the UDID into the developer account so it can be restored?
Thank you

Try this online service — http://get.udid.io
You should open the site on your mobile, tap the button and follow instructions, I've been described in my blog. It's easy as taping "Next" every time. Hope it helps.

You should be able to just click "Restore" in recovery mode in iTunes and it'll restore the current 4.2.1 firmware.
Perhaps you need to put it in DFU mode first.

Can't you downgrade the firmware by downloading the older version from the internet and hold shift and click restore and select the firmware file?

Related

Xamarin.iOS on macincloud development and automatic provisioning setup

I'm trying to develop a cross-platform app using xamarin forms and mac-in-cloud. Specifically with ios, I'm trying to set-up automatic provisioning since I originally got the error when debugging: >Could not find any available provisioning profile for (app name).iOS on iOS
So, after researching into the issue I put my apple developer acct info in, and when trying to use automatic provisioning. I get an error under Team: >There were errors in the data supplied. Please correct and re-submit. There are no current IOS devices on this team matching the provided device IDs.
Now, following the research rabbit hole, I go to the apple developer portal, try and register device, select macOS, insert Hardware UUID of mac mini into device ID, so on. And no change to error(s).
Question time, am I setting it up completely wrong? Other (older) articles/forums suggest linking an ios device via itunes, however, that seems counterproductive to my objective. Anyways, any help would be greatly appreciated. Apologies for any naiveté.
What are you trying to develop with the mac? Is it a iOS (iPhone) app? If so you can just use the simulator on the mac, and the mac does not need to be registered.
Try manual provisioning in VS
Signing Identity > Development (your name)
Provisioning profile > probably will be vs (something)
Also in VS go to Preferences > Apple Developer Accounts > make sure your account is listed. Then on the right hand side, click 'View Details' then 'Download all profiles'
Restarting VS or the mac may also help.

Trouble pairing Apple TV with Xcode

When trying to pair Xcode with my Apple TV it says
This device has been ignored in the devices panel.
I cannot continue development properly until this issue has been solved, however I cannot find an un-ignore button. Please help me, thank you!
Running the terminal command as described in other answers didn't work for me and the device kept being ignored whenever I re-opened Xcode.
My solution was to open Apple Configurator and go to Paired Devices on the About menu. From the window that appears hit the X to remove all the devices (I had the same device listed 6 times).
Then close Apple Configurator, launch Xcode and the Apple TV paired.
My setup was Xcode 13.4.1 / Apple 4K 2nd Gen / tvOS 15.5.1 / Apple Configuration 2.15.1
2022
While Window > Devices and Simulators is open on the Xcode, go to the upper menu with the back button on your remote and re-enter the Remote App and Devices menu to try to go back again. Try a few times. It'll show your device on the Xcode's Device window. Then click the "Pair" for the device. You’ll see a screen asking you to enter the six-digit code displayed on your Apple TV; enter the code to the Xcode's Device window. And wait for it. For a while device and Xcode will work for Preparing debugger support for your device. Keep your Mac device and Apple TV close until it's done.
Hope this will help someone.
Best.
I think I found the solution. I did a number of things so here are all of them, but the most important one is step 5:
Go to main menu in Apple TV
Quit Xcode
Go to the command line and type
defaults read com.apple.dt.Xcode.plist DVTIgnoredDevices
You should be able to see the AppleTV in question listed there.
NOTE: This will clear all of your ignored devices
. Still in the command line, type
defaults delete com.apple.dt.Xcode.plist DVTIgnoredDevices
Go to the Devices and Simulators window
On command line, type
defaults read com.apple.dt.Xcode.plist DVTIgnoredDevices
You should see something like "does not exist"
You should be able to pair the AppleTV now
2022
After testing some solutions and having no luck, try the next:
Restart the router
It's working now.
Try it.
I had exactly the same issue:
My solution was:
Remove everything from the ATV
perform the delete command from above
Reboot everything!
Try the pairing again
This did it for me.
For some reason, don't ask me why
Make sure you've enabled the "Show as run destination" option.
i tried all the solutions mentioned here - non helped, eventually i:
selected "Forget Device" from the apple tv
restarted the apple tv
closed the XCode
restarted mac
paired again and that worked
sometimes when you press |Pair| button in the Devices & Simulators window, after you key in the numbers, the screen will go back to "Pair" mode,
in order to bypass this issue, after pairing i restart the xcode (without unpairing or forget the device), and the device shows up as connected
I was having the same issue and none of the solutions above worked. Then I noticed that universal clipboard between my iPhone and Mac was also not working.
The solution for that was to toggle Bluetooth and Wi-Fi on/off on both Mac and iPhone (I have a feeling that it was more the toggle on Mac that helped).
Anyway, by fixing that issue, my AppleTV showed up paired and ready to use in Xcode (din't even have to re-pair).

Xcode No Devices Registered Error

My macbook registered to my apple account which is I'm using on Xcode. Im taking 'no devices registered' warning. How can i fix it ?
Plug in your own device to your mac, then on Xcode change the simulator to the device you just plugged in, the issue shall be gone.
Change the simulator back to whatever you want if you don't want to work with your own device.
Select Organiser from XCode. Now under Devices, select your device. If it is not ready for development then click use for development.
If above doesn't solve your problem then from your project settings, set deployment target to one which your app is developed for or lesser.
Otherwise there is some issue with certificates and provisioning profiles. Make sure your device's UDID is added in the provisioning profile you are using.
This is a bug even in Xcode 9 beta. May be not a bug. When you are trying to get back to a previous version, e.g. the GA version, you might not see any simulators.
For me it was caused by updating the iOS develoyment target to version 11. Once I switched back the target to 10.3 the simulator devices reappeared.
Also the beta might have edited the “Swift Language Version” (SWIFT_VERSION). It is also required to be configured correctly. Back from version 4.0.

Install IPA with iTunes 12

I have an IPA signed for ad-hoc distribution. I can install it fine with Flash Builder. I'd like to install a release version via iTunes 12, though. Dragging it onto:
The device name
The app section
The app list
The Home Screens section
...does not work? Does anyone have any idea how to do this with the new iTunes 12?
Note : If you are using iTunes 12.7.0 or above then use Solution 2 else use Solution 1. Solution 1 cannot be used with iTunes 12.7.0 or above since Apps section has been removed from iTunes by Apple
Solution 1 : Using iTunes 12.7 below
Tested on iTunes 12 with Mac OS X (Yosemite) 10.10.3
Also, tested on iTunes 12.3.2.35 with Mac OX X (El Capitan) 10.11.3
This process also applicable for iTunes 12.5.5 with Mac OS X (macOS Sierra) 10.12.3.
You can install IPA file using iTunes 12.x onto device using below steps :
Drag-and-drop IPA file into 'Apps' tab of iTunes BEFORE you connect the device.
Connect your device
Select your device on iTunes
Select 'Apps' tab
Search app that you want to install
Click on 'Install' button. This will change to 'Will Install'
Click on 'Apply' button on right corner. This will initiate process of app installation. You can see status on top of iTunes as well as app on device.
You can allow new apps to install automatically by enabling checkmark present at bottom.
Solution 2 : Using iTunes 12.7 and above
You can use diawi for this purpose.
Open https://www.diawi.com/ in desktop/system browser
Drag-and-drop IPA file in empty window. Make sure that last check mark are unselected (recommended due to security concern)
Once the upload is completed then press Send button
This will generate a link and QR code as well. (You can share this link and QR code with Client)
Now open Safari browser in iPhone device and enter this link (Note that link is case-sensitive) OR You can scan the QR using Bakodo iOS app
Once link is loaded you can see app details
Now select ‘Install application’
This will prompt an alert asking permission for installation. Press on Install.
Now you can see the app installation begins on screen.
iTunes 12.7 ( Xcode needed )
You cannot install a release ipa directly on your device. Ipa generated withAppStore Distribution Profile requires to be distributed from App Store or TestFlight. However, I found that app panel was removed even for installing ad hoc ipa from iTunes 12.7. I found a workaround to install ad-hoc apps which might help to them who cannot install even ad hoc ipa. Please follow the instructions below,
Connect your device
Open Xcode and go to Window -> Devices
Select the connected device from left panel
Brows the IPA from Installed Apps -> + button
Wait few seconds and its done!
From iTunes 12.7 apple removes App Store, So we unable to for find App option
We have another way to install iOS app using iTunes 12.7 as below
1)drag and drop your .app file to iTunes.
2)It will create .ipa file, you can find that at ~/Music/iTunes/iTunes Media/Mobile Applications/
3)connect the device you want to install that app.
4)drag .ipa file from finder to iTunes on my Device section as shown in below section.
I don't remember this being very difficult with iTunes 12, but at least for iTunes 12.8 (and likely for the previous couple of minor versions also) it's pretty straightforward even though the Apps button is not there, as demonstrated in the below two steps:
While your device is connected to your laptop/desktop click the device icon on iTunes 12.8:
Drag your .ipa file from Finder or Desktop and drop it into the "On My Device" area.
Wait for the sync to finish and the app is on your device!
For newest iTunes 12.7 and above can easily install IPA by copy and paste
Select and copy your .ipa (cmd+c or ctrl+c)
Connect phone to laptop
Open iTunes and select your device tab on top left of iTunes
Select the music tab
Paste the ipa (cmd+v or ctrl+v) not drag
In my case Drag & Drop didn't work.
I had to first Sync iTunes with the iOS device (Sync button on the bottom right)
I had to add the IPA file through iTunes menu bar: File -> Add to Library...
I had to press the "Install" button for my app in the "Apps" screen
I had to press the "Apply" button on the bottom right
Edit: See Jayprakash Dubey's answer for iTunes 12.7
From the menu shown in the following screenshot, choose Apps. You can drag and drop you IPA file in the next view.
After that, go to your device's page, you'll see the list of apps, install your app and press Apply from the bottom bar.
Tested on iTunes 12.5.3.17
1.Open the iTunes select the “Apps” section with in that select the “Library”
2.Now drag and drop the file AppName.ipa in this Library section (Before connecting your iOS device to your computer machine)
3.Now connect your iOS device to your computer machine, we are able to see our device in iTunes…
4.Select your device go to “Apps” section of your device and search your App in the list of apps with "Install" button infront of it.
5.Now hit the “Install” button and then press the “Done” button in bottom right corner, The “Install” button will turn in to “Will Install” one alert will be shown to you with two options “Don’t Apply”, “Apply”, hit on option “Apply”.
6.The “App installation” will start on your device with progress….
7.Finally the app will be installed on your iOS device and you will be able to use it…
IPA file are generally executable file for iOS app.
Approach used to install IPA in iTunes 12 is different as compared to lower versions.
Simply, add IPA file into iTunes library and search for IPA in apps section of connected device.
Click on install and Apply.
I found a solution for Windows users. All the other solutions i tried didn't work for Windows.
I have been searching about the same problem for a few days. iTunes make obligation to update itself to iTunes newer version for ios 11 phones and iTunes 12.7 version doesn't have apps section so i couldn't download anymore my ad hoc app ipa file and provision files to iPhone.
I just found out that there is an iTunes version (12.6.3) Apple published which won’t be prompted to download new versions of iTunes and you can use this version to download your app. You can dowload it from this link: https://support.apple.com/en-us/HT208079
Apple say if you have a newer version of iTunes you can just download this one over it but I couldn't do it like this. First, I removed iTunes from my computer, then I removed the iTunes folder from my musics folder (you probably don't need to do that) and I downloaded iTunes for 64 bit PC from the link I wrote above. And with this iTunes i can use Apps section again and it doesn't force me to update it. So it works like the good old times.
For iTunes 12.9.5.5 and above you can install the apps by Copying the IPA file and Paste it (Cmd+V or Edit -> Paste in iTunes) in any categories as Music/Films/TV Programmes etc. The app will be installed automatically on your iPhone screen.
Tested on 29 Nov 2019.
Demo:
Since iTunes 12.7 doesn't have "Application" section so it can't be done.
As a workaround I've found this answer.
I simply installed "Apple Configurator 2". Than:
Run application
Connect device
Unlock device
Drag IPA file to visualisation of device in "Apple Configurator 2"
Confirm action
I didn't had to "sign in" as described in on linked question answers
For iTunes 12.7.0 and above, you just need to Cmd+c your app and Cmd+v into your device on iTunes. Any tab works, including Summary, Music, Movies.
For the macOS Catalina 10.15.3 and onwards iTunes is no longer present in the system. all iTunes contents are added in Finder itself. So instead, open the Music app and drag-drop IPA as mentioned below.
installation itunes music ipa
Do not use any service similar to https://www.diawi.com/ as it can potentially have huge security implications. Using this kind of process and with some clever coding skills, a third party can inject extra stuff in you application. And they are basically charging you for something that you can do yourself.
In iTunes 12.7.x, it is still possible to install an ipa directly on a device with a simple drag-n-drop. Look at #ganesh ubale' solution here or the other answers at https://stackoverflow.com/a/46520816/609862 or https://stackoverflow.com/a/46229114/609862.
The Apple developer web site also have detailed information about how to configure a web site for installing an IPA wirelessly (by simply sharing the download link).
I just reset the device (erase all settings) and sync up with iTunes and now I can drag the app over to the phone library on iTunes (even though there is no apps tab). Once you sync. the app is then on the phone.

How to preview apps on iPad?

I am using xcode to develop a prototype application. Nothing too fancy, just slide effects and other simple gestures. Mostly moving images around the screen.
I can preview the app on my laptop using ios simulator, but how do I take the prototype to the iPad for a more realistic view?
Thank you
First, you need to join a paid iOS Developer Program or, if possible, the iOS University Program.
Then, you will have to create and install provisioning profiles using the steps in this documentation.
After that, you can test on iOS devices the same way you test on the Simulator.
Edit
Alleviate the need to go to the iOS Provisioning Portal every time you want to add a device to your provisioning profile by using automatic provisioning.
An easier way to install provisioning profiles is to let Xcode manage them for you. See the paragraph "To provision a device automatically for development" in this guide for more information.
This process requires a developer account with Apple - and you have to go through the Provisioning Portal to setup your provisioning profile. Apple recently came up with a great getting started guide:
https://developer.apple.com/programs/ios/gettingstarted/
Read the section on "Installing and Testing Apps on iPad, iPhone, and iPod touch".

Resources