webex-ios-sdk icon indicating copy to clipboard operation
webex-ios-sdk copied to clipboard

module compiled with Swift 4.1 cannot be imported by the Swift 5.3.1

Open harshTechEfficio opened this issue 3 years ago • 8 comments

I'm getting below error, when I have added webexsdk using pods and run the application. "module compiled with Swift 4.1 cannot be imported by the Swift 5.3.1" I have checked it in Xcode 12.2 and 12.4

Sometimes the error says The following binaries use incompatible versions of Swift /Users/XXXXXX/Frameworks/Sbu.framework/Sbu

I have tried the below things.

  • Deleting Derived Data.
  • Checked if Command-line tools are correct.
  • Deleting pod.lock file
  • Updating Pods
  • Changing scheme to WebexSDK and building project, changing back to project scheme and building it.
  • Enabled "Build libraries for distribution" in build setting.

Kindly help me in solving the issue.

harshTechEfficio avatar Mar 24 '21 05:03 harshTechEfficio

Screen Shot 2021-04-01 at 5 56 11 PM can you try to switch the command line tool?

MrShiY avatar Apr 01 '21 09:04 MrShiY

@harshTechEfficio did you resolve this issue?

MrShiY avatar Apr 08 '21 03:04 MrShiY

I only have one XCode version and my Command Line Tools is pointed out to the correct version. I still get the same error. "module compiled with Swift 4.1 cannot be imported by the Swift 5.3.1"

harshTechEfficio avatar Apr 23 '21 11:04 harshTechEfficio

Are you using our example project? @harshTechEfficio

MrShiY avatar Apr 25 '21 10:04 MrShiY

Screen Shot 2021-04-25 at 6 37 23 PM or you can try to change swift version of SDK.

MrShiY avatar Apr 25 '21 10:04 MrShiY

In the example project, the SDK is working fine. I'm using pods to add the framework to my project. When I add it to my project it is throwing me an error.

harshTechEfficio avatar Apr 28 '21 04:04 harshTechEfficio

@harshTechEfficio Can you match your project setting with example project setting? I think WebexSDK is fine, may be due to project setting.

MrShiY avatar Apr 29 '21 05:04 MrShiY

Or can you try to create a new project and pod install WebexSDK ?

MrShiY avatar Apr 29 '21 05:04 MrShiY