Skip to content

error: The file “Resources” couldn’t be opened because there is no such file #9111

@kcieplak

Description

@kcieplak

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

https://github.com/atacan/swift-openai-api.git
MacOS

swift build `--buildsystem=swiftbuild` fails to build package
error: The file “Resources” couldn’t be opened because there is no such file.
error: CpResource /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@3/spi-workdir/F024C594-6887-429F-8352-1CFA1F7AD249/swift-openai-api/.build-swiftbuild/arm64-apple-macosx/Products/Debug/SwiftOpenAIAPI_OpenAIAsyncHTTPClientTests.bundle/Contents/Resources/Resources /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@3/spi-workdir/F024C594-6887-429F-8352-1CFA1F7AD249/swift-openai-api/Tests/OpenAIAsyncHTTPClientTests/Resources failed with a nonzero exit code
error: ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.6.sdk /private/var/lib/jenkins/workspace/swift_oss/swift-package-index-metrics@3/spi-workdir/F024C594-6887-429F-8352-1CFA1F7AD249/swift-openai-api/.build-swiftbuild/arm64-apple-macosx/SDKStatCaches.noindex/macosx15.6-24G5010s-6bc03b60bc3b31e1012288d66b31badf.sdkstatcache failed with a nonzero exit code
error: Build failed

Expected behavior

Builds

Actual behavior

Fails to build

Steps to reproduce

git clone https://github.com/atacan/swift-openai-api.git
swift build --build-system=swiftbuild

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions