GithubHelp home page GithubHelp logo

Comments (9)

czechboy0 avatar czechboy0 commented on May 27, 2024 1

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.

czechboy0 avatar czechboy0 commented on May 27, 2024 1

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.

czechboy0 avatar czechboy0 commented on May 27, 2024

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.

kharezga avatar kharezga commented on May 27, 2024

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:

Screenshot 2024-02-15 at 19 08 30

from swift-openapi-generator.

kharezga avatar kharezga commented on May 27, 2024

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.

kharezga avatar kharezga commented on May 27, 2024

Sure, I've bumped Swift OpenAPI Generator to version 1.2.1, but the problem remains unresolved.

from swift-openapi-generator.

czechboy0 avatar czechboy0 commented on May 27, 2024

Ok two changes you need to make this work:

  1. Fix up the relative path in the Xcode project from ../../MyCoolPackage to ../MyCoolPackage
  2. 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.

kharezga avatar kharezga commented on May 27, 2024

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.

czechboy0 avatar czechboy0 commented on May 27, 2024

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)

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.