Any changes to SPM 5.2 (with Xcode 11.4 Beta2) ? Pure Objective-C project which contains multiple targets now fail to integrate

Found the main reason of this bug, if using publicHeadersPath which match a directory contains both .h, .c, .m files, the source files (.c, .m) will be totally ignored.
See my test, first remove the publicHeadersPath:

When add the publicHeadersPath, test again:

Why SwiftPM 5.2 now design like this ? This break most 99% Objective-C project.

For C/C++ project, developer usually seperate the .h and .c/.cpp in different directory. But Objective-C, the .h and .m placed in the same directory. I don't find any Objective-C project which have a seperate include folder.

Should I fire Radar, or using the Swift Jira to fire this issue ?

1 Like