The file “.swiftformat” couldn’t be opened because you don’t have permission to view it.
I have no reason what the issue might be - perhaps not even related to swiftformat? Because swiftformat runs fine in other projects. But this project is pretty new and really simple setup..
Xcode: Version 15.3 (15E204a)
macOS: 14.4 (23E214)
Installation in Xcode project:
unset SDKROOT
if [[ "$(uname -m)" == arm64 ]]; then
export PATH="/opt/homebrew/bin:$PATH"
else
export PATH="/usr/local/bin:$PATH"
fi
if ! which mint > /dev/null; then
echo "error: \`mint\` is not installed - install it using \`brew install mint\`"
exit 1
fi
mint run nicklockwood/SwiftFormat@0.53.5 . || exit 1
My .swiftformat:
--exclude DerivedData
I've tried changing permissions of the .swiftformat file as well, but no success:
I get this with the installation below:
The file “.swiftformat” couldn’t be opened because you don’t have permission to view it.
I have no reason what the issue might be - perhaps not even related to swiftformat? Because swiftformat runs fine in other projects. But this project is pretty new and really simple setup..
Xcode: Version 15.3 (15E204a) macOS: 14.4 (23E214)
Installation in Xcode project:
My
.swiftformat
:I've tried changing permissions of the
.swiftformat
file as well, but no success:If I remove the
.swiftformat
file and just do:I get:
Is it something related to Xcode sandboxing the run-phase?