Domanda

Ho ancora leopardo di neve.Ho Xcode 4.2 per lo sviluppo iOS.Questa mattina ho aggiornato il mio iPhone e iPad a iOS 5.1.

Ma Xcode 4.2 non rileva il mio dispositivo per il test.Non sono riuscito a trovare l'immagine di IOS 5.1 SDK sul sito Developer Apple, per XCode 4.2.

Non voglio eseguire l'aggiornamento a Lion per ottenere Xcode 4.3 in questo momento.

Avrai in grado di utilizzare Xcode 4.2 (su Snow Leopard) per lo sviluppo iOS ora?

È stato utile?

Soluzione

Per ottenere Xcode 4.2 su Snow Leopard per eseguire il codice su un dispositivo Esecuzione iOS 5.1 Puoi farlo:

    .
  1. Se si dispone di un altro Mac in esecuzione Lion e Xcode 4.3.1 è possibile copiare i file da:

    .

    /plications/xcode.app/contents/developer/platforms/iphoneos.platform/devicesupport/5.1 (9b176)

  2. Posiziona i file copiati nel posto equivalente sul tuo Mac Leopard Snow: probabilmente

    .

    /developer/platforms/iphoneos.platform/devicesupport

  3. Allo stesso modo Copia i file SDK iOS 5.1 trovati in questa directory:

    .

    /developer/platforms/iphoneos.platform/developer/sdks/iphoneos5.1.sdk

  4. Copia anche 'versione.plist' dalla macchina del leone nella cartella iphoneos.platform sulla macchina del leopardo della neve.

  5. Re-Start XCode sulla macchina Leopard della neve e re-collegare i dispositivi e sembra abbastanza felice.

    Se non si ha accesso a una macchina con Lion e XCode 4.3.1:

      .
    1. È possibile ottenere i file dal 4.3.1 DMG che possono essere scaricati da Apple qui : Download per gli sviluppatori di Apple .

    2. Montare il DMG, mostra il contenuto della confezione sull'icona XCode e Drill Down to

      .

      /vluumes/xcode/xcode.app/contents/developer/platforms/iphoneos.platform/devicesupport

    3. Segui i passaggi sopra.

      Si potrebbe trovare più comodo utilizzare il metodo proprietario di dittotagCode di Apple (sudo ditto src dest) nella finestra del terminale per copiare le cartelle.

      Nota, questo hack funzionerà anche per l'ultimo IOS 6 SDK.

Altri suggerimenti

Devi ottenere Lion, IOS 5.1 SDK è solo per Xcode 4.3.1 che è disponibile solo per Lion.

... e il tuo Xcode non sarà in grado di costruire sul tuo dispositivo se lo hai già aggiornato a 5.1 perché non sarà su quella versione degli SDKS approvati di Xcode

Sto lavorando su questo ora. Ho lo stesso problema.

I problemi principali qui sono:

1) Apple non ha mai fornito una finestra di avviso che potrebbe disabilitare le persone che si sviluppano sotto leopardo della neve.

2) Non c'è modo semplice per annullare questo.

3) Questo non dovrebbe accadere su un aggiornamento del rilascio del punto.

Ho provato ad installare il precedente IPSW da 5.0.1 per il mio Gen 4 iPod Touch da qui: Dove scaricare iPod Touch Firmware Ripristino collegamenti . Non si installerà.

Ho scaricato il leone Xcode 4.3.1 da qui (Accedi prima come sviluppatore) leone xcode 4.3.1

E esegui alcuni script dai forum di Dev qui:

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/

sudo rm -f ./Latest

sudo ln -s ./5.1\ \(9B176\) ./Latest
.

Imbottuto il leone DMG e Xcode riavviato. Questo mi ha permesso di testare 5.1 nel simulatore, ma ha rotto ogni build su ogni dispositivo con un errore SIGABRT o LINK.

Vado per Apple Store per farli ripristinare il mio dispositivo. Se ricevo ulteriori informazioni, ti farò sapere tutti. Questa è stata una sorpresa molto costosa e molto spiacevole.

Aggiunta di Soluzione di Richards sopra, l'ho trovato se tu anche copia, da xcode 4.3.1 dmg ...

.

Modifica: aggiornato al percorso corretto all'interno di DMG

/volumi/xcode/xcode.app/contents/developer/platforms/iphoneos.platform/develope r / sdks / iphoneos5.1.sdk ~~ (intero albero di directory)

a

/developer/platforms/iphoneos.platform/developer/sdks /

XCode Debugger avverrà correttamente (senza tutto il registro degli errori e le discariche)

ie:
===============================================================================
warning: Unable to read symbols from "dyld" (prefix __dyld_) (not yet mapped into memory).
warning: Unable to read symbols from "SystemConfiguration" (not yet mapped into memory).
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/MessageUI.framework/MessageUI (file not found).
warning: No copy of dyld found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration (file not found).
warning: No copy of SystemConfiguration.framework/SystemConfiguration found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/MessageUI.framework/MessageUI (file not found).
warning: No copy of MessageUI.framework/MessageUI found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox (file not found).
warning: No copy of AudioToolbox.framework/AudioToolbox found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/iAd.framework/iAd (file not found).
warning: No copy of iAd.framework/iAd found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices (file not found).
warning: No copy of SpringBoardServices.framework/SpringBoardServices found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/PrivateFrameworks/FTClientServices.framework/FTClientServices (file not found).
warning: No copy of FTClientServices.framework/FTClientServices found locally, reading from memory on remote device.  This may slow down the debug session.
===============================================================================
.

C'è una risposta qui che fornisce anche la copia del simulatore V 5.1. Nessuna operazione manuale.Basta aprire il terminale, copiare e incollare i comandi forniti.

http://www.iphonedevsdk.com/forum/iphone-sdk-devilopment/100229-Snow-Leopard-sdk-5-1-a.html

if you want to also add iphone simulator 5.1 to your xcode then copy

/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk

entire directory to the following path =>

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/

after you can also able to use iPhone simulator 5.1 to debug your application.

You can use apps compiled for 5.0 on your 5.1 or 5.1.1 device by compiling them and manually dragging .app file to iTunes. Tried today on 10.6.8 and XCode 4.2.

Download the iOS 5.0.1 firmware of your device on this link : http://www.iphonefirmware.com/firmwares-download.

And do a manual restore on iTunes.

I did it today (March 8) on my iPad 2 and it works, Apple still seems to sign this iOS version.I guess not for a long time, so do it quickly.

It is not possible to use a 5.1 device on xcode 4.2, since you don't want to upgrade, you can use the organizer, select your device, and use the restore feature. You can google for the 5.0.1 version and use that one.

(although upgrading to lion is super cheap)

EDIT: Seems this is possible, scroll up for the highest voted answer.

I am using Mac OS X 10.6.8 and Xcode 4.2 and also upgraded my iPhone to iOS 5.1. I needed to get a test version onto the device in a hurry yesterday but did't have the time to install Lion and Xcode 4.3.

I've been using TestFlight (www.testflightapp.com) for beta testing. I created an .ipa archive from Xcode 4.2 and was able to install it on my iOS 5.1 upgraded iPhone via TestFlight.

I know it's not an ideal solution but it helped me get out of a tight spot yesterday without resorting to hacks.

p.s. I'm not affiliated with TestFlight in any way.

Xcode 4.2 seems no more available on developer.apple.com for snow leopard users :( also for registered paying iOS developer like me...

It seems that at the moment there is no legal way to get it...

You must add the Symbols alias too..for example in /Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.0 (10A403) you must add Symbols alias that point to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk so xcode 4.2 can detect your ios6 device (tested on mac mini 1.5 intel core solo with snow leopard). Cheers

I think you can test ios 5.1 device in Snow Leopard as explained in above posts. But it is always safe to upgrade to Lion and use the official sdk release. Because we cant predict what issue could happen if we do some "Tricks" on our machine to make it happen and it may happen when in your most unwanted time (like when submitting to appstore). :)

As of the date of this writing 3/20,2012, Apple is not letting people install previous ipsw files from 5.0.1. If you upgraded your device to iOS 5.1, like I did with my gen 4 Touch, then you either have to get iOS 5.1 running in Xcode 4.2, or you have to revert your device to 4.x, or you replace your device.

I brought my touch to the Apple Store and they replaced it.

If you install the ipsw for 5.0.1, Apple's servers will state that this is not allowed for your device and you will be unable to revert. You'll have to try 4.x to your device or make sure that the iOS 5.1 SDK is running in Xcode 4.2.

I have found how to solve it!

My system is Snow Leopard 10.6.8, and I have two sets of Xcode of 3.2.5 and 4.2, after I had upgraded my iPad 1 to iOS 5.1, I launched Xcode 3.2.5, it prompted me a window of 'unknown device was found', I answer 'Yes' to download lots of libraries from my iPad, several minutes later, I can debug and run my projects on my iPad!

Then I launched Xcode 4.2 and opened one of my previous projects, I can really debug and run it on my iPad!

In this way you can use either version of Xcode to develop apps on a Snow Leopard system.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top