The operation couldn’t be completed. Operation not permitted
来源:互联网 发布:php转换时间戳函数 编辑:程序博客网 时间:2024/06/05 03:25
最近真机调试app时,发现本地存储的数据没有显示出来,断点调试发现文件转移到本地时失败,一番分析后,发现犯了一个'较愚蠢'的错误。
解决方法:
http://stackoverflow.com/questions/3439408/nsfilemanager-creating-folder-cocoa-error-513
我在保存文件时把文件存储在bundle目录,然后app更新bundle中的文件,模拟器没有问题,真机数据就不对了。
原来真机的bundle目录在真机时不可访问,正如链接所说的
NSFileWriteNoPermissionError
最后只有在doucment下保存文件。
- The operation couldn’t be completed. Operation not permitted
- The operation couldn’t be completed
- 错误:The Operation Couldn't be Completed
- the operation couldn't be completed.
- The operation couldn’t be completed.
- The operation couldn't be completed.(Cocoa error 256)
- Error The operation couldn’t be completed. (Cocoa error 516.)
- The operation couldn’t be completed. (OSStatus error -43.)
- xcode- The operation couldn’t be completed
- The operation couldn’t be completed. (Cocoa error 513.)
- The operation couldn’t be completed. (Cocoa error 4.)
- The operation couldn’t be completed. (LaunchServicesError error 0.)
- The operation couldn’t be completed. (LaunchServicesError error 0.)
- The operation couldn't be completed (LaunchServicesError error 0.)解决办法
- [iOS]The operation couldn’t be completed. (LaunchServicesError error 0.)
- The operation couldn’t be completed. (LaunchServicesError error 0.)问题解决
- The operation couldn’t be completed.(LaunchServicesError error 0.)解决方法
- 解决The operation couldn’t be completed. (LaunchServicesError error 0.)
- Data Mining数据分析经典语录汇总
- 编程大题练习题
- C++异常机制
- VMware Workstation下VMnet1等虚拟网卡与主机网卡之间的关系
- solaris x86 更新动态库 类似linux的ldconfig命令
- The operation couldn’t be completed. Operation not permitted
- C#使用线程写一个服务器程序
- jsf+spring+jpa 程序中遇到的N多异常及解决办法
- 2012全国软件设计大赛编程大题
- log4j配置祥解
- 圆角 path
- 2011国信蓝点杯全国软件设计大赛编程大题
- Android NDK开发实例
- 2012第三届国信蓝点杯全国软件设计大赛编程大题