更新到 iOS 4.2 现在出现错误
我将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的框架呈红色字体,因为您尚未将基础 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
您将 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?