Module compiled with swift 3.0 cannot be imported in Swift 3.0.1

后端 未结 9 1554
执念已碎
执念已碎 2020-11-30 21:59

I upgraded Xcode to 8.1 GM and am now getting the below error for SwiftyJSON. Other imported frameworks seem to work. Is there a way to force this to work in Swift 3 until S

9条回答
  •  时光取名叫无心
    2020-11-30 23:01

    1. Move the beta/GM version if the Xcode to /Applications folder and name it Xcode-beta

    2. Check the output of:

      xcrun swift --version

    by running this command in terminal, its output should match with the swift version you want the app to compile, because Carthage uses output of this command, to determine the local Swift version.

    1. Update Xcode version to latest on Terminal by running following command:

      sudo xcode-select -s /Applications/Xcode-beta.app/

    2. Build the libraries for iOS and prevents Carthage from downloading existing (yet incompatible) precompiled binaries, by running following command:

      carthage update --platform iOS --no-use-binaries

    3. Clean & Build

提交回复
热议问题