[英]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.