您的位置:首页 > 移动开发 > IOS开发

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐