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

Homebrew install not working - Ventura - SwiftPM Errors #69

Open
jmbly opened this issue Feb 15, 2023 · 3 comments
Open

Homebrew install not working - Ventura - SwiftPM Errors #69

jmbly opened this issue Feb 15, 2023 · 3 comments

Comments

@jmbly
Copy link

jmbly commented Feb 15, 2023

Terminal error when installing from homebrew in macOS 13.2 Ventura:

> Last 15 lines from /Users/redacted/Library/Logs/Homebrew/wallpapper/01.swift:
swift
build
--disable-sandbox
--configuration
release

warning: /Users/redacted/Library/org.swift.swiftpm/configuration is not accessible or not writable, disabling user-level configuration features.
warning: /Users/redacted/Library/org.swift.swiftpm/security is not accessible or not writable, disabling user-level security features.
warning: /Users/redacted/Library/Caches/org.swift.swiftpm is not accessible or not writable, disabling user-level cache features.
warning: 'wallpapper-1.7.3': failed loading cached manifest for 'wallpapper-1.7.3': Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/redacted/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x6000002a1f80 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
warning: 'wallpapper-1.7.3': failed closing cache: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/redacted/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x6000002a8060 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
error: 'wallpapper-1.7.3': Invalid manifest
/private/tmp/wallpapper-20230215-51517-6vb6i2/wallpapper-1.7.3/Package.swift:2:8: error: no such module 'PackageDescription'
import PackageDescription
       ^

@jmbly
Copy link
Author

jmbly commented Feb 16, 2023

Also happening in 1.7.4:

`Last 15 lines from /Users/redacted/Library/Logs/Homebrew/wallpapper/01.swift:
swift
build
--disable-sandbox
--configuration
release

warning: /Users/redacted/Library/org.swift.swiftpm/configuration is not accessible or not writable, disabling user-level configuration features.
warning: /Users/redacted/Library/org.swift.swiftpm/security is not accessible or not writable, disabling user-level security features.
warning: /Users/redacted/Library/Caches/org.swift.swiftpm is not accessible or not writable, disabling user-level cache features.
warning: 'wallpapper-1.7.4': failed loading cached manifest for 'wallpapper-1.7.4': Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/redacted/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x600003d0d7a0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
warning: 'wallpapper-1.7.4': failed closing cache: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/redacted/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x600003d00000 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
error: 'wallpapper-1.7.4': Invalid manifest
/private/tmp/wallpapper-20230216-3341-fu0jlh/wallpapper-1.7.4/Package.swift:2:8: error: no such module 'PackageDescription'
import PackageDescription
^`

@ac-cymk
Copy link

ac-cymk commented Mar 22, 2023

I solved it by running: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer thanks to https://forums.kodeco.com/t/server-error-no-such-module-packagedescription/177438

@kinleychen
Copy link

@ac-cymk Thank you.

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

3 participants