swift-create-xcframework
swift-create-xcframework copied to clipboard
Error: Invalid product/target product but listed in available products
trafficstars
I am using this tool as a github-action for my package [Cabinet](https://github.com/ but it fails to find a product which is listed in the available products.
The product in question is a library which only combines other targets, see Package.swift
swift-create-xcframework version: 2.3.0
Swift version:
swift-driver version: 1.62.8 Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
Target: arm64-apple-macosx12.0
Environment: Xcode 14.0.1 macOS 12.6 xcode-select version 2395.
Checklist
- [X] If possible, I've reproduced the issue using the
masterbranch of this package - [X] I've searched for existing GitHub issues
Steps to Reproduce
- Clone the repository:
git clone https://github.com/philprime/Cabinet
- Run the command:
swift-create-xcframework
- Inspect the error:
debug: evaluating manifest for 'cabinet' v. unknown
debug: evaluating manifest for 'flow' v. 1.0.0
debug: evaluating manifest for 'cabinet' v. unknown
Error: Invalid product/target name(s):
Cabinet
Available Cabinet products:
Cabinet
CabinetCoding
CabinetCollections
CabinetCrypto
CabinetFoundation
CabinetPartialTypes
CabinetPropertyWrappers
CabinetSwiftUI
Additional available targets:
CabinetCore
Flow
Usage: command [<options>] [<products> ...]
See 'command --help' for more information.
Expected behavior
It should build the frameworks
Actual behavior
The target is not found and it throws an error, but also lists the target name in the list Available Cabinet products