swiftScan
swiftScan copied to clipboard
Xcode 12 模拟器上运行报错:Value of type 'AVMetadataMachineReadableCodeObject' has no member 'corners'
![](https://user-images.githubusercontent.com/15935903/93552488-21c89380-f9a3-11ea-8a60-bd54e89d1ac2.png)
我特么也遇到这个问题了
屏蔽掉
应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。 来源:https://developer.apple.com/forums/thread/658471 原话:This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).
应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。 来源:https://developer.apple.com/forums/thread/658471 原话:This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).
有道理,针对模拟器屏蔽掉
应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。 来源:https://developer.apple.com/forums/thread/658471 原话:This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).
有道理,针对模拟器屏蔽掉
直接这样吗?
应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。 来源:https://developer.apple.com/forums/thread/658471 原话:This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).
有道理,针对模拟器屏蔽掉
直接这样吗?
看不到图片,直接针对模拟器处理代码就好,然后编辑就不会报错了
应该增加#if !targetEnvironment(simulator)判断。真机运行是没问题的。 来源:https://developer.apple.com/forums/thread/658471 原话:This happened before and is related to how obj-c symbols are imported in Swift, not deprecation/removal of API. corners at least exists in the non-simulator SDK, so you can perhaps work-around using #if !targetEnvironment(simulator).
有道理,针对模拟器屏蔽掉
直接这样吗?
是这样。
👍