Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 12 模拟器上运行报错:Value of type 'AVMetadataMachineReadableCodeObject' has no member 'corners' #98

Open
devchena opened this issue Sep 18, 2020 · 8 comments

Comments

@devchena
Copy link

@devchena devchena changed the title Xcode 12 运行报错 Xcode 12 运行报错:Value of type 'AVMetadataMachineReadableCodeObject' has no member 'corners' Sep 18, 2020
@devchena devchena changed the title Xcode 12 运行报错:Value of type 'AVMetadataMachineReadableCodeObject' has no member 'corners' Xcode 12 模拟器上运行报错:Value of type 'AVMetadataMachineReadableCodeObject' has no member 'corners' Sep 18, 2020
@andi911
Copy link

andi911 commented Sep 21, 2020

我特么也遇到这个问题了

@andi911
Copy link

andi911 commented Sep 21, 2020

屏蔽掉

@vjieshao
Copy link

应该增加#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).

@andi911
Copy link

andi911 commented Sep 21, 2020

应该增加#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).

有道理,针对模拟器屏蔽掉

@zzzkj
Copy link

zzzkj commented Sep 21, 2020

应该增加#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).

有道理,针对模拟器屏蔽掉

image
直接这样吗?

@andi911
Copy link

andi911 commented Sep 21, 2020

应该增加#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).

有道理,针对模拟器屏蔽掉

image
直接这样吗?

看不到图片,直接针对模拟器处理代码就好,然后编辑就不会报错了

@vjieshao
Copy link

应该增加#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).

有道理,针对模拟器屏蔽掉

image
直接这样吗?

是这样。

@devchena
Copy link
Author

devchena commented Oct 9, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants