A minimal project to reproduce swiftlang/swift-package-manager#6948
- Clone this repository
- Open the
Package.swift
in Xcode, verify that yourDerivedData
folder is set to the default location (Xcode -> Settings -> Locations) - Try to build the package – you should be successful
- Now try to change the
DerivedData
location to a custom location on an external drive - Quit and re-launch Xcode
- Try to build the package again, you should now get the following error:
Error: You don’t have permission to save the file “Assets.generated.swift” in the folder “SwiftGenPlugin”.