Opening Preexisting Watch App Project with Xcode 6.2 Results in Simulators Missing

Originator:sethfri
Number:rdar://19776564 Date Originated:02/09/2015
Status:Duplicate/16646772/Open Resolved:No
Product:Developer Tools Product Version:Xcode 6.2 beta 5
Classification:Serious Bug Reproducible:Always
 
Summary:
Several teammates have downloaded Xcode 6.2 beta 5 and tried to open the project containing our WatchKit app, only to find that the simulators aren't listed - only "My Mac". It's then impossible to run the app that we've built (or even the iOS app that already existed).

Steps to Reproduce:
Presumably, but we haven't been able to completely confirm the exact repro steps:

1. Create iOS project in Xcode 6.2 beta 4 from one machine
2. Add WatchKit target
3. Check into source control
4. Fresh install Xcode 6.2 beta 5 on another machine (don't already have had Xcode installed)
5. Open the project
6. Simulators are missing - only "My Mac" is listed

Expected Results:
All iPhone simulators should be listed whenever we open the project file

Actual Results:
No iPhone simulators are listed

Version:
Xcode 6.2 beta 5, OS X Yosemite 10.10.2

Comments

My Reply

Followed these instructions from the Devforums post and was able to work around this:

I had the same trouble as sethfr and I think this could be a workaround (worked on my computer :) It does seem related to the schemes, and it seems that the "xcshemes" data in "xcuserdata" is corrupted perhaps. So I simply deleted it. Example:

Back up "myScrewedUpProject.xcodeproj", make sure Xcode is deep cleaned and closed etc. Using Finder, right click on "myScrewedUpProject.xcodeproj" and select "Show Package Contents" Move "xcuserdata" to your desktop (possibly for diff'ing later to further investigate or just plain delete it immediately if the engineer is too traumatized lol) Close Finder and use Xcode to launch the project. The simulator devices magically reappear and you can run the WatchKit App again!


I've attached a diff of the working and not working xcschemes directories. Hope this helps resolve the issue, as it's still persistent in Xcode 6.3 beta 2. 'diff.txt' was successfully uploaded.

Apple Developer Relations

Engineering has requested the following information in order to further investigate this issue:

Can you attach complete working and broken projects for us? That would help us a lot here.

My Reply

We don't have any broken projects anymore because fixed them all with the workaround. However, someone else (in India - we weren't able to get their project before they fixed it) was able to reproduce this recently with Xcode 6.2 GM. This should be very possible to do using the attached project.

Apple Developer Relations

We are still unable to reproduce. Also, the original report on this issue is still under investigation.

If you can provide “complete working and broken projects” as requested, please file a new bug report.

We are leaving this report closed.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

Apple Developer Relations

We need more information to investigate this issue.

Could you attach your project file?

Please provide your response or results by updating your bug report.

Please compress any bundled files (e.g. nested folders) prior to uploading.

My Reply

Attached. Thanks! 'project.pbxproj' was successfully uploaded.

My Reply

Additionally, Cleaning and deleting DerivedData sometimes produces this error:

error: /Users/[User Name]/Library/Developer/Xcode/DerivedData/mShop-cvmngxlrucnpehboiyuutsmivgnk/Build/Products/Debug-iphonesimulator/WatchKit App.app: No such file or directory

My Reply

We tried uninstalling beta 5, reinstalling beta 4 (we still had the DMG), and opening our project file, and the simulators still didn't appear.

We also tried copying the .xcodeproj from a working computer to one where the simulators were missing, but that didn't fix anything either.

My Reply

We confirmed that creating a new project and a new Watch app target makes the simulators appear, but removing the Watch app target from our current app and adding a new one does not work.

My Reply

We confirmed that creating a new project and a new Watch app target makes the simulators appear, but removing the Watch app target from our current app and adding a new one does not work.

We tried uninstalling beta 5, reinstalling beta 4 (we still had the DMG), and opening our project file, and the simulators still didn't appear.

We also tried copying the .xcodeproj from a working computer to one where the simulators were missing, but that didn't fix anything either.

My Reply

In this Devforums post (https://devforums.apple.com/message/1101410), Jake Behrens suggested that it might have been because my teammates had renamed an older version of Xcode, but these were all fresh installs. I confirmed that no renaming took place.

If Apple could please provide a temporary workaround, that would be fantastic. This is blocking half of our team.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!