Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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...

enter image description here

enter image description here

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

like image 993
MegaManX Avatar asked Mar 30 '18 13:03

MegaManX


1 Answers

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 10

  • Xcode 10 - Beta 2
    - (Command Line Tool (Xcode 10 Beta 2) - for macOS 10.14)
    - (Command Line Tool (Xcode 10 Beta 2) - for macOS 10.13)

Xcode 9

  • Xcode 9.4.1
    - (Command Line Tool (Xcode 9.4.1) - for macOS 10.13)
  • Xcode 9.4
    - (Command Line Tool (Xcode 9.4) - for macOS 10.13)

  • 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

enter image description here

enter image description here


Update Alamofire in your pod file.

Try this: Alamofire Installation

pod 'Alamofire', '~> 4.7'

like image 117
Krunal Avatar answered Oct 09 '22 15:10

Krunal