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

Cannot find 'Glibc' in scope on Mac #817

Closed
paul-brenner opened this issue Mar 27, 2024 · 2 comments
Closed

Cannot find 'Glibc' in scope on Mac #817

paul-brenner opened this issue Mar 27, 2024 · 2 comments

Comments

@paul-brenner
Copy link

Context 🕵️‍♀️

I am trying to use XcodeProj for the ios app I'm building. I added it using SPM by adding a package dependency and pointing it to https://github.com/tuist/XcodeProj.git
but in XcodeProj/Extensions/Path+Extras.swift

#if os(macOS)
let systemGlob = Darwin.glob
#else
let systemGlob = Glibc.glob
#endif

I get Cannot find 'Glibc' in scope. Which seems to make sense since I'm compiling for an ios target. I'm sure I'm misunderstanding something very fundamental here either about xcode or XcodeProj. I would have thought this code should be

#if os(Linux)
let systemGlob = Glibc.glob
#else
let systemGlob = Darwin.glob
#endif

is XcodeProj not able to be used for ios projects? Am I just using it incorrectly?

@luispadron
Copy link
Collaborator

Which seems to make sense since I'm compiling for an ios target.

AFAIK XcodeProj is a macOS only library so compiling it for iOS is not supported

@paul-brenner
Copy link
Author

ah, I am pretty sure I was misunderstanding. I should not be adding this as a dependency to the ios project that I'm trying to control. My mistake

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