Xcode not able to attach application to Iphone simulator - ios

My OS version of Mac OS X 10.7.5 Lion, Xcode Version is 4.5.
I am creating any new application or running any old application on my macbook xcode will not able to deploy the application on any version of simulator.
& it works fine if I am attached to a high speed connection xcode will work properly but offline it says "Attaching to appName" infinitely & hangs...
I googled but no help.
any suggestion, links much appreciated.... Thanks

Related

can't add simulator to xcode 7.3.1

I installed xcode 7.3.1 and started a new project with single page template, but when i try to run it it says that "build only device cant run the application and i should add new device or simulator".
when i go to "window->devices" there is only one device and it mymac system, when i hit + button and add simulator i have ios version 9.3 and after selecting the device type and giving it a name and hitting the create button, nothing happens.
/Library/Developer folder dose not exist.
Mac OS X El Capitan 10.11.2
Just to be sure, i uninstalled xcode 7 using cleanmymac3 and restarted system and installed xcode 6.4, it installed successfully and had multiple simulators already defined and a test project successfully run in the simulator. Then i installed xcode 7 witch told me that a older version already exist and if i want to keep them both or replace the older and i choose to replace.Then started a new project with xcode 7 and it was still the same no simulator and i am still not able to add any.
any solution? I am a xcode and MAC noobi ...
Try to Update your OSX to latest version i.e. 10.11.5 because XCode 7.3.1 requires updates OSX / macos
hop it will help you
Ok, it seems iOS 9.3 simulators are not compatible with AMD cpus :D (go figures) or that my MAC's AMD kernel was not good or ..., anyway the same file installs the components correctly with Intel cpu. poor AMD ...

Unable to boot iOS simulator

I am using MAC OSX YOSEMITE 10.10.3 with Xcode 6.3.2 configuration.
When i am going to run app on iOS simulator, it shows me unable to boot iOS simulator.But with device it works fine.
Can any one help me here, I had tried so many thing as googled. But not getting any solution.
Reinstalled Xcode 2 times also.

Get trouble running Time Profile in Instruments Xcode 6.1 Mac OS Yosemite

I'm facing a problem with Time Profile and trying to fix this all day but no luck. Hope anyone in there have faced this before and help me resolved this.
I'm developing an iPAd app it communicates with server using socket connection. I debug it successfully by Run button on Xcode but when instrument by Time Profile tool it cannot get the response from the server even have connected with server. I think its strange because my other apps using that tool without any problem.
My environment: Xcode 6.1, Mac OS Yosemite (10.10).
Thanks.

Can not test App on device with iOS 5.1.1?

I recently upgrade iPad to iOS 5.1.1. Organizer prompted "the Xcode can not find the software and image to the install this version."
"Could not support development."
The Xcode 4.2 supports up to SDK 5.0.
The Xcode 4.3.3 supports up to the SDK 5.1, but does not support SDK 5.1.1, Is that right?
So there is no way to test on 5.1.1 device, isn't it?
p.s.
I am working on Mac OS X 10.6.8 and Xcode 4.2. According to this method I has copied "5.1 (9B176)" to the corresponding folder.
For testing on iOS 5.1 you need Mac OS 10.7 Lion and Xcode 4.3. iOS 5.1 support is only available with Xcode 4.3 so you cannot test on a 5.1 device using earlier versions.
SugarMEmE, just a thought, since u need to copy it manually, u need standalone iOS5.1.1sdk. I checked Xcodes4.2.x up to Xcode4.5, they do not have iOS5.1.1, just 5.1 and then 6.0. No intermediates. So if somebody has a Lion w Xcode4.2 or higher, that can download those intermediates automatically, you technically just could copy it from there.
Hei, just did it. You need to find a file iPad1,1_5.1.1_9B206_restore.ipsw say here: http://mytopfiles.com/other/file/iPad1,1_5-1-1_9B206_Restore/589434.htm
It was on my other Mac (that has Lion and Xcode 4.3) in Library\iTunes\iPad Software Updates\
I just copied it on my Mac (Snow Leopard w Xcode4.2) in the same Library\iTunes\iPad Software Updates.
Image immediately showed up in Xcode Organizer Library Software Images.
And right away I was able to build on my iPad1 with iOS5.1.1
Logically, if you need it for iPad2 you would look for iPad2,1_5.1.1_9B206_restore.ipsw http://mytopfiles.com/other/file/iPad2,1_5-1-1_9B206_Restore/589852.htm etc, I guess.
Regards,
B
PS after all, u do not need to pay for upgrade to Lion yet.
You can generally link to the DeviceSupport folder for a similar OS version.
I just did this for 5.1.1 and it worked:
sudo ln -s 5.1 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1.1

Do I have to upgrade to Lion to test on iPad with iOS 5.1?

I recently just updated my work's iOS to 5.1. When I click run in Xcode 4.2, I get this error:
The selected scheme is my iOS device.
I am currently running Snow Leopard here, and after checking the portal I cannot run the latest Xcode unless I upgrade to Lion.
Is there any way I can test my app on this device without upgrading to Lion?
The short answer is Yes, you need to upgrade.
Some people have gone to heroic lengths to get SW to run on unsupported OS releases. Here's an example for getting iBooks Author onto Snow Leopard:
http://osxdaily.com/2012/01/20/install-ibooks-author-on-mac-os-x-10-6-8-snow-leopard/
In theory, it may be possible to run Xcode 4.3.1 on Snow Leopard or even jam iOS 5.1 support into Xcode 4.2. In practice, good luck. I would never personally do it, because development is hard enough. If Xcode or your app crashes or has issues, you have to throw out all your assumptions.
You mentioned that it is your work's iDevice. Consider getting them to upgrade your Mac OS or your hardware for you.
If you have 5.1 on a device, then Xcode needs to have the iOS SDK 5.1 installed in order for Xcode to run the app on that device.
If the device has 5.1 installed, and the latest SDK installed in Xcode is 5.0.1, then you will get this error.
I am running Xcode 4.2 with the highest SDK of 5.0 (9A334) and I can compile fine to my iPhone 4s running iOS 5.1 and my iPad 1 running iOS 5.1. I have just connected a new iPad 3 running 5.1 and Xcode says I need to upgrade to SDK 5.1. I went on a wild goose chase on this a few weeks ago after upgrading my 4s to 5.1 from 5.0.1 and installed Lion (which I detest) in a separate partition. After loads of messing around I ended up going back to Snow Leopard and the 4s running 5.1 magically worked. I do not have SDK 5.1 on the system and Base SDK in Xcode shows Latest iOS (iOS 5.0). Therefore it is NOT necessary to have SDK 5.1 in order to compile for 5.0 and run on a 5.1 device.
UPDATE 6-April-12
An update on this. I have just booted into Lion, opened Xcode, the iPad3 is recognised, re-booted back into Snow Leopard, and now I can compile to the iPad3 using Xcode 4.2 on SL. I did absolutely nothing in Lion except for opening an old project and clicking on the iPad3 in the sidebar of the Devices tab in the Organizer.

Resources