Comments (9)
Thanks for the clarification - since I suspect it's an issue with how the project is configured, I'm afraid I'll need you to create a smaller reproducer, and we can then figure out where the issue is.
from swift-openapi-generator.
Hi @kharezga,
I noticed in your sample project that you're using Swift OpenAPI Generator 0.2.x, which is over 6 months old.
Before I dig into the issue, can you please update to the latest version (1.2.x) and try again? It might already be fixed there.
Thanks
from swift-openapi-generator.
Hi @kharezga - you mention "Link Binary with Libraries", which is a concept used in Xcode projects, but you also provided a package manifest. Which are you using? Is there an Xcode project involved here? If so, do you have a small reproducer you could provide?
from swift-openapi-generator.
Apologies for the insufficient detail previously. I am currently developing an iOS application, which is architecturally segmented into multiple modules. Among these, a specific module is designated for handling network operations, which extensively utilizes OpenAPI specifications for its functionality. My objective is to execute the unit tests for my iOS application through the CLI to facilitate seamless integration with my CI/CD pipeline.
At the moment, I have not prepared a minimal reproducible example to illustrate this scenario. However, I can create one if necessary for further clarification.
The structure of my project is outlined as follows, indicating the segregation of modules within the application:
from swift-openapi-generator.
Hello @czechboy0, I've prepared a demonstrative project that encapsulates the issue we've been discussing. The project is available at the following repository.
Repro steps:
To reproduce the issue, please follow these steps within the repository's directory:
$ cd MyApp/MyApp/
$ xcodebuild \
-project MyApp.xcodeproj \
-scheme 'MyApp' \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' \
test
Note: For comparison, if you open Xcode and attempt to test the same scheme, everything works as expected without any issues.
I hope this information helps in isolating the problem. Looking forward to your insights and any further assistance you can provide.
from swift-openapi-generator.
Sure, I've bumped Swift OpenAPI Generator to version 1.2.1, but the problem remains unresolved.
from swift-openapi-generator.
Ok two changes you need to make this work:
- Fix up the relative path in the Xcode project from
../../MyCoolPackage
to../MyCoolPackage
- Don't pass the
-sdk
parameter to xcodebuild, just-destination
. It seems to force the plugin to be built incorrectly when passed explicitly.
If you believe (2) is not correct behavior, please file an issue on Xcode through feedbackassistant.apple.com. Thanks!
from swift-openapi-generator.
Indeed it works once I run the tests through the CLI, but once I do it with use od the Azure Pipeline's Xcode@5 I'm still facing the same issue since I'm not able to skip sdk
parameter there. Anyhow, thank you but your guidance so far.
from swift-openapi-generator.
Right, at this point, there's not much we maintainers of Swift OpenAPI Generator can do here. You'll either need to ask for a way to skip the flag in your CI, or file an issue on Xcode, or both. But since this doesn't seem to be a problem with this project, closing this issue.
from swift-openapi-generator.
Related Issues (20)
- Handle encoding and decoding errors in a middleware-like extension point HOT 15
- PlatformChecks emits error when compiling for MacCatalyst HOT 2
- Empty Dictionary fails to encode HOT 9
- How to calculate response length? HOT 6
- registerHandlers should throw an error if serverURL doesn't match documentation HOT 2
- Allowing disabling percent encoding for some HTTP header fields HOT 10
- Default responses lead to invalid Swift code HOT 4
- Issue Enabling OpenAPIGenerator Plugin for Xcode Cloud Build HOT 1
- More config options, including pointing to spec file location HOT 5
- Expose internal symbols HOT 4
- Questions re: anyOf/allOf/oneOf, and one more thing HOT 5
- Swift tools version 5.9.2 but the installed version is 5.9.0 HOT 4
- Parsing ISO8601 date time from server fails due to milliseconds HOT 2
- How to send a file in multipart/form-data? HOT 3
- Convert the repsonse to an array of structs HOT 8
- Streamlining Use HOT 10
- Re-enable strict concurrency checking for swift-openapi-urlsession
- How to throw errors that won't get transformed to ServerError? HOT 9
- Equatable conformance 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.