Issue faced on IOS6 - iphone

I have recently updated with ios6. After that when I am connecting my device Xcode is not finding it, and it is saying like mismatch in version, I am using Mac 10.7.3. Can I use the same version to debug on device? Any idea ???
thanks

You updated your device but not Xcode, to use your iOS 6.0 device for development with Xcode, you require Xcode 4.5, you should check on the Mac App Store and update your Xcode.
Xcode 4.5 will run on both Lion and Mountain Lion. However, on Lion you will also be able to make use of the iOS 4.3 simulator, whereas on Mountain Lion you can't... Just good to know.

Related

Programming for iOS with older Xcode

I'm pretty new to coding for iOS and i have a question about setting up my development components.
I have MacBook Air with 10.5.8 Leopard on it. So we question is: will I have no problems writing apps having iPhone SDK 3.1.3 with XCode 3.1.4 for Leopard (10.5.7)? Will the created app work on all iphone versions? There is a possibility to upgrade to mountain lion and use newest xcode, but is it worth it ? Considering that I firstly have to upgrade to snow leopard and then to mountain lion.
Thank you for your answers in advance.
If you want to send them to the app Store, the apps have to be compiled with the latest iOS (right now iOS6), so you can't compile them with xcode 3.1.4.
You need lion to download xcode 4.5 that includes the iOS 6 sdk
It looks like the configuration of your MAC Machine is not compatible for latest Mountain Lion OS. Even if it supports Lion OS, that itself will be a great deal.
Anyways, Using leopard, you can develop applications only upto iOS ver 3.2. So you would not be able to submit your applications to App Store untill you compile it with latest SDK.
For this you need atleast Lion OS (Better if you upgrade your hardware compatible with Mountain Lion). So that you can install latest XCode (Currently Ver 4.5). It will allow you to develop fully featured iOS application with latest features as well as upload them to Apple App Store.
Hope it helps. Let me know if anything else required.

Run a iOS App on version 4.3 on Mountain Lion

I'm using XCode's latest version on Mountain Lion and would like to test my Apps for iOS 4.3.
How can I adjust the simulator or install previous versions of XCode to test for iOS 4.3 in stead of testing for 5.1 only?
Within my XCode preference -> Downloads I'm not able to see the 4.3 simulator
EDIT:
I manually copied the folder of the iPhone 4.3 SDK from an old iMac which had an old XCode running to my working computer. Turned out that this fix only worked for device testing and not for testing in the simulator. So I needed to have an old device with iOS 4.3 installed, this eventually worked.
You need to install the 4.3 simulator.
Go to "Preferences" in Xcode and then the "Downloads" tab and you may see this:
I made this screenshot on my 10.7 machine but looking at the (supposedly) identical Xcode install on 10.8, I only see the 5.0 simulator as an installable option. It may be that you have to install the 5.0 simulator before the 4.3 one appears, or 4.3 is only supported on Lion.

Testing on jailbroken brand-new iOS device - using Xcode?

OK. So, here's some details on my situation :
I've got a brand-new iPhone 4.
The iOS version has been updated to 5.1.1 (9B206).
The phone has been jailbroken using redsn0w.
I'm running Lion (10.7.4) and Xcode 4.3.
Now, my issue :
I'm creating a sample test app, which runs fine under the simulator.
Followed everything here, but without any result.
Also tried enabling my device via Organizer ("Use as development device").
When I click on "Use as development device", it keeps saying...
The version of iOS on “Dr.Kameleon’s iPhone” 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 Dr.Kameleon’s iPhone
5.1.1 (9B206)
Xcode Supported iOS Versions Latest
5.0 (9A334)
4.3
4.2
While, when I try running on my "iOS device" (that's how it appears), it claims there's no device with a proper iOS version.
No provisioned iOS devices are available with a compatible iOS
version. Connect an iOS device with a recent enough version of iOS to
run your application or choose an iOS simulator as the destination.
Any ideas? What's going wrong?
Look, everyone who says you can't build directly on a jailbroken device is wrong. You can, and it's quite easy to do. If you don't have a provisioned device (and it looks like you don't), using this guide will work. I've tested it myself on Lion running Xcode 4.3 (it even works on later versions, but those are under NDA).
The real issue seems to be that, for whatever reason, you don't have the iOS 5.1 SDK - you're using the iOS 5.0 SDK. You can confirm this by looking in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport. If you don't see any mention of 5.1, you don't have it installed. Try downloading and installing Xcode again (I believe it's 4.3.2 now), which should have the iOS 5.1 SDK bundled with it.
This error is not due to the jailbroken iPhone, its basically due to your lower version of Xcode which doesn't support the latest iOS, try upgrading your Xcode version to latest.hope it helps

Xcode 4.1 issue

I have installed just installed MAC OS Lion and Upgraded Xcode to 4.1. But now I can't build my projects to devices, because Xcode doesn't even see them. All worked fine in Xcode 4.02 and Snow Leopard.
Sometimes it might be just about creating a scheme. Just try to add a new scheme.

"No provisioning iOS device connected"

About 3 months ago I set up my iPhone for development; installed the provisioning profile, updated the device to the latest version of iOS, namely 4.3.3 (8J2) and testing applications on my iPhone worked 100%.
Today I went back to working on one of my iPhone applications after not having worked in XCode for about a month, and now I do not seem to be able to deploy applications to my iPhone. When I try deploy and run on my iPhone, I get the message "No provisioning iOS device connected", even though my iPhone is connected.
If I look in the organizer window of XCode, I see my iPhone listed there under DEVICES, but I see the following message when I select my iPhone entry:
The version of iOS on “Bruce Hill’s iPhone” 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 Bruce Hill’s iPhone
4.3.3 (8J2)
Xcode Supported iOS Versions
4.3.3 (8J2)
4.2 (8C134)
4.1
4.0
4.0.2
4.0.1
3.2
3.2.2
3.2.1
3.1
3.1.3
3.1.2
Does anyone have an idea what is going wrong here and why XCode seems to think that my iPhone has an unsupported version of iOS installed, when in fact the latest version is installed?
UPDATE:
I have tried restarting my Macbook Pro, doing a hard reboot of my iPhone and removing my iphone entry in the organizer. None of these actions helped. My iPhone keeps getting listed in the organizer with an orange circle and if I hover over my iPhone entry I get a tooltip message that says "This device is busy or otherwise unusable by Xcode."
I did notice that in my developer information in System Profiler it only shows sdk 4.2 (8C134) installed, not 4.3.3 (8J2), even though Xcode lists it as being present and supported in the message I quoted above. Here is my developer information:
Version: 3.2 (10M2423)
Location: /Developer
Applications:
Xcode: 3.2.5 (1760)
Interface Builder: 3.2.5 (823)
Instruments: 2.7 (3017)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.4: (8S2167)
10.5: (9L31a)
10.6: (10M2423)
iPhone OS:
4.2: (8C134)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
I think what happened here is that I installed Xcode and then later did an update of my iPhone to iOS 4.3.3. This problem then occurred because my Macbook Pro actually didn't have the SDK for 4.3 installed, even though Xcode seemed to think that it was installed.
So, I got this working by downloading an installing Xcode 4.0.2 and iOS SDK 4.3. I downloaded Xcode from here: http://developer.apple.com/xcode/
Once Xcode 4.0.2 was installed and running, I connected my iPhone, it showed the orange dot again briefly (for about 10 seconds or so) and then this turned to a green dot and I was able to deploy my application to my device again... FINALLY!! :) In my developer settings in System Profiler, I also see iPhone OS: 4.3:(8H7) listed there now. I think that this issue would also have been resolved by installing Xcode 3.2.6 with iOS SDK 4.3, as this would, I think, also have resolved the missing or corrupt SDK 4.3 on my Macbook, but I chose to download and install the latest version.
So, bottom line: Xcode working again! I am happy! :)
I had a similar problem with my 3GS and i solve it by resetting iPhone's developer configuration. Try to hard reset your device (here' the link - don't worry, your dta will survive). Then remove your device from Xcode organizer and add it again.
Also try 'Cleaning' your Xcode project and just turning off your phone and back on again. Restart your computer while you're at it. After it's back up, open Xcode, then plug in the device. It should do its thing then start working again. I had the same issue a few times when I updated and hadn't disconnected/reconnected everything.