Xcode - 使用文件共享无法查看文档目录中的文件
有人可以帮忙吗!我正在使用 Xcode 创建音频文件,并将这些文件放置在我的应用程序的“文档”目录中,重点是我可以使用 iTunes 和文件共享来检索它们。
我将音频文件保存为 .caf 类型,我创建了一个目录列表以确保我的所有文件实际上都在那里。我 NSLog 文件存储的目录,它是应用程序文档文件夹。我在 info.plist 中将“UIFileSharingEnabled/应用程序支持 iTunes 共享”设置为 TRUE。一切似乎都工作正常,除了...我只是看不到 iTunes 文件共享中的文件。我知道它们在那里...我什至可以从同一目录成功地向它们发送电子邮件,但它们不会显示在 iTunes 中。
请有人帮忙! 多谢!!!!
can somebody please help! I'm creating audio files using Xcode and placing those files in the 'documents' directory of my app, the point being that I can retreive them using iTunes and File Sharing.
I save the audio files as type .caf, I've created a directory list to make sure that all my files are actually there, they are. I NSLog the directory that the files are being stored to, it's the application documents folder. I have 'UIFileSharingEnabled/Application Supports iTunes Sharing' as TRUE in the info.plist. Everything seems to be working fine, EXCEPT... I just can't see the files in iTunes File Sharing. I KNOW they're there... I can even email them successfully from the same directory, but they don't show in iTunes.
Please can somebody help!
Thanks a lot!!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你说的实在没有道理。
如果您已正确完成所提到的所有操作,您应该可以通过 iTunes 访问应用程序目录。
尽管如此,考虑到仍然会出现一些问题,您可以执行以下操作:
如果您可以通过 SSH 访问您的手机(对于越狱 iPhone),您可以使用 SSH 列出文档目录中的文件。
如果您没有 SSH,则必须在内部解决问题 - 通过您的应用程序。
我建议:列出 iPhone 应用程序文档文件
What you're saying doesn't really makes sense.
If you've done all the things you've mentioned properly, you should have had access to the application directory through iTunes.
Nevertheless, considering some problem still happens, you can do the following:
If you have SSH access to your phone (for jailbreak iPhone), you can use SSH to list the files on the documents directory.
If you don't have SSH, you have to solve the problem internally - through your application.
I recommend: List iPhone application document files