Xamarin ios 设置支持在PP助手、XY苹果助手上查看该应用下的文件
2018-01-10 18:02
323 查看
一、解决PP助手、XY苹果助手中能够查看ios应用中的文件
苹果官方在ios版本8.3以上加强了系统的防御机制,使得现在在电脑的第三方助手类工具中不能方便的访问系统的目录了!
解决办法:
在info.plist配置文件中添加能够支持文件共享的键值对
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>IOSDownLoadImages</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.IOSDownLoadImages</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>8.3</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
</array>
<key>UIFileSharingEnabled</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>
苹果官方在ios版本8.3以上加强了系统的防御机制,使得现在在电脑的第三方助手类工具中不能方便的访问系统的目录了!
解决办法:
在info.plist配置文件中添加能够支持文件共享的键值对
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>IOSDownLoadImages</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.IOSDownLoadImages</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>8.3</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
</array>
<key>UIFileSharingEnabled</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>
相关文章推荐
- VC查看宏展开之后的文件的设置
- 让服务器iis支持.apk文件下载的设置方法
- Html导出Excel文件(兼容所有浏览器,支持设置文件名)
- linux下core文件设置与查看
- linux下查看CHM文件的工具,支持中文,图片
- 关于Tomcat的点点滴滴(体系架构、处理http请求的过程、安装和配置、文件夹结构、设置压缩和对中文文件名称的支持、以及Catalina这个名字的由来……等)
- iOS 如何让你的应用支持通过iTunes可以与应用文件共享(可以通过iTunes向documents文件夹下导入文件)
- 反编译sencha toucha打包的apk文件,修改应用名称支持中文以及去除应用标题栏
- iOS如何设置app支持文件共享
- Android应用内在线查看PDF文件
- 让服务器iis支持.apk文件下载的设置方法
- React-Native 在iOS9之后,网络请求默认为Https请求,如需支持Http,修改info.plist文件添加键值对设置允许http访问。
- Emacs文件编码的查看与设置
- [IOS]应用设置和用户默认设置(附Demo文件)
- 项目文件包含 ToolsVersion="12.0" 设置,而此版本的 MSBuild 不支持该工具版本
- 此数据库没有有效所有者,因此无法安装数据库关系图支持对象。若要继续,请首先使用“数据库属性”对话框的“文件”页或 ALTER AUTHORIZATION 语句将数据库所有者设置为有效登录名,然后再添加数据库关系图支持对象。
- Xcode非ARC项目中设置部分文件ARC支持
- UltraEdit设置文件默认查看方式 代码着色
- 怎么给电脑统一设置查看文件为列表形式?
- iOS 32位、 64位系统兼容性设置-Xcode创建支持IOS4.3以上版本的应用的方法