[SR-7160] Error if Foo.swiftmodule/ exists but not with the correct architecture #49708
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
improvement
serialization
Area → compiler: Serialization & deserialization
Additional Detail from JIRA
md5: 2d5c5e875fe850040a0a32b9cb23999c
Issue Description:
The structure of a framework Foo that has Swift parts looks like this:
(Bare Swift libraries use just the "Foo.swiftmodule" directory, but this applies to them too.)
If I try to import that into an app that's targeting iOS using arm64, I'll get a "no such module" error. Worse, if it's a mixed Swift/Objective-C framework, I'll just get the Objective-C parts, without the Swift, with no diagnostic. We should notice that Foo.swiftmodule exists but that the right architecture doesn't.
The text was updated successfully, but these errors were encountered: