Xcode 给出版本兼容性警告,原因不明
Xcode giving version compatibility warning for unknown reason
我认为这两个屏幕截图使这个问题不言自明。
我这是在吃疯狂的药吗?请帮忙。
这是您项目的Deployment Target
。检查 Target
的值。只需删除目标设置中的值,目标就会继承项目中的值。
You got this error because your version is lowest. so, you can add
this code on top of your function if you want to run your app in
lowest version.
@available(iOS 10.0, *)
func youFunctionName() {
}
if you want to run your app in letest version you can do it.
select your project -> General -> Targets -> Deployment Info -> Deployment
Targets -> 10.0
我认为这两个屏幕截图使这个问题不言自明。
我这是在吃疯狂的药吗?请帮忙。
这是您项目的Deployment Target
。检查 Target
的值。只需删除目标设置中的值,目标就会继承项目中的值。
You got this error because your version is lowest. so, you can add this code on top of your function if you want to run your app in lowest version.
@available(iOS 10.0, *)
func youFunctionName() {
}
if you want to run your app in letest version you can do it. select your project -> General -> Targets -> Deployment Info -> Deployment Targets -> 10.0