Davide Gullo, Developer

26.05.2013
07:18 (+00:00)
21a settimana
145o giorno

  "E il mare il web concederà ad ogni uomo nuove speranze, come il sonno i sogni..." Cristoforo Colombo

iPhone Developer Program, certificati di sviluppo e distribuzione App

sabato, 30 gennaio 2010

iPhone Apple

Stamattina mi dedico al nuovo (per me!) mondo dello sviluppo su iPhone e, perchè no, sul nuovo iPad.
In settimana mi sono iscritto all’iPhone Developer Program in modo da poter testare le App sviluppate direttamente sull’iPhone, installarle su altri 10o (per testarlo con gli amici) e distribuirle tramite Apple Store.

Vi segnalo due guide su devAPP (molto ben fatte!) sui passi fondamentali per poter iniziare:

Rispetto alle guide qui sopra segnalo, come evidenziato in questo post sul Developers Forum, che, prima di procedere, dovete verificare di aver il certificato WWDR (Apple Worldwide Developer Relations Certification Authority). Le operazioni, procedendo senza aver prima installato questo certificato, non andranno a buon fine. Il WWDR lo trovate nella sezione Certificates del Program Portal (iPhone Developer Program).

Nel caso in cui aveste già installato il tutto (come da procedura della guida) senza il WWDR è necessario ripartire da zero. Per prima cosa dovete seguire quanto descritto nel suddetto post:

1 Delete the WWDR certificate and your developer certificates from Keychain Access
2 Ensure that the login keychain is set as the default keychain in Keychain Access
3 Download the WWDR certificate and add it to your keychain in the login section
4 Use Keychain Access to generate a CSR (Certificate Assistant… Request a Certificate…) for a developer
5 Submit the CSR to the Apple portal
6 When the developer certificate is ready, download it to your Mac and add it to your keychain in the login section
7 In the Apple portal, specify the unique device ID (UDID) of your iPhone or iPod touch. You can find the device’s UDID in the Window… Organizer section of Xcode. The ID is the 40 character “Identifier” string in the “Summary” tab (e.g. 4ada8edc85bfdd3947696cb3277a8c7f731fb6c3)
8 In the Apple portal, choose an App ID name. This can be anything, it is not related to any other data. However, the Bundle Identifier that you choose here MUST match the Bundle Identifier used in your Xcode .plist file, e.g. “com.mydomain”
9 In the Apple portal, create a provisioning profile. The 3 ingredients for this are the name(s) of your developer certificates, your unique device ID(s) (UDID(s)), and your App ID. When you download this file, it will have a .mobileprovision extension. After you have downloaded it, open it in Finder, and drag it to the Xcode icon in your dock. The profile should now appear in Xcode. To check, go to the Xcode “Window… Organizer” menu and look under “iPhone Development… Provisioning Profiles”. If all is ok, you should not see any yellow error messages, and your profile should appear in the “Name” list.
10 Do a clean build, so that previous precompiled headers and object files are deleted. In Xcode, choose “Build… Clean All Targets”, then “Build… Build and Run”. If your code compiles with no errors, Xcode will upload the app to your iPhone or iPod touch, using the USB cable attached to your device.

Infine ricordatevi di ripulire anche il vostro iPhone. Io ho seguito la procedura qui sopra diverse volte prima di trovare questo utilissimo post. Sul vostro iPhone quindi andate in Impostazioni -> Generale -> Profili e cancellateli, poi riprovate di nuovo.
Forza e coraggio… vedere la prima installazione creata da voi che gira sul proprio iPhone merita davvero! :-)

 

Pinguino imperatore

Aptenodytes forsteri,
descritto da G. R. Gray nel 1844, Mari Antartici.

Tux è la mascotte ufficiale del kernel Linux. Creato da Larry Ewing nel 1996, è un pinguino paffuto dall'aria contenta. L'idea che la mascotte di Linux dovesse essere un pinguino venne da Linus Torvalds, il creatore del kernel Linux.
[FSF Associate Member]
Free Software Foundation
Associate Member
Join!
Davide Gullo
   Crea il tuo badge