我开发了一个 iOS 应用程序,该应用程序保存了一些出现在应用程序容器中的日志。我可以使用 Xcode > 设备 > 选择应用程序 > 下载容器菜单选项下载此容器。
然后我可以在目录中看到我的日志文件..../AppData/Documents/mylog.log
基本流程在这里描述https://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/articles/manage_containers.html https://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/articles/manage_containers.html
但是我想自动执行此操作,有没有办法通过命令行使用 Xcode 下载应用程序容器?
有一个项目叫ios部署 https://github.com/phonegap/ios-deploy在 github 上。https://github.com/phonegap/ios-deploy https://github.com/phonegap/ios-deploy
// 下载应用程序的 Documents、Library 和 tmp 文件夹
ios-deploy --bundle_id 'bundle.id' --download --to MyDestinationFolder
// 列出应用程序的 Documents、Library 和 tmp 文件夹的内容
ios-deploy --bundle_id 'bundle.id' --list
// 下载应用程序的Documents目录only
ios-deploy --download=/Documents --bundle_id my.app.id --to ./my_download_location
此外,如果您有一部越狱的手机,您将拥有最大的灵活性来执行与文件操作相关的任何操作。
例如,您可以使用“scp”、“rsync”等工具复制文件;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)