简体   繁体   English

在 Visual Studio 中构建 IOS 应用程序时出现问题

[英]Issue while building IOS app in visual studio

Severity Code Description Project File Line Suppression State Error The type 'CoreLocation.CLBeaconIdentityConstraint' (used as a parameter in CoreLocation.CLLocationManager/_CLLocationManagerDelegate.DidFailRangingBeacons) is not available in iOS 12.2 (it was introduced in iOS 13.0).严重性代码描述项目文件行抑制状态错误类型“CoreLocation.CLBeaconIdentityConstraint”(用作CoreLocation.CLLocationManager/_CLLocationManagerDelegate.DidFailRangingBeacons中的参数)在iOS 12.2中不可用(它在iOS 13.0中引入)。 Please build with a newer iOS SDK (usually done by using the most recent version of Xcode).请使用更新的 iOS SDK 构建(通常使用最新版本的 Xcode 完成)。

Note: I did not face this issue before a day, suddenly I was getting this Error,Can anyone help out.注意:我前一天没有遇到这个问题,突然我收到这个错误,任何人都可以帮忙。

OS version : 10.14.5 Xcode 10.2操作系统版本:10.14.5 Xcode 10.2

The latest version of Xcode is 11.3.1 and you are running 10.2. Xcode 的最新版本是 11.3.1,而您运行的是 10.2。 The message you posted suggests using the most recent version.您发布的消息建议使用最新版本。 Here is a post explaining how to upgrade Xcode: How do you update Xcode on OSX to the latest version?这是一篇解释如何升级 Xcode 的帖子: How do you update Xcode on OSX to the latest version?

In all likelihood, some change you made to the app caused the need to upgrade.很可能是您对应用程序所做的某些更改导致需要升级。

You recently use _CLLocationManagerDelegate.DidFailRangingBeacons in your project and it is only available in iOS 13.您最近在您的项目中使用了_CLLocationManagerDelegate.DidFailRangingBeacons ,它仅在 iOS 13 中可用。

While with XCode 10.2 you use, it uses sdk iOS 12.2.虽然您使用 XCode 10.2,但它使用 sdk iOS 12.2。 That method is not available under your current version of XCode so you get the error message.该方法在您当前版本的 XCode 下不可用,因此您会收到错误消息。

Solution is update both your Visual-Studio and XCode to meet the iOS 13 SDK requirement.解决方案是更新您的 Visual-Studio 和 XCode 以满足 iOS 13 SDK 要求。

Here is the Visual Studio 2019 Release Notes这是Visual Studio 2019 发行说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Visual Studio 2017更新到15.8.1 / 15.8.2之后的Xamarin Android App项目构建问题 - Xamarin Android App Project Building Issue after Visual Studio 2017 Update to 15.8.1/15.8.2 使用Xamarin.iOS时Mac的Visual Studio 2015 update2连接问题 - Visual Studio 2015 update2 connectivity issue with Mac while working with Xamarin.iOS 在Windows上构建时__IOS__上的Visual Studio编译器错误 - visual studio compiler errors on __IOS__ when building on windows Visual Studio Community 2022 for Mac 版本 17.0(内部版本 8989)有问题(iOS 应用程序未运行) - Visual Studio Community 2022 for Mac Version 17.0 (build 8989) have issue (iOS app not running) 在Visual Studio上导入更新的数据库时出现问题 - Issue while importing updated database on Visual Studio 在 Visual Studio 中构建单个小 exe 文件的问题 - Issue with building single small exe file in Visual Studio Visual Studio 2013中的iOS应用开发 - iOS app development in visual studio 2013 SharePoint 应用程序的 Visual Studio 身份验证问题 - Issue with Visual Studio authentication for SharePoint app App Fabric Visual Studio 2013问题 - App Fabric Visual Studio 2013 Issue Visual Studio 未构建项目的依赖项 - Visual Studio not building a dependency of a project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM