After upgrading to the latest release version of Xcode (7.0), I was made aware that further work by me was needed on an older project that is still being developed in Xcode 6.x/Swift 1.2. I downloaded Xcode 6.4 as a dmg from Apple's developer site (the Mac AppStore only installs Xcode 7.0 now), and installed it side-by-side by choosing "keep both" and changing the name from "Xcode 2" to "Xcode 6".
The first time I opened my project and tried to run it on the simulator, I got an alert saying that "Could not connect to simulator" or something similar (didn't write down the exact wording). I had to force-quit both Xcode and the simulator, then relaunched.
This time, I can not select any simulator from the pull down menu beside the schemes. I checked "Window / Devices" and it turns out there is no simulator installed.
If I click on "Add" (+), specify the properties of the simulator and then click "Create", then Xcode hangs and I have to force-quit it again.
Anyone experiencing something similar?
Forget about it, after restarting my mac, it solved itself: all the simulators are there in the pull-down menu.
Always quick-to-post me...
Related
Overnight my Xcode has update to 10.2 and ever since I can't run the simulator anymore. Affected seems every Simulator regardless of Model or iOS Version.
Xcode is building and showing "Running on iPhone X", but I can't see a simulator.
I have the Simulator Icon in the Dock, but clicking on it leads to Xcode.
"Show all Windows" on the Icon just brings me "No Available Windows" on my Screens.
I have restarted Xcode and iMac. Help is very appreciated.
In the Simulators and Devices window, select each simulator in turn and delete it until there are no simulators. Quit Xcode. Restart the computer. Now create a simulator and build and run to it.
Right Click Simulator Icon in the Dock and click Show, It might be hidden for some reason.
Right-click on the app in the dock, and click Show.
Right-click and click Quit, then relaunch the simulator again.
I need to test an application on an iOS6 simulator. Since this iOS version is not part of the current Xcode6 environment, I tried to install Xcode 5.1.1 beside my Xcode 6 installation and use it.
I downloaded Xcode 5.1.1 from the Apple developer pages and installed in in my applications folder. After launch I am downloading and installing the iOS 6.1 SDK from within Xcode.
After that I am trying to launch the simulator (NOT with an app, just a clean launch) but when the simulator window is shown it keeps black. The log says:
Could not lookup service com.apple.iphonesimulator.host_support: 1102
repeatingly. Clicking "Reset Content and Settings..." wont work. I also deleted the SDK file from
~/Applications/Xcode 2.app/Contents/Developer/Applications/
and the 6.1 Folder from
~/Users/username/Library/Application Support/iPhone Simulator/
And made a fresh install. Also no effect. I know there are a lot of similar questions here on stack, but they all suggest the "Reset Content and Settings..." which wont work for me. Any idea what might going on?
When launching an iOS7.1 simulator from Xcode 5.1.1 it starts up and works like a charm. The iOS7.1 comes with the Xcode bundle, the iOS6.1 simulator has to be installed manually. Maybe that's the problem?
Thanks!
Ok,
i probably found the answer here: In OS X 10.10 (Yosemite Beta), How do I Test Using iOS 6.1 Simulator?
In short: iOS6 is not supported under OS-X 10.10 and so the simulator won't work.
Recently I downloaded the Xcode update, and tried my app on the iOS 7 simulator, and had to change a few things as expected. I noticed that the update uninstalled the iOS 6 simulator, so I downloaded it again and the 6.1 sim runs fine it seems, until I pressed run in Xcode. It gave me an alert box simply saying "iOS simulator failed to instal the application" with an OK button. the iOS sim was on the home screen with the old version of my app before i started working on it today. Has anybody else had this problem? It didn't give me any other details. Also my deployment target os is 6.1 and pressing build results in a success.
Found another post that says you have to change the "Opens in" bit to Xcode 4.6 in nibs and storyboards. fixed my problem.
I have been frustrated that I have had to use the very buggy XCode 4.5 to build to my device after having upgraded to iOS 6 .
Unfortunately, this version of Xcode for some reason does not allow my app to push or pop view controllers... an issue that completely goes away when I switch back to XCode 4.3.2.
I wanted to be able to use XCode 4.3.2 to build to my iOS 6 device, but this is officially not supported in 4.3.2 because it does not support anything greater than 5.x.
Is there a workaround or fix for this?
Here is a fix for the issue:
1) When you install the latest developer release of XCode, leave the previous version on your computer
2) Make sure the previous version of XCode is quit and then open the developer release version and open the Organizer window
3) Open the old version of XCode and open the Organizer window
4) Click back on the old version of XCode and your device should now show under the run scheme drop-down menu. You should now be able to build and run on your "unsupported" device.
NOTE: This worked for me with XCode 4.3.2 and XCode 4.5 building on iOS 6 for the iPhone 4S. It may or may not work on future versions of XCode or iOS.
I hardly ever get out of Xcode. I was receiving this error "unsupported device (null)" and I tried clean, switching USB ports, switching devices to no avail.
I exited and reentered Xcode without even unplugging my device and it fixed the problem. When the "unsupported device" is given, I noticed that no icon (like a little iPhone) next to my device name was displayed. After I restarted Xcode, I saw the icon and knew my problem was resolved.
I'm new to iOS development. I just installed Xcode 3.2.4 and the iOS 4.1 SDK on my Intel iMac running Snow Leopard. According to the docs, I first need to create a development profile by specifying a device (which in my case is an iPod touch 4G), but the Organizer window that I open up after starting Xcode comes up fully blank.
Screenshot 1: http://img15.imageshack.us/i/screenshot20110305at104.png/
In addition to that, when I click on "Create a new Xcode project for Mac OS X or iPhone OS" on the Xcode welcome screen, I do not have an option to start a new "Cocoa Touch" project.
Screenshot 2: http://img18.imageshack.us/i/screenshot20110305at110.png/
It sounds like you may not have the iOS SDK installed, or installed properly. Also, most developers will have upgraded to Xcode 3.2.5 a long time ago, so we won't be able to accurately compare what you're seeing to our own installations. Let me strongly suggest that you download the latest iOS SDK and install that. Once you get the current SDK installed, I think both issues that you're asking about will go away.