Module compiled cannot be imported
Closed this issue · 3 comments
While importing the heresdk
after my Pods installation, I get the following error.
Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.1 compiler: /Users/xxxxx/Desktop/xxxx/xxxx/xxxxx/heresdk.framework/Modules/heresdk.swiftmodule/x86_64.swiftmodule
I followed the steps on this answer on StackOverflow by changing my build settings but it did not work.
Can you try to compile the MSDKUI framework with Xcode 11.2.1 and see if that fixes your issue?
Due to a lack of storage, I'm not able to update Xcode. Is there any way to solve this issue without upgrading to Xcode 11.2.1? There must be a way to target the other versions of Xcode. If not, the documentation should be changed and mention the proper Xcode version(Currently it shows Xcode 11.0 I believe).
@obitodarky The MSDKUI officially still supports Xcode 11.1, as mentioned in the documentation. However, it should be possible to compile the framework for different Swift versions. If you haven't installed Xcode 11.2.1 then the MSDKUI lib is not the problem, but rather a newer HERE SDK version.
If you are using Xcode 11.1, then use one of the examples or the MSDKUI demo app to see if that works. Keep the pod file unchanged, it should automatically fetch the last supported HERE SDK version. PS: The error message you got seems different from the one of the StackOverflow link you've pasted. Hope this helps.