Lion (iAtkos L1) 上的 xcode 4.1 中的 iPhone 模拟器黑屏
我是 Mac 新手,我开始从事 iOS 编程。最近,当我运行或单击“Build &”时遇到问题。 Go 按钮(在 Xcode 4.1 中),我的项目进行了构建,但 Xcode 无法在 iPhone 模拟器中运行我的应用程序。我只看到黑色的黑屏。
我尝试了不同的项目模板,但它不起作用,并且我在基于视图的应用程序模板中工作。
但是当我在 Xcode 之外启动 iPhone 模拟器时,它确实运行状况良好。我没有看到黑屏。
请!帮我解决这个问题。因为我想从事 iPhone 应用程序的工作。
i am new to mac and i started working on iOS programming. Recently i get problem when i run or click on Build & Go button (in Xcode 4.1), my project does building but Xcode isn't able to run my application in iPhone simulator. I just see blacnk black screen.
i have tried different project templates but it doesn't work and by the wary i m working in view based application template.
But when i start iPhone simulator outside of Xcode, it does run in good condition. i don't get the black screen.
Please! help me solve this problem. Because i want to work on iPhone applications.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您的 Base SDK 与 iPhone 上的 iOS 版本一样高或更高。还要确保您的编译器也设置为最新的。如果您使用 iOS 5 进行构建,则需要切换到 LLVM 编译器(在项目和目标设置下)和 LLDB 调试器(在编辑方案下)。
Make sure that your Base SDK is as high or higher than the version of iOS on your iPhone. Also make sure that your compiler is set to the newest as well. If you are building with iOS 5 you need to switch to LLVM Compiler (under project and target settings) and LLDB debugger (under edit scheme).
当我在模拟器中看到黑屏时,我检查的第一件事是我已经检查了我的一个视图的“Is Initial View Controller”。我将附上一张照片。
When I get a black screen in the simulator the first thing I check is that I have checked the "Is Initial View Controller" for one of my views. I'll attach a photo.