首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >模拟器中的iphone应用程序空白:从3.1.3移至4.1

模拟器中的iphone应用程序空白:从3.1.3移至4.1
EN

Stack Overflow用户
提问于 2010-09-21 10:08:34
回答 2查看 1.4K关注 0票数 1

我有一个3.1Xcode项目,它在3.1.3版本的操作系统上运行我的应用程序很好。我一直在我的iPhone3G(不运行iOS4 )上测试这款应用。

我刚刚复制了XCode项目和文件,下载了带有4.1SDK的最新XCode 3.2.4。当我通过模拟器运行我的应用程序时,它只是空白,而不是显示我的应用程序。通过NSLog语句,我可以看到它实际上正在访问我的initWithFrame()和viewDidLoad()方法,但是它好像没有正确地加载图像。我尝试将这些文件复制回xcode项目中,并允许它更新引用。我还尝试在硬件下使用4.0和4.1版本的SDK,以及iPhone4和iphone模拟器。

我确实从system.log中看到了一些错误:

代码语言:javascript
运行
复制
Sep 20 21:59:01 s-macbook-pro-17 [0x0-0x18018].com.apple.Xcode[484]: Xcode(484,0x7fff70216c20) malloc: reference count underflow for 0x2019c0a40, break on auto_refcount_underflow_error to debug.
Sep 20 21:59:01 s-macbook-pro-17 Xcode[484]: Xcode(484,0x7fff70216c20) malloc: reference count underflow for 0x2019c0a40, break on auto_refcount_underflow_error to debug.
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.profiled): Bug: launchd_core_logic.c:4598 (24108):2
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.profiled): Path monitoring failed on "/Users/m/Library/Application Support/iPhone Simulator/4.1/Library/ConfigurationProfiles/profiledRunning": No such file or directory
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.profiled): Bug: launchd_core_logic.c:4598 (24108):2
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.profiled): Path monitoring failed on "/Users/m/Library/Application Support/iPhone Simulator/4.1/Library/ConfigurationProfiles/MCOutstandingNagComputation": No such file or directory
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.mdmd): Bug: launchd_core_logic.c:4598 (24108):2
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.mdmd): Path monitoring failed on "/Users/m/Library/Application Support/iPhone Simulator/4.1/Library/ConfigurationProfiles/MDMOutstandingActivities.plist": No such file or directory
Sep 20 21:59:03 s-macbook-pro-17 vot[929]: ******** AX INSPECTOR MODE ************ 
Sep 20 21:59:03 s-macbook-pro-17 vot[929]: **** Running VoiceOver Lite ****
Sep 20 21:59:06 s-macbook-pro-17 app[935]: MainView alloc
Sep 20 21:59:06 s-macbook-pro-17 app[935]: MainView alloc complete
Sep 20 21:59:06 s-macbook-pro-17 app[935]: loadView complete
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-09-28 22:39:45

我通过接口构建器在主窗口上设置了“启动时可见”属性。当我使用xcode 3.1时,我在我的另一台macbook pro上的XCode项目中没有这个设置。

我偶然发现了这个对我有帮助的帖子:

iPhone SDK4.0 and xcode 3.2.3 issue

票数 0
EN

Stack Overflow用户

发布于 2010-12-21 20:47:09

在我的应用中也有类似的情况,但我的问题是,不知何故,在IB中的MainWindow.xib中,文件所有者的委派不再与我的应用委派相关联(右键单击IB中的文件所有者并选中委派按钮)。我在ipad模拟器中工作,因为我有两个不同的MainWindow xib文件,一个用于iphone/ipod,另一个用于Ipad。

希望这对那些在启动时遇到空白屏幕的人有所帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3756834

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档