Comments (4)
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](https://private-user-images.githubusercontent.com/1125539/340582378-536d68d8-aa82-42b4-bc01-2f8d98afda16.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NTgyMDcsIm5iZiI6MTcxOTc1NzkwNywicGF0aCI6Ii8xMTI1NTM5LzM0MDU4MjM3OC01MzZkNjhkOC1hYTgyLTQyYjQtYmMwMS0yZjhkOThhZmRhMTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MzBUMTQzMTQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWUyMmY4YzQ2M2MyODgwOTY1NDAxOTY2NDc2ZDA1YzM5ODJkODBmNDZmMzA4ZjFiYmYzMzNiNDEzN2NhMTBlYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.uvliF1c4qHU9ZQsYruVmhevnjycBdIm334_zuKc7yX0)
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.
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.
target visionOS 1.1
from swift-openapi-generator.
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)
- Support for XML request body and response body HOT 7
- Support schemas.type: string, format: uri generates URL property not String HOT 3
- How to support OAuth2 Password flows? HOT 3
- allOf plus properties HOT 2
- OpenAPI shared components HOT 4
- bug/regression: latest yams results in incomplete generation of types HOT 10
- Logging and HTTPBody HOT 3
- Merging oneOf with many compatible enums of a single value HOT 10
- anyOf encoder does not include discriminator's `parameterName` leading to incorrect encoding HOT 2
- Is there a workaround to deal with slow compilation times for a very large openapi file? HOT 3
- Empty arrays are omitted from query params HOT 5
- Support for `multipart/mixed`? HOT 1
- When a delete path do not have responses content an error generated HOT 2
- Add ability to attach protocols to generated models HOT 9
- Protocol where each `Output` conforms to HOT 3
- Make the generator usable on very big specs HOT 3
- Old and new examples HOT 3
- How to convert the binary obtained from the server into a playable Data type? HOT 2
- HTTPTypes linker error if multiple targets use open API generator HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-openapi-generator.