Module compiled with Swift 4.0 cannot be imported in Swift 4.0.1

前端 未结 8 960
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 18:58

However I have recompiled the framework using the same Xcode and it still gives me this error.

  • Base SDK iOS 11.1 for both
  • Swift Language Version Swi
相关标签:
8条回答
  • 2020-11-29 19:35

    In my case (Xcode 9.2):

    I went to Xcode Preferences > Locations > Derived Data

    I then deleted the data and did a clean build and was ok.

    0 讨论(0)
  • 2020-11-29 19:40

    Install Xcode Toolchain of specific Xcode version which was working for you from here.

    An Xcode toolchain includes a copy of the compiler, lldb, and other related tools needed to provide a cohesive development experience for working in a specific version of Swift.

    Open Xcode's Preferences, navigate to Components > Toolchains , and select the installed Swift toolchain.

    This will let you compile and run the app for now.

    0 讨论(0)
提交回复
热议问题