应用程序未在 iPad 中运行
大家好,
我的应用程序在模拟器中运行良好, (我试图上传到越狱的 ipad,配置文件已过期,在 xcode 3.2.5 之前加载编译的应用程序正常,我上传时遇到一些问题,但现在,我认为问题已解决)
但现在,应用程序崩溃了加载时,我收到此错误(和一些警告),但首先要修复此错误
* 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“* -[NSFileManager URLsForDirectory:inDomains:]:发送到实例 0x10c550 的无法识别的选择器”
它引用的行是>
- (NSURL *)applicationDocumentsDirectory { 返回 [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; }
该行与 iOS 3.2.2 (7B500) 兼容吗??,这是问题所在吗 或者可能是什么?
多谢!
HI guys,
my app works fine in the simulator,
(Im trying to upload to a jail broken ipad, with expired profile, was loading compiled apps fine before xcode 3.2.5, I got some problems to upload, but now, I think the issues are fixed)
but now, the app breaks up when loading, I get this error (and some warnings), but first to fix this error
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSFileManager URLsForDirectory:inDomains:]: unrecognized selector sent to instance 0x10c550'
the line that it refers is>
- (NSURL *)applicationDocumentsDirectory {
return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
}
Is that line compatible with iOS 3.2.2 (7B500)??, is that the problem?
or what could be??
thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该方法仅适用于 iOS 4 或更高版本。
来自 文档:
That method is only available in iOS 4 or later.
From the docs: