Trying to deploy to iPhone 5 with iOS 6 SDK, on XCode 4.2 - xcode

I'm running XCode 4.2 on Snow Leopard 10.6.8 on a Dell Mini 1010. So it's a hackintosh. Anyway I already managed to get ios 5.1 SDK installed and I can debug applications on my iPad 1st gen running 5.1 which is great. (Following this method Is it possible to get the iOS 5.1 SDK for Xcode 4.2 on Snow Leopard?)
Now I also installed ios 6 SDK along with the device support files for 6.0. However my iPhone is running 6.1.4 which means I require the 10B350 device support file. Does anyone know where I can get this? My iPhone shows up in the organizer panel with this message "dyld_shared_cache_extract_dylibs failed"
Now I can also develop apps with the iphone 6 sdk, which works fine. And I even have the developer certificate installed on my iPhone 5.
So it seems to be an intitialisation error within xcode?
Help or tips appreciated.
Cheers
Ben

Related

Is it possible to install iOS 7 SDK on Xcode 6?

I have Xcode 6 installed but realise that I am only able to develop for iOS8. I am aware that this beta development kit is meant for the development of the iOS 8 beta release but I am in a position where I don't have the time yet to develop for it but wish to take advantage of some of Xcode's new features while I am developing for my current iOS 7 apps.
What can I do to get the iOS 7 SDK installed on xcode 6?
Seems like if you symlink the relevant SDK from a previous installation of Xcode to the Xcode 6 Beta directory, Xcode 6 will be able to use it. Assuming you still have Xcode 5.1.1 on your machine, try the following in terminal:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
This should link the iOS 7 SDK for iPhone (not sim), allowing you to select iOS 7 as the Base SDK in Xcode 6 Beta. If you want to do this for the simulator, replace iPhoneOS.platform with iPhoneSimulator.platform.
NOTE: Just because you have the iOS 7 SDK now doesn't mean it'll build. I'm personally having trouble with the fact that Xcode 6 Beta is using the Apple LLVM 6.0 compiler, which apparently isn't compatible with some of the stuff I'm trying to build.
ref: https://stackoverflow.com/a/11424966/2383003
Just posting so that someone might find it useful: I wanted to debug my app in iPhone running iOS 7.1, in XCode 6.0.1. The previous iOS version was not being listed in the settings page, to choose as base SDK/deployment target. (I'm using OS X 10.10 Yosemite). I installed both XCode 6.0.1 and Xcode 5.0.1 and copied
/Application/XCode501.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
to
/Application/XCode601.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Now I'm able to run iOS 7 apps from XCode 6.0.1.
I changed the deployment target just fine and installed on my iOS7 iPhone 4s all the same. You can do all your development this way and then use 5.1.1 to make your relevant builds. I wouldn't advice to build apps for production in this beta environment even if you could.
Just repeating Christian's comment (on Ziewvater's answer) so it's more prominent:
What's strange is the fact that after adding the symbolic link to my Xcode folder, I see my device twice with the exact name and with some infos (iOS build number, model, device identifier) in the target selector in the upper left corner of Xcode. Depending on which of the both entries I chose, my app works fine or not, no matter which BASE SDK I chose. ??! Anybody experiencing the same?
This is exactly my experience also! Me and my team were tearing our hair out trying to understand why some builds seemed to be working and others were not.
It looks like Apple must be ignoring the base SDK (or target... or something) when you pick the wrong device from the list.
in Xcode 6.1.1 (Window -> Preferences - Downloads) you can install iOS 7.1 simulator. unfortunately it doesn't install iOS 7.1 SKD. if you set deployment target to 7.1 all builds without any trouble. be worry!!!! it is up to you to check the compatibility with 7.1 (SDK is still 8.1). so or so, all runtime trouble should be seen in simulator. i use this approach to build for my iPhone 4 in swift, where iOS 7.1.2 is the last available. (simply don't use any classes available only for newer devices :-))

Xcode 5.0 testing in iOS 5.0.1 Simulator

I have a customer who has reported an issue that my app instantly crashes after starting on iOS 5.0.1 on an iPad 1, and I wanted to test it.
How is it possible to run an app with Xcode 5.0 on an iOS 5.0.1 Simulator, as it is not shown in the list of available downloads.
See this answer, it might help. (Please note that I haven't tried it.)
If it really is impossible on Mavericks, maybe you could consider installing an older OS X version in a VM?

Does xcode4.5 support ios4.3 simulator or prior?

I have upgrade to xcode4.5 from 4.4, but i can't find ios simulator 4 or prior within it. I open Xcode menu, preference, downloads, i can see simulator5 and 5.1 only. I am not sure whether xcode4.5 support ios simulator 4 and debugging with ios4.3 and prior.i know almost iphone and ipad people upgrade their ios to 5 already. but we have some project runs in ios 4.3.does someone know how to install simulator 4 in xcode 4.5?
thanks in advance.
Looks like it has been removed from xcode 4.5 on Mountain Lion:
xcode 4.5 runs ios 4.0 simulator (NOT)
According to Apple you can still set the deployment target for 4.3 though:
https://discussions.apple.com/docs/DOC-3461
The minimum supported deployment target with Xcode 4.5 or later is iOS 4.3.

xcode 4.2 with ios5.1

I have Xcode version 4.2 with OS X 10.7.2, and I was trying to install our app on the new iPad, which is running iOS 5.1. The problem is Xcode doesn't recognize the iPad as a deployable device. I know this is a common issue, but please read it all.
I get this in the organizer: (after push the "use for development")
The version of iOS on “iPad” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.
OS Installed on iPad
5.1 (9B176)
Xcode Supported iOS Versions
Latest
5.0 (9A334)
4.3
4.2
Now I know that in order to connect the iOS 5.1 device to Xcode I need the latest release of Xcode, but I can connect another iPhone with iOS 5.1 to the same Xcode and deploy an app to it.
Why is that?
The only different between them is that this iPhone was previously connected to Xcode, and the iPad was not. I did manage to install an app to iPhone with iOS 5.1!
What is happening here? I don't want to install the new Xcode for nothing if I can install to 5.1.
Thanks.
Xcode will not let you build to an iOS version higher than it supports, and in this case with Xcode 4.2, you will not be able to deploy to iOS 5.1. I recommend updating to OS X Lion 10.7.3 and downloading the 4.3.2 version of Xcode. Do this any you will be able to deploy to your 5.1 device without any problems. In addition to this, the second device should not be able to receive builds from Xcode. Please check and see if the device in question is in fact running iOS 5.0.1 and not 5.1 as 5.1 will not work on Xcode 4.2 and 5.0.1 will.

Can I get the iOS 5 SDK on Xcode 3.2.6?

I can't upgrade to Xcode 4 because I am still running Snow Leopard and my computer doesn't have the hardware to support Lion. Is there anyway I can get the iOS 5 SDK still? I checked on Apple's site, but I only see iOS 4.2 for Xcode 3.2.6.
Yes, Xcode 4.2 with SDK 5 works fine on Snow Leopard. You can download it from the iOS Dev Center. You need to have a paid developer account to see these versions of Xcode. It's right below Xcode 4.2.1 for Lion (as of 2011-12-13):
Xcode 4.2 for Snow Leopard
If you don't join the iOS Developer Program, the link to download Xcode 4.2 for Snow Leopard will not be available, so NKijak is right. If you create a developer account but don't pay for the Dev Program you can only access the 3.2 version of Xcode in Snow Leopard. I've accessed the Downloads page with both types of account to test this, so either pay and join the Dev Program or get stuck with iOS 4 (or borrow an account just to download Xcode)

Resources