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 trial
Irwin Gonzales
1,138 Pointsxcode simulator is not working, the program says that the build succeeded but just pops a black screen.
This was right after I finished adding the first set of crystal ball animations. Before, The simulator would open and would pretty be pretty much 50/50 with launching my build but now it is totally blacked out. It would sometimes open to the home screen but when I click the "Crystal Ball" app, it zooms in and blacks out again. I have tried everything from resetting the simulator settings, going back to the lessons and redoing the code, and even re-installing xcode its self, The result is still the same. I did notice something about this though, I found this in my "Thread 1" tab
return UIApplicationMain(argc, argv, nil, NSStringFromClass([THAppDelegate class]));
It had the warning sign and it was highlighted in green. I know we arent using the THAppDelegate files so I'm not sure if this is one of the reason but I don't exactly know how to deal with this problem.
Beside that, there were no errors or anything like that. Is this an error for my code or xcode error?
Please help!!
4 Answers
Taha Lukmanji
619 PointsHi Irwin, you have set a break point on that. Right click and look for an option which allows you to remove the breakpoint
Stone Preston
42,016 Pointsif you have set a breakpoint it will usually say break: Thread 1 in the console. so its possible you set a breakpoint or have something else going on. press command + y to disable all breakpoints and try running again.If that doesnt fix things see if you can find more information in the console
Irwin Gonzales
1,138 PointsHello! Thank you kindly for your suggestion! However, I tried that command and it led me back to the screen where it shows my icon but once I click on it, it still has the same issue. I have looked everywhere in the Navigator and checked the third icon from the right, which I believe gives me more info in the console? (sorry, I am very new to xcode). There is nothing wrong there either but it just keeps running my icon on a black screen.
Stone Preston
42,016 Pointsif you want upload your entire project folder to dropbox and post a link and ill take a look. you need to upload the root folder of your project, not just the .xcodeproj file. so if you have a directory named iOS_projects and you saved your project named CrystalBall to that directory, the folder you need to upload is iOS_projects/CrystalBall. its important you upload the root of your project or else it wont work when I download it.
Irwin Gonzales
1,138 PointsHello! Thank you for taking a look, I copied all the links, here is what I have in my dropbox
First Files: https://www.dropbox.com/sh/daaqgfzw13ft79o/AADY_sSpoN6Xmq3w8U-Mr2F4a?dl=0
Actual Project On Xcode: https://www.dropbox.com/sh/ec235uaq31x48dt/AABCtMFihlAYovB1av1hjNdCa?dl=0
Testing Files: https://www.dropbox.com/sh/fq3pvk18n4he2ai/AAB-_lRoE5rJbkXs-5fVXbQca?dl=0
Please let me know if these suffice! Thank you so much again for your help!
Stone Preston
42,016 Pointsthose wont work. you need to upload the entire root folder of your project. just upload the root folder.
Irwin Gonzales
1,138 PointsSorry about that, I pretty sure this is the root folder
https://www.dropbox.com/sh/0c8hap8jpy5lq0p/AABpPoBbQ0Ad08UbVTBr6-LJa?dl=0
Let me know if that is it!
Stone Preston
42,016 Pointsstill not the correct one. go to the directory where your .xcodeproj file is. then go up one directory. that directory is the one you need to upload
Irwin Gonzales
1,138 PointsI'm so sorry, Would you mind sending me an example of how a file like this is supposed to look and contain? That way I could check it out and compare myself? or even how you get to it? Like I said, I have only one active project however, because I re-wrote my code I have multiple "Crystal Ball" folders
Irwin Gonzales
1,138 PointsIrwin Gonzales
1,138 PointsHello! Thank you so much for your reply, I actually checked it and It still didn't work. I have tried the solution below and it is still popping a black screen.