Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add another xcodeproj as a dependency #224

Closed
codeOfRobin opened this issue Jan 19, 2018 · 6 comments
Closed

Add another xcodeproj as a dependency #224

codeOfRobin opened this issue Jan 19, 2018 · 6 comments

Comments

@codeOfRobin
Copy link

Hey Yonas!

Lots of times when I'm working on a dependency and an app together (like my swift API client and my app at work), I like to include the API client's xcodeproj (by simply dragging and dropping) so I can make changes and have them appear directly in my app. Is there any good way to support that kind of workflow with xcodegen?

@yonaskolb
Copy link
Owner

yonaskolb commented Jan 20, 2018

Hi @codeOfRobin
You could reference your API client as an implicit framework dependency, and then add both projects into a workspace.

api client spec

targets:
  API:
    type: framework
    ...

app spec

targets:
  app:
    ...
    dependencies:
      - framework: API.framework
         implicit: true

If your API client is simply an existing xcodeproj that will work too.

In the future we could even generate the workspace, as described here #168

Let me know if you have any troubles

@yonaskolb
Copy link
Owner

Did that all work out for you @codeOfRobin? Is it ok if I close this?

@codeOfRobin
Copy link
Author

Yeah, it did @yonaskolb ! Thank you for being so helpful 😄

@codeOfRobin
Copy link
Author

If your API client is simply an existing xcodeproj that will work too.

Question btw, could you refer to a project in a different folder altogether?

@yonaskolb
Copy link
Owner

Yeah sure, that's up to the workspace you create

@codeOfRobin
Copy link
Author

Ah, I didn't realize I'd have to manually create the workspace 😅. Can't wait for #168 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants