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

[SR-9018] Swift package manager requires sudo #4886

Open
swift-ci opened this issue Oct 16, 2018 · 2 comments
Open

[SR-9018] Swift package manager requires sudo #4886

swift-ci opened this issue Oct 16, 2018 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-9018
Radar None
Original Reporter Devack (JIRA User)
Type Bug
Environment

I tried this on macOS Mojave 10.14 and with XCode 10.0 (10A255)

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug, Screened
Assignee None
Priority Medium

md5: ea6bcc863dba786b811a0bb34593c504

Issue Description:

When i try to create a new component using swift package init all the files are created correctly, but i noticed that when i try to run "swift package resolve" or "swift build" the following error message is printed

error: manifest parse error(s):
<unknown>:0: error: cannot load underlying module for 'Darwin'

This problem is solved when i run the previously mentioned commands with sudo; for example if i run "sudo swift build" it builds correctly. Referring to the guide on this site it is never mentioned that i actually need sudo to use the swift package manager or maybe i missunderstood and it is actually needed.

@ankitspd
Copy link
Member

That is surprising. Could be a permissions problem with the installed Xcode. Can you try re-installing Xcode?

@swift-ci
Copy link
Contributor Author

Comment by Claudio (JIRA)

I had the same idea so i tried uninstalling XCode ( and the command line tools ) and reinstalling it; nothing changed at all.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants