Running demo step bring missing header file problem. Need to include new include path to resolve

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/ 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.



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