Since upgrading to Xcode 9.3, I cannot archive my project

Interestingly, this morning I updated Xcode to version 9.3, and after that I can not archive my project. I can create it, run it on the device, but when I try to archive it, I understand that I am missing some modules, such as Alamofire, etc.

enter image description here

enter image description here

I use cocoapods as a dependency manager. And everything went fine until this morning. Does anyone have a similar problem?

+5
source share
2 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 important thing that you should miss:

Install the command line tool version in Xcode.

You can download the latest command line from the Apple Download Portal if you have a paid Apple developer account / id.


Here are the current stable Xcode tools and link support for downloading the command line tool. (Make sure you are logged in using the premium developer account on your Apple Developer account to access these links)

Xcode 9

Once you have the latest command line tool installed on your system, install it from the Xcode menu.

(Xcode menu items) Xcode β–Ί Preferences β–Ί Location β–Ί Command Line Tool β–Ί Select the appropriate command line tool

enter image description here

enter image description here


Update Alamofire in your swap file.

Try the following: Install Alamofire

pod 'Alamofire', '~> 4.7'

+1
source

Can you make sure you have Swift version 4.1 when running xcrun swift -version

Also try creating your project without Alamofire (comment it in the Podfile), and then compile again with Alamofire.

Also, are you sure you opened .xcworkspace instead of .xcodeproj ? I know this may be silly to ask, but it happens :)

+1
source

Source: https://habr.com/ru/post/1276185/


All Articles