更新到 iOS 4.2 现在出现错误

发布于 2024-10-06 14:54:28 字数 190 浏览 0 评论 0原文

我将 SDk 更新到 iOS 4.2,现在我的框架有红色字体,并且出现以下错误:

* 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“* -[NSURL initFileURLWithPath:]: nil 字符串参数'

出了什么问题?

I updated my SDk to iOS 4.2 and now my frameworks has a red-font and I have this error:

* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSURL initFileURLWithPath:]: nil string parameter'

What's wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

初相遇 2024-10-13 14:54:28

您的框架呈红色字体,因为您尚未将基础 SDK 更改为最新版本。
进入你的target/getInfo/build并将其更改为4.2,然后关闭/打开xcode就可以解决

Your frameworks are in red-font because you haven't change you base-SDK to latest one.
Go into your target/getInfo/build and change it to 4.2, then close/open xcode and it will be solved

◇流星雨 2024-10-13 14:54:28

您将 nil 传递给 initFileURLWithPath: 并且它需要一个字符串。

您能否显示一些创建路径(以及堆栈跟踪,如果有的话)的代码,以便我们可以给出更有用的答案?

You're passing in nil to initFileURLWithPath: and it's expecting a string.

Can you show some code where you create the path (and the stack trace if you have it) so we can give a more useful answer?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文