Giter Club home page Giter Club logo

Comments (4)

simonjbeaumont avatar simonjbeaumont commented on June 30, 2024 2

OK @koi646 I think you are trying to link _OpenAPIGeneratorCore in your visionOS app target, which will not work.

I have tested that I can build the HelloWorldiOSClientApp example project in this repo with the latest Xcode Beta for visionOS (changing only the "Base SDK" setting from iOS to visionOS).

To confirm this was the issue, I also added _OpenAPIGeneratorCore to the "Link Binary With Libraries" and reproduced a build failure at the same point in Yams.

This is an unfortunate and subtle trip hazard: when you add a package plugin to an Xcode project, it offers which of the library products from the package you'd like to link in your application and defaults to select _OpenAPIGeneratorCore. This library is only used by the generator itself.

In addition to trying to document this as best we can, we have some compiler guards in the _OpenAPIGeneratorCore that should fire to point you in the right direction:

image

What I'm seeing with Xcode beta is that this issue only appears in the issue navigator if you open PlatformChecks.swift file from the package dependency, which isn't very helpful.

Could you confirm that you see this behaviour too and, if so, file an issue with feedback assistant and paste the FB number here.

But, in summary, the solution to your actual problem is to audit your app target for this erroneous link dependency.

from swift-openapi-generator.

koi646 avatar koi646 commented on June 30, 2024 1

You are right, my friend. I made a foolish mistake. After unlinking swift-openapi-generator, the program compiled successfully. It is not a runtime package, but I misunderstood it at first.

from swift-openapi-generator.

koi646 avatar koi646 commented on June 30, 2024

target visionOS 1.1

from swift-openapi-generator.

simonjbeaumont avatar simonjbeaumont commented on June 30, 2024

Thanks @koi646, looks like Yams needs to either extend their if os(...) || os(...) || ... dance or instead replace with a #if canImport(Darwin).

Hang on, let me confirm a few things my end. This shouldn't be an issue because Yams is only used in the generator (not the generated code) so we don't need Yams for visionOS.

from swift-openapi-generator.

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.