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 example that builds with Xcode #45

Open
rauhul opened this issue Aug 6, 2024 · 5 comments
Open

Add example that builds with Xcode #45

rauhul opened this issue Aug 6, 2024 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rauhul
Copy link
Collaborator

rauhul commented Aug 6, 2024

We should have an example project that builds with xcodeproj for users in that ecosystem.

@rauhul rauhul added enhancement New feature or request help wanted Extra attention is needed labels Aug 6, 2024
@mredig
Copy link
Contributor

mredig commented Aug 28, 2024

This would make my workflow much easier if I knew how to do this.

@PaulSolt
Copy link

PaulSolt commented Sep 5, 2024

What needs to be done to allow building in Xcode?

Are there a rough series of steps or configurations?

@mredig
Copy link
Contributor

mredig commented Sep 5, 2024

Oh that's a good question - unless Paul wants to do this, I expect I'd be able to set it up given a little guidance.

@rauhul
Copy link
Collaborator Author

rauhul commented Sep 7, 2024

So I think we should probably choose a simple project in this repo that could host examples for multiple build systems. I would like that example to consist of at least 1 module and an end binary using that module.

Actually building the example in Xcode should be pretty straightforward. We just need to setup an xcconfig file with some EXTRA_SWIFT_FLAGS and enable WMO as well as create an xcproj with 2 targets (library and executable)

@mredig
Copy link
Contributor

mredig commented Sep 8, 2024

I've honestly never done anything outside the box like this with Xcode before. The most advanced skill I've gotten to myself is setting up some build configurations in the Xcode build settings.

I've seen xcconfig files and others in other projects, but never really dug into why I'd use them over the built in build settings, so I only have a small bit of familiarity with this...

However the biggest blocker I have is how to manage the build environment for Espressif idf "stuff" (I don't know what to call it). I installed a supporting pip package in a venv (which I can't remember which one it was, just that it's a dep of idf.py) and, once I'm in that env, I need to activate the idf env with export.sh. I don't know how to go about leveraging these sub environments in Xcode (and I also wouldn't want to install into the global namespace on my computer, nor require it on others via an example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants