Hi, I've been following the Swift package manager tutorial and I keep encountering the following compilation errors.
warning: Swift error in scratch context: :5:9: note: in file included from :5::5:
import "copyfile.h"
^error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/copyfile.h:41:9: error: unknown type name 'uint32_t'
typedef uint32_t copyfile_flags_t;
^
I found that the missing include files can be found using the command
xcrun --sdk macosx --show-sdk-path
How do I include this path before I run swift in the command line so that I don't have to worry about it again? Preferably somewhere in the environment variable.
Thanks
Richard