我想将文件(图像,mp3 ...)从主包复制到主包。使用
[[NSBundle mainBundle]pathForResource:@"copyname" ofType:@"mp3"]
from path = /var/mobile/Applications/62734FAF-1E94-4792-9978-exam/myproject.app/file.mp3
to path = /var/mobile/Applications/62734FAF-1E94-4792-9978-exam/myproject.app/copyname.mp3
function = copyItemAtPath
但我收到错误“操作无法完成。(Cocoa 错误 513。)”
谁能帮我?