Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift build "fatal error: too many errors emitted" when specifying resources in Package.swift #7949

Open
1 task done
DordeDimitrijev opened this issue Sep 9, 2024 · 0 comments · May be fixed by #7962
Open
1 task done
Labels

Comments

@DordeDimitrijev
Copy link

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

When trying to compile code with swift build with added resource file such as PrivacyInfo.xcprivacy inside Package.swift compilation fails, please check the attachment for stacktrace output.
stacktrace.txt

Expected behavior

Expected behavior is for the swift to compile the library, which happens only if I don't specify anything in resources inside Package.swift

Actual behavior

SwiftPM fails due to many errors generated

Steps to reproduce

  1. git clone https://github.com/microsoft/plcrashreporter
  2. Run swift build
  3. Mentioned error occurs

Swift Package Manager version/commit hash

5.3

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

swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)

rjmansfield added a commit to rjmansfield/swift-package-manager that referenced this issue Sep 12, 2024
…ion.h

in languages that do not support it.

Add check the file extension for assembly files to not include
Foundation.h there as well.

Fixes: swiftlang#7949
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant