هل من الممكن الحصول على iOS 5.1 SDK لـ Xcode 4.2 على Snow Leopard؟

StackOverflow https://stackoverflow.com//questions/9613565

سؤال

لا يزال لدي سنو ليوبارد.لدي Xcode 4.2 لتطوير iOS.قمت هذا الصباح بترقية جهازي iPhone وiPad إلى iOS 5.1.

لكن Xcode 4.2 لا يكتشف جهازي للاختبار.لم أتمكن من العثور على صورة iOS 5.1 SDK على موقع مطور Apple لـ Xcode 4.2.

لا أرغب في الترقية إلى Lion للحصول على XCode 4.3 في الوقت الحالي.

هل سأتمكن من استخدام Xcode 4.2 (على Snow Leopard) لتطوير iOS الآن؟

هل كانت مفيدة؟

المحلول

تحصل اكس كود 4.2 على Snow Leopard لتشغيل التعليمات البرمجية على ملف جهاز يعمل بنظام iOS 5.1 انت تستطيع فعل ذالك:

  1. إذا كان لديك جهاز Mac آخر يعمل بنظام التشغيل Lion وXcode 4.3.1، فيمكنك نسخ الملفات من:

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)

  2. ضع الملفات المنسوخة في نفس المكان على جهاز Snow Leopard Mac:من المحتمل

    /Developer/Platforms/iPhoneOS.platform/DeviceSupport

  3. وبالمثل، انسخ ملفات iOS 5.1 SDK الموجودة في هذا الدليل:

    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk

  4. قم أيضًا بنسخ "version.plist" من جهاز Lion الموجود في مجلد iPhoneOS.platform إلى جهاز Snow Leopard.

  5. أعد تشغيل Xcode على جهاز Snow Leopard وأعد توصيل الأجهزة ويبدو الأمر سعيدًا بدرجة كافية.

إذا لم يكن لديك إمكانية الوصول إلى جهاز يعمل بنظام Lion وXcode 4.3.1:

  1. يمكنك إخراج الملفات من 4.3.1 DMG والتي يمكن تحميلها من أبل هنا: التنزيلات لمطوري أبل.

  2. قم بتثبيت DMG، واعرض محتويات الحزمة على أيقونة Xcode وانتقل لأسفل إلى

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

  3. اتبع الخطوات المذكورة أعلاه.

قد تجد أنه من الملائم أكثر استخدام ملكية شركة Apple ditto طريقة (sudo ditto src dest) في النافذة الطرفية لنسخ المجلدات.

لاحظ أن هذا الاختراق سيعمل أيضًا مع أحدث إصدار من iOS 6 SDK.

نصائح أخرى

عليك أن تحصل على الأسد، IOS 5.1 SDK ليست سوى Xcode 4.3.1 وهي متاحة فقط للأسد.

... ولن يتمكن Xcode الخاص بك من الإنشاء على جهازك إذا كنت قد قمت بالفعل بتحديثه إلى 5.1 لأنه لن يكون على هذا الإصدار من SDKS المعتمدة من Xcode

أنا أعمل على هذا الآن. لدي نفس المشكلة.

المشاكل الرئيسية هنا هي:

1) لم تقدم Apple أبدا حوار تحذير أن هذا قد تعطيل الأشخاص النامي تحت نمر الثلج.

2) لا توجد طريقة سهلة للتراجع عن هذا.

3) يجب ألا يحدث هذا في تحديث إصدار النقاط.

لقد حاولت تثبيت ISSW السابقة من 5.0.1 لبلدي LOCH IPOD الخاص بي من هنا: مكان تنزيل iPod Touch Firmware Resultore لن يتم تثبيته.

قمت بتنزيل Lion Xcode 4.3.1 من هنا (تسجيل الدخول كمطور أولا) Lion Xcode 4.3.1

وتشغيل بعض البرامج النصية من منتديات dev هنا: giveacodicetagpre.

غير مرغوب فيها Lion DMG وإعادة تشغيل XCode. هذا سمح لي باختبار 5.1 في محاكاة ولكن كسر كل بناء على كل جهاز مع خطأ Sigabrt أو رابط.

أنا خارج متجر Apple للحصول على استعادة جهازي. إذا حصلت على أي معلومات أخرى، فسأعلمك جميعا بذلك. لقد كانت هذه مفاجأة مكلفة للغاية وغير سارة للغاية.

إضافة إلى حل ريتشاردز أعلاه، لقد وجدت أنه إذا كنت أيضا نسخ، من Xcode 4.3.1 DMG ...

تحرير: تم التحديث إلى المسار الصحيح داخل DMG

p> /volumes/xcode/xcode.app/contents/developer/platforms/iphoneos.platform/develope r / sdks / iphoneos5.1.sdk ~~ (شجرة الدليل بأكمله)

إلى

/developer/platforms/iphoneos.platform/developer/sdks / سيتم بدء تشغيل

xcode Debugger بشكل صحيح (بدون كل سجل الأخطاء والمقاييس) giveacodicetagpre.

هناك إجابة هنا توفر أيضا نسخة من Simulator V 5.1. لا عمليات يدوية.فقط افتح المحطة الطرفية، نسخ ولصق الأوامر المقدمة.

http://www.iphonedevsdk.com/forum/iphone-sdk-development/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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top