iPhone 调试:调试通用应用程序时出现黑屏
我正在开发我的通用应用程序 (4.0.1 sdk),但无法让它在 iPod touch 上运行。它适用于 iPad、iPad 模拟器和 iPod 模拟器 当我尝试在触摸上启动应用程序时,我的 main 被调用,我可以在断点处停止(我认为这意味着配置和证书是正确的)但之后就什么也没有了。 GDB 日志中没有任何内容。我可以在触摸上调试一个简单的“Hello world”类型的应用程序。有人有什么建议可以尝试吗?
I am working on my universal app (4.0.1 sdk) and I am unable to get it to run on an iPod touch. It works on iPad, and on both the iPad Simulator and the iPod simulator When I try to launch the app on the touch, my main gets called and I can stop at a break point (I assume this means the provisioning and certs are right) but nothing after that. There isn't anything in the GDB log. I can debug a simple "Hello world" type app on the touch. Anyone have any suggestions of what else to try?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不使用 .nib 文件,您可能需要确保创建窗口的代码得到执行:
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen]bounds]];
如果您使用 .nib (.xib) 文件,请确保将窗口适当地委托给界面生成器中的应用程序委托。
就我而言,我正在对应用程序委托进行子类化,并且意外删除了调用创建窗口的
[super didFinishLaunchingWithOptions...]
的行。我希望这对某人有帮助。
干杯
If you are not using .nib files you might want to make sure the code which creates your window gets executed:
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
If you are using .nib (.xib) files make sure you have the window appropriately delegated to the app delegate in interface builder.
In my case I was subclassing an app delegate and I accidently removed the line calling
[super didFinishLaunchingWithOptions...]
where my window was being created.I hope this helps someone.
Cheers