为什么 hello world 应用程序在 iphone xcode 4.1 上加载需要 10 秒?
我想优化应用程序的加载时间,因为当我连接 iPhone 并在其上构建时,我的应用程序需要 15 秒才能加载。所以我首先启动了一个“hello world”应用程序,我只是制作一个基于视图的应用程序,然后向 xib“hello world”添加一个标签,将 viewDidLoad 留空,
-(void)viewDidLoad{
//empty
}
但即使这样也需要 10 秒来加载。我是否缺少构建配置或其他内容?
使用 xcode 4.1,我的应用程序有 15 MB,这是可以接受的,对吗?
我还收到一条可能导致缓慢时间
警告的警告:无法读取 /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader 的符号(未找到文件)。 警告:在本地找不到 AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader 的副本,正在从远程设备上的内存中读取。这可能会减慢调试会话的速度。
谢谢
I want to optimize the loading time of my app because when i connect my iphone and build on it, my app takes 15 seconds to load. So i first started a "hello world" app, where i just make a view-based app then add a label to the xib "hello world", leaving the viewDidLoad empty
-(void)viewDidLoad{
//empty
}
but even that takes 10 seconds to load. am i missing a build configuration or something?
Using xcode 4.1, and my app is 15 mb, that is acceptable, right?
I also get a warning that might contribute to the slow time
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader (file not found).
warning: No copy of AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader found locally, reading from memory on remote device. This may slow down the debug session.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是正常现象,请记住您的应用程序正在 Mac 上进行调试。
如果您不从 XCode 运行您的应用程序,而是直接从 iPhone 打开它(只需点击图标),您会发现加载时间要短得多。
This is normal, remember that your app is being debugged on your Mac.
If instead of running your app from XCode, you open it directly from your iPhone (just tapping on the icon) you will notice that the load time is much shorter.