Since update to XCode 9.3, I can't archive my project

An interesting thing happened this morning, I updated Xcode to version 9.3, and after that, I can't archive my project. I can build it, run it on the device, but when I try to archive it, I get that I am missing some modules, like Alamofire, etc...

在这里输入图像描述

在这里输入图像描述

I am using cocoapods as dependency manager. And everything worked fine until this morning. Does anyone have the similar issue?


Reset Cocoa Pod

Remove Pod from your project and add again.

or

try sudo pod repo update or pod repo update


And one more importance thing you must be missing is:

Set your command line tool version, in your Xcode.

You can download latest command line tool from Apple Download Portal, if you have paid apple developer account/id.


Here is current stable Xcode Tools and supporting command line tool download link. (Ensure you'are logged in using premium developer account on Apple Developer Account to access these links)

Xcode 9

  • Xcode 9.3.1

  • Xcode 9.3
    - (Command Line Tool (Xcode 9.3) - for macOS 10.13)

  • Once you've latest command line tool installed in your system, set it from Xcode Menu.

    (Xcode Menu Items) Xcode ► Preferences ► Location ► Command Line Tool ► Select appropriate command line tool

    在这里输入图像描述

    在这里输入图像描述


    Update Alamofire in your pod file.

    Try this: Alamofire Installation

    pod 'Alamofire', '~> 4.7'


    Can you ensure that you have Swift version 4.1 when running xcrun swift -version

    Also try to build your project without Alamofire (comment it in Podfile), then compile again with Alamofire.

    Moreover are you sure you have opened the .xcworkspace instead of the .xcodeproj ? I know it might be dumb to ask, but it happens :)


    Make Sure you have accepted apple's agreement go to your apple account. I have recently faced this issue after updating my xcode to 9.3 swift 4.1 https://developer.apple.com/account/

    链接地址: http://www.djcxy.com/p/41422.html

    上一篇: 状态作为函数或对象文字返回

    下一篇: 自更新到XCode 9.3后,我无法将我的项目存档