fix(swiftpm): add macOS platform support and fix KRUIKit.h not found (#1552)