Add support for Swift version independence#18637
Conversation
|
@AlvarHHM Could you please check this patch in your configuration? |
|
It will certainly work if I compile it myself with my own Xcode 12. The question should be does this patch solve the forward compatibility issue, i.e. can I import the binary compiled with Xcode 11 in Xcode 12. |
|
@AlvarHHM @alalek as per the explanation above - you will only get a version independent build when building with Xcode 12 (or greater) together with CMake 3.19 (or greater). This is due to the required functionality (support for Xcode new build system) not being available in earlier CMake versions due to bugs in Xcode that have only now been fixed in Xcode 12 |
|
I just tried, this does not work. It shows the same error |
|
Is this tested? I just built master branch with Xcode12.1 and run it with Xcode12.2 but it does not work. |
Add support for Swift version independence * Build for distribution (Swift version independence) when new Xcode build system is available * Add module map and set "Defines Modules" flag
This PR addresses #18489