【发布时间】:2017-05-23 06:25:36
【问题描述】:
我正在尝试在 ios 设备中调试我的 xamarin 应用程序。但是午餐后它成功终止并且调试器被分离。
输出窗口中的消息是:
正在“Testsoft 的 iPhone”上启动“FormBot.iOS”... 该应用已被终止。
<?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>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIAppFonts</key>
<array>
<string>Fonts/proximanovalight.ttf</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>MinimumOSVersion</key>
<string>6.0</string>
<key>CFBundleDisplayName</key>
<string>GreenBot</string>
<key>CFBundleIdentifier</key>
<string>com.tatvasoft.allxamarin</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleIconFiles</key>
<array>
<string>Icon-72@2x.png</string>
<string>Icon-72.png</string>
<string>Icon@2x.png</string>
<string>Icon.png</string>
<string>Icon-60@2x.png</string>
<string>Icon-76.png</string>
<string>Icon-76@2x.png</string>
<string>Default.png</string>
<string>Default@2x.png</string>
<string>Default-568h@2x.png</string>
<string>Default-Landscape.png</string>
<string>Default-Landscape@2x.png</string>
<string>Default-Portrait.png</string>
<string>Default-Portrait@2x.png</string>
<string>Icon-Small-50@2x.png</string>
<string>Icon-Small-50.png</string>
<string>Icon-Small-40.png</string>
<string>Icon-Small-40@2x.png</string>
<string>Icon-Small.png</string>
<string>Icon-Small@2x.png</string>
</array>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>CFBundleShortVersionString</key>
<string>1.3</string>
<key>UIRequiresFullScreen</key>
<string>YES</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSCameraUsageDescription</key>
<string>This app needs access to the camera to take photos.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs access to photos.</string>
</dict>
</plist>
请帮助。提前致谢。
【问题讨论】:
-
你的应用是做什么的?你能显示一些代码吗?堆栈跟踪不显示任何内容?
-
应用程序在模拟器、android 设备上运行良好。所以代码没有问题。它是整个项目,所以我应该分享哪一部分代码?
-
这听起来像是 iOS 10 权限要求的权限问题。您的应用是否使用相机、位置、照片或任何需要用户许可的内容?
-
是的。它需要。但我也在 info.plist 中提供了这一点
-
你能用你的 info.plist 文件的打印屏幕更新你的帖子,并告诉你的应用程序正在尝试做什么操作吗?只是为了确认你没有错过任何东西
标签: xamarin xamarin.ios