GithubHelp home page GithubHelp logo

Comments (8)

andi911 avatar andi911 commented on May 24, 2024

我特么也遇到这个问题了

from swiftscan.

andi911 avatar andi911 commented on May 24, 2024

屏蔽掉

from swiftscan.

vjieshao avatar vjieshao commented on May 24, 2024

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

from swiftscan.

andi911 avatar andi911 commented on May 24, 2024

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

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

from swiftscan.

zzzkj avatar zzzkj commented on May 24, 2024

应该增加#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
直接这样吗?

from swiftscan.

andi911 avatar andi911 commented on May 24, 2024

应该增加#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
直接这样吗?

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

from swiftscan.

vjieshao avatar vjieshao commented on May 24, 2024

应该增加#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
直接这样吗?

是这样。

from swiftscan.

devchena avatar devchena commented on May 24, 2024

👍

from swiftscan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.