mczachurski / wallpapper

:computer: Console application for creating dynamic wallpapers for macOS Mojave and newer
MIT License
3.32k stars 136 forks source link

Homebrew install not working - Ventura - SwiftPM Errors #69

Open jmbly opened 1 year ago

jmbly commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@ac-cymk Thank you.