Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMarcus Avena
542 PointsHaving trouble running the simulator, what to do?
When I run the simulator, instead of the digital iphone screen showing the functioning app, I get a black screen that is slightly bigger and squarer. When I close it, I receive a message that says: (Domain = NSMachErrorDomain, Code = -308)
1 Answer
Ricky Sparks
22,249 PointsYou probably are running two different instances of the iOS Simulator.
1.Clean the project. (CMD+SHIFT+K) 2.Quit Xcode. 3.Quit all instances of iOS Simulator. 4.Restart the computer. 5.Log in. 6.Make sure no instances of iOS Simulator are running (I had a wrong version set to Open At Login) 7.Run your project, and let Xcode open the right Simulator.