如何解决Xamarin App:使用iOS> 12.4部署到iPad失败
我正在使用Visual Studio 2019(16.7.2),Mac OS Catalina 10.15.6,xamarin.ios 13.20.2.2和mono框架5.18.1.28测试我们的跨平台xamarin应用程序。如果我使用iPad(也是模拟器)> iOS 12.4,具有相同iOS版本(最高13.6)的iPhone,则部署失败。错误:导航到主页后(离开OnNavigatedTo()并返回Main()),我得到了黑屏(模拟器和真实设备)。没有崩溃日志将被写入。使用调试和发布配置。 该应用已被苹果拒绝,并显示错误消息(片段):
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000,0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: TCC,This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.
我将NSBluetoothAlwaysUsageDescription添加到了info.plist中,但没有帮助。
我的信息列表:
<plist version="1.0">
<dict>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>MinimumOsversion</key>
<string>9.0</string>
<key>CFBundleName</key>
<string>XXX</string>
<key>CFBundledisplayName</key>
<string>XXX</string>
<key>CFBundleIdentifier</key>
<string>XXX</string>
<key>CFBundLeversion</key>
<string>2.18.0</string>
<key>CFBundleIconName</key>
<string>AppIcon</string>
<key>CFBundleIconFiles</key>
<array>
<string>Icon-60@2x</string>
<string>Icon-60@3x</string>
<string>Icon-76</string>
<string>Icon-76@2x</string>
<string>Default</string>
<string>Default@2x</string>
<string>Default-568h@2x</string>
<string>Default-Portrait</string>
<string>Default-Portrait@2x</string>
<string>Icon-83.5@2x.png</string>
<string>Icon-Small-40</string>
<string>Icon-Small-40@2x</string>
<string>Icon-Small-40@3x</string>
<string>Icon-Small</string>
<string>Icon-Small@2x</string>
<string>Icon-Small@3x</string>
<string>fischer_icon_1024x1024.png</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera to take photos. You can take and save photos for applications,blocks and measurements</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library to select photos for applications,blocks and measurements.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app don't require access to microphone.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>This app requires access to the photo library to save photos for applications,blocks and measurements.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app requires access to location information. If activated in settings,it will be saved for each measurement.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>This app requires access to location information. If activated in settings,it will be saved for each measurement.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>This app requires access to location information. If activated in settings,it will be saved for each measurement.</string>
<key>NSCalendarsUsageDescription</key>
<string>This app don't require access to user's calender.</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>This app requires bluetooth to connect to XXX.</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>This app requires bluetooth to connect to XXX.</string>
<key>uibackgroundmodes</key>
<array>
<string>bluetooth-central</string>
</array>
<key>CFBundleShortVersionString</key>
<string>2.18.0</string>
<key>UIMainStoryboardFile</key>
<string>LaunchScreen</string>
<key>XSLaunchImageAssets</key>
<string>Resources/Test.xcassets/LaunchImages.launchimage</string>
<key>XSAppIconAssets</key>
<string>Resources/Test.xcassets/AppIcons.appiconset</string>
<key>UIRequiresFullScreen</key>
<true/>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>CalibrationRequest</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.fischer.calrequest</string>
</array>
</dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>com.fischer.calresponse</string>
</array>
</dict>
</plist>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。