Open devchena opened 3 years ago
我特么也遇到这个问题了
屏蔽掉
应该增加#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).
有道理,针对模拟器屏蔽掉
直接这样吗?
是这样。
👍