Using Simulator in Xcode 7.3.1 causes Xcode 8 projects to lose Scheme setting

Bug 27180467 submitted:

NOTE: that there is no attached file in this forum, but it was attached to the bug report.


Summary:

Both Xcode 7.3.1 and Xcode 8 beta 2 are installed. Running a project on the 9.3 simulator in Xcode 7.3.1 works. However, closing Xcode and the simulator, then opening a different project in Xcode 8 beta 2 results in a loss of scheme setting, as shown in the attached file "NoScheme.png".



Steps to Reproduce:

1. Start with Xcode 7.3.1 installed

2. Install Xcode 8 beta 2

a. download

b. drag Xcode-beta from Downloads folder to Applications folder

c. run Xcode-beta

3. Create an iOS project in Xcode 8 beta 2

4. Close Xcode 8 beta 2

5. Open Xcode 7.3.1

6. Run an iOS project (a different project not related in any way to the one just created in Xcode 8 beta 2) on a simulator (for example the iPad 2 (9.3) simulator)

7. Exit Xcode 7.3.1

8. Exit Simulator

9. Run Xcode 8 beta 2

10. Load the project created in step 3



Expected Results:

The Xcode 8 beta 2 project's Scheme should still be set.



Actual Results:

"No Scheme" is shown in the Xcode 8 beta 2 UI (see attached file "NoScheme.png"). You can still edit and manage the scheme, but you can not run the app.



Version:

Xcode 7.3.1 (7D1014)

Xcode 8 beta 2 (8S162m)

OS X 10.11.5 (15F34)



Notes:

Workaround: Close Xcode 8 beta 2 and delete the Username.xcuserdatad subfolder of the xcuserdata folder inside the project's xcodeproj file. When you open the project in Xcode 8 beta 2 again, the scheme is visible.



Configuration:

Xcode 7.3.1 and Xcode 8 beta 2 both installed on OS X 10.11.5

Can you clarify (if known). Do you know if this regressed between beta1 and beta2? If you didn't try beta1, that's fine. I'm just trying to understand if this is something that very recently broke or was also a problem in the WWDC release.

When I moved from Xcode 7.3.1 to the first Xcode 8 beta, all worked well. In about 10 projects (all that I've converted thus far), didn't have any issue with the schemes. But, after I moved to beta 2, one project so far lost its scheme settings, so applied to workaround in deleting the Username.xcuserdatad folder.


In my case, I have not been switching back to 7.3.1, so only needed to apply the workaround once.

I did not have this problem in with Xcode 8 beta 1. Also, it took me a while to reproduce the problem this morning. I had to actually run an Xcode 8 beta 2 project on a simulator between steps 3 and 4 in the "Steps to reproduce".

Another bit of information: It seems that (at least some of the time, not sure if it is consistent) if I delete the userdata in one Xcode 8 beta 2 project and actually run it on the simulator (which involves another bug for non-iOS 10 simulators - see this thread), other Xcode 8 beta 2 projects will still have their scheme setting when opened.

Workaround: Close Xcode 8 beta 2 and delete the Username.xcuserdatad subfolder of the xcuserdata folder inside the project's xcodeproj file. When you open the project in Xcode 8 beta 2 again, the scheme is visible.


Worked for me

I ran into the same problem. My solution: click on 'No Scheme' > Manage Schemes. Next, I deleted all the schemes and pressed 'Autocreate Schemes Now'.

Please file a radar at http://bugreport.apple.com with specific information about this issue and reference the radar number in this thread. Thanks.

I encountered this problem today, and this workaround seems to be working. Thanks!

Thanks, works for me.

Using Simulator in Xcode 7.3.1 causes Xcode 8 projects to lose Scheme setting
 
 
Q