Alamofire compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64

前端 未结 4 987
被撕碎了的回忆
被撕碎了的回忆 2020-12-18 05:07

When I move my program to the XCode8, I got this error: Alamofire compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64. I ha

相关标签:
4条回答
  • 2020-12-18 05:09

    Update your cocoa pods and clear your derive data folder and try to run again.

    In xcode 8 derived data folder changed,

    Go to File -> Workspace setting -> then see this image,

    Click on -> on path and clear that derived data folder.

    0 讨论(0)
  • 2020-12-18 05:10

    For me the issue was with Carthage because i have set manualy the version of Alamofire the old version.

    github "Alamofire/Alamofire" ~> 3.0
    

    To solve the issue, Go in Cartfile and just delete the version like this :

    github "Alamofire/Alamofire"
    

    Go in the console and tap :

    carthage update

    Now your framework is generated with the good version

    0 讨论(0)
  • 2020-12-18 05:26

    If you are using Carthage, try run:

    carthage update --no-use-binaries
    
    0 讨论(0)
  • 2020-12-18 05:35

    Uninstall pods and install it again. Use below commands to install the pods in app

    1) pod repo update (make sure you are at root folder)

    2) sudo gem install cocoapods --pre (make sure you are at root folder)

    3) move to your application folder and run following command:

    pod init

    4) pod install

    Remove derived data folder, clean the app and run it.

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