I am developing a Swift Package for iOS. In using attempting to use the command line tool
swift build, it will result in
fatal error: 'UIKit/UIKit.h' file not found. I know my package is working properly, since I can import it via iOS apps.
It seems that
swift build is only configured to build for MacOS, and I don't see any options via
swift build --help to allow specifying the OS. Is there something I am missing, or is this a feature that is being developed? It would definitely speed up and improve the dev process for building Swift Packages.
Thank you for your help!