[SR-9554] Improve diagnostic for naming a project after a system framework, case-insensitively #52002
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
Additional Detail from JIRA
md5: c7fcd90f3c5d12c20491507b25000c8e
relates to:
Issue Description:
On a case-insensitive filesystem, if you make an app in Xcode named, say, "foundation", then
import Foundation
will give you a pretty lousy error message after the first build: "error: cannot load module 'foundation' as 'Foundation'". This is because Xcode provides an explicit search path to the build directory, and will generate a module for the app or framework target (foundation.swiftmodule).Ideally, we would keep searching to see if there really is a module with the proper case, but I'm not exactly sure how to do that.
The text was updated successfully, but these errors were encountered: