If I do a clean build, I get an Xcode error about the Swift compiler failing.
If I try swift run <myprogram> on the command line (after first removing the .build/ directory), I get errors:
Fetching https://github.com/jpsim/Yams.git from cache
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetched https://github.com/jpsim/Yams.git (0.63s)
Fetched https://github.com/apple/swift-argument-parser.git (0.74s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.04s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.0.2 (0.04s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.00s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.0.2 (0.00s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.0.2
/Users/stevelandey/dev/ios/scripts/modelgen/.build/x86_64-apple-macosx/debug/Yams.build/module.modulemap:2:12: error: header '/Users/stevelandey/dev/ios/scripts/modelgen/.build/x86_64-apple-macosx/debug/Yams.build/Yams-Swift.h' not found
header "/Users/stevelandey/dev/ios/scripts/modelgen/.build/x86_64-apple-macosx/debug/Yams.build/Yams-Swift.h"
^
/Users/stevelandey/dev/ios/scripts/modelgen/Sources/ModelgenLib/generate.swift:9:8: error: could not build Objective-C module 'Yams'
import Yams
^
The last two errors are repeated about 20 times but I omitted the repetitions to keep this issue short.
I'm using SwiftPM to install 4.0.6. Here's my Package.swift file:
If I do a clean build, I get an Xcode error about the Swift compiler failing.
If I try
swift run <myprogram>
on the command line (after first removing the.build/
directory), I get errors:The last two errors are repeated about 20 times but I omitted the repetitions to keep this issue short.