Archiv der Kategorie: Development

How to find your iPad’s, iPhone’s or iPod’s Unique Identifier (UDID) using iTunes

[title type=“h3″ class=“tfuse“]What is the UDID used for?[/title]
Every iPad, iPhone and iPod Touch device has what is called a Unique Device Identifer or UDID that assists with controlling what applications are installed on a device. Apple only allows for applications to be downloaded and installed through iTunes. To allow developers the ability to beta test apps, the developer can provide what’s known as an Ad-Hoc distribution to a user allowing the user to install an app without downloading the app through iTunes. In order for the developer to provide someone an Ad-Hoc distribution, they will need to create a Mobile Provisioning file that includes all the UDID’s of the devices that will be testing the app.

[title type=“h3″ class=“tfuse“]How to find your devices UDID[/title]
There are a few simple ways to locate your devices UDID. One is through iTunes which is only convenient if you have access to your computer. Another popular way is to download one of the many apps in the app store that do nothing more than open an email containing the devices UDID so that you can email it to someone. A simple search on some of these include: Ad Hoc, UDID Sender and UDIDit.

[title type=“h3″ class=“tfuse“]Locate UDID in iTunes[/title]

[row_box class=“box“]
[dropcap1]1.[/dropcap1] Open iTunes and connect your iPhone or iPod Touch device.
[/row_box]
[clearboth][divider type=“space“]

[row_box class=“box“]
[dropcap1]2.[/dropcap1] Click on your device in the left pane under Devices. This opens up the Summary tab in the right pane. You should see information such as the Name, Capacity, Software Version, Serial Number and Phone Number (if it’s a iPhone) listed here.

[frame src=“http://www.webblazer.org/wp-content/uploads/2012/09/itunes-summary.jpg“ link=“http://www.webblazer.org/wp-content/uploads/2012/09/itunes-summary-2.jpg“ target=“_self“ width=“570″ height=“342″ alt=“IPA Summary“ title=“IPA Summary“ prettyphoto=“true“ ]
[/row_box]
[clearboth][divider type=“space“]

[row_box class=“box“]
[dropcap1]3.[/dropcap1] To reveal the UDID, you will need to click on the Serial Number. You should now see a really long number similar to: f0d8298984a5af641ce702e4a491afdb98675309

[frame src=“http://www.webblazer.org/wp-content/uploads/2012/09/itunes-summary-2.jpg“ link=“http://www.webblazer.org/wp-content/uploads/2012/09/itunes-summary-2.jpg“ target=“_self“ width=“570″ height=“342″ alt=“IPA Summary“ title=“IPA Summary“ prettyphoto=“true“]

[/row_box]
[clearboth][divider type=“space“]

[row_box class=“box“]
[dropcap1]4.[/dropcap1] Copy the UDID by selecting the Edit -> Copy menu item.
[frame src=“http://www.webblazer.org/wp-content/uploads/2012/09/itunes-summary-3.jpg“ link=“http://www.webblazer.org/wp-content/uploads/2012/09/itunes-summary-3.jpg“ target=“_self“ width=“570″ height=“342″ alt=“IPA Summary #3″ title=“IPA Summary #3″ class=“box_white box“ prettyphoto=“true“]
[/row_box]
[clearboth][divider type=“space“]

[row_box class=“box“]
[dropcap1]5.[/dropcap1] Now that you have copied the UDID, open up your favorite email program and just paste the UDID into the email and send the email to your developer.
[/row_box]
[clearboth][divider type=“space“]

Installing an Ad Hoc Distribution

[title type=“h3″ class=“tfuse“]What is Ad Hoc Distribution?[/title]

Ad Hoc Distribution allows you to try an application before it’s available in the iTunes App Store. This is how we distribute iPhone applications to beta customers.

These instructions assume you have a .zip file. You can also look at instructions for .ipa files.

Developers, if you have any customers running Windows Vista, you’re better off distributing with an .ipa file, so that iTunes handles the unzipping. To create a .ipa, move your AppName.app directory into a new directory called Payload, then zip the Payload folder and change the file extension to .ipa.

[title type=“h3″ class=“tfuse“]What You’ll Need[/title]

Before beginning the installation process you’ll need:

[check_list]

  • The .zip file for the application (usually AppName.app.AdHoc.zip)
  • The .mobileprovision file for the application (usually Ad_Hoc_Distribution_Profile.mobileprovision)
  • Your Device: the iPhone or iPod Touch whose UDID you emailed us previously (Remember?)
  • The computer you normally sync with your Device
  • We usually send the .zip and .mobileprovision files to you via email.

[/check_list]

[clearboth]

[title type=“h3″ class=“tfuse“]Installing the Application – Windows XP[/title]

[row_box class=“border box_white box“][dropcap1]1.[/dropcap1] If you have the .zip (.ipa) and .mobileprovision files in an email, save them to a convenient location, such as your Desktop.[/row_box]
[clearboth][divider type=“space“]

[row_box class=“border box_white box“][dropcap1]2.[/dropcap1] Drag-and-drop the .mobileprovision file onto Library → Applications in iTunes. On the Mac, you can just drag it to the iTunes icon in your dock.
Extract the .zip file. To do this, right-click the .zip file and select Extract All… . Step through the wizard and accept the defaults by clicking Next.
[/row_box]
[clearboth][divider type=“space“]

[box type=“warning_box“ class=“border box_pink box“]WINDOWS VISTA USERS: The built-in “Extract All…” command corrupts the application so that it cannot be installed. You should try using a different zip program like WinZip or WinRar to extract the Zip file. Better yet, ask the application developer to send you the application as a .ipa file instead of a .zip file, then you don’t have to unzip it. [/box]
[clearboth][divider type=“space“]

[row_box class=“border box_white box“][dropcap1]3.[/dropcap1]
Find the .app folder (usually AppName.app).
[/row_box]
[clearboth][divider type=“space“]

[row_box class=“border box_white box“][dropcap1]2.[/dropcap1]
Drag-and-drop the whole .app folder onto Library → Applications in iTunes. On the Mac, you can just drag it onto the iTunes icon in the dock.
[/row_box]
[clearboth][divider type=“space“]

[row_box class=“border box_white box“][dropcap1]4.[/dropcap1]
Verify that the application shows up in Library → Applications. Note that it will not have its normal icon.
[/row_box]
[clearboth][divider type=“space“]

[row_box class=“border box_white box“][dropcap1]5.[/dropcap1]
In iTunes, select your Device under Devices, choose the Application tab, and make sure that the new application is checked.
[/row_box]
[clearboth][divider type=“space“]

[row_box class=“border box_white box“][dropcap1]6.[/dropcap1]
Sync your Device and try out the new app!
[/row_box]
[clearboth][divider type=“space“]

[box type=“note_box“ class=“border box_yellow box“]If you run into any trouble installing an app, please email the application developer. Please don’t email us here at Webblazer unless you’re having trouble with one of our apps (probably Webcam).[/box]
[clearboth][divider type=“space“]

Where to find iOS crash logs on your desktop PC?

Working with crash logs typically involves certain interaction between developers and users, unless they are automagically sent to the developer. First of all, the user should get the crash log and send it to the developer, who should examine it, find the bug and fix it.
iOS and Mac OS X are remarkably similar architectures. Both store crash logs to help identify crashing bugs. The difference between the two is how users retrieve them. On Mac OS X every user has unrestricted access to crash logs related to the applications he runs. The iPhone does not even have a file browser.

What to do? iTunes comes to the rescue.
Whenever you synchronize your iPhone or iPod Touch, all the crash logs are transferred to your computer.
Here are their locations:

[title type=“h2″ class=“tfuse“]OS X[/title]

~/Library/Logs/CrashReporter/MobileDevice/<device_name>

[title type=“h2″ class=“tfuse“]Windows XP[/title]

C:/Documents and Settings/<username>/Application Data/Apple computer/Logs/CrashReporter/<device_name>

[title type=“h2″ class=“tfuse“]Windows Vista and Windows 7[/title]

C:/Users/<username>/AppData/Roaming/Apple computer/Logs/CrashReporter/MobileDevice/<device_name>

The log file names start with application name and have the extension “crash”. They are just plain text files and can be sent by e-mail in original or zipped form, or even copy-pasted into your e-mail program.

[title type=“h2″ class=“fuse“]Tips for OS X users[/title]
You can easily find the folder: ~/Library/ by clicking on an empty spot on your desktop and pressing the keys Command + Shift + G.
Another way is to open your Crash Logs in the Console application. Just open it (Spotlight: Console) and browse to your device in the files section. Then right+click the log file and select „eMail“ to send it to someone or „Show in the Finder“ to find it on your computer.