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
eskimo
(Quinn “The Eskimo!”)
2
I've been following the Swift package manager tutorial
Which one? I’m not familiar with a Swift package manager tutorial that references copyfile. If you could point me at the one you’re using, I might be able to give a better answer.
Oh, wait, it seems from this thread that you have other bigger problems with your Swift setup.
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple