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

[SR-12448] Cannot build project with Swift 5.2, could for previous Swift versions #4572

Closed
swift-ci opened this issue Mar 29, 2020 · 3 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-12448
Radar rdar://problem/62201033
Original Reporter rexmas (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Swift 5.2 MacOS

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 1380550001d457aba0438817059bcde2

duplicates:

  • SR-12667 SwiftPM 5.3 treats all files under sources dirs are as source even in older manifests

Issue Description:

git clone https://github.com/remind101/AutoGraph

from master branch:

use `swift build` with swift version 5.1.3 (.swift-version is set to 5.1.3 if you're using swiftenv)

everything works

checkout swift-5.2-bug branch:

use `swift build` with swift version 5.2 (.swift-version is set to 5.2)

receive the following error:

'AutoGraph' /Users/Rex/Documents/remind101/AutoGraph: error: target at '/Users/Rex/Documents/remind101/AutoGraph' contains mixed language source files; feature not supported

This repo has been around for a few years and this is brand new error behavior.

@swift-ci
Copy link
Contributor Author

Comment by Rex Fenley (JIRA)

https://forums.swift.org/t/failing-to-build-on-swift-5-2/34945/3

It appears that `.plist` files must be excluded. Potentially a better error message would be helpful, `.plist` does not sound like "mixed language source files" or at least that does not seem obvious. Possibly state the offending file names?

Thank you

@beccadax
Copy link
Contributor

@swift-ci create

@abertelrud
Copy link
Contributor

This was actually a regression in 5.2, and the fix was approved for inclusion in the 5.2.x branch: https://bugs.swift.org/browse/SR-12667

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants