Xcode No such module

I am trying to use cocoapod Alamofirein Swift. However, I get the error " No Such Module" when Import AlamofireI use Xcode 7.2 Alamofire 3.0 and Swift 2 The following are the steps I took

1) In the terminal I ran

$ sudo gem install cocoapods

There were no mistakes then

2) I ran

cd ~/Path/To/Folder/Containing/Project (once in the project folder I ran)

pod init

3) Then

open -a Xcode Podfile

4) Then I added

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'Alamofire', '~> 3.0' 

to subfile

5) Then I ran

pod 'Alamofire', '3.0'

followed by

pod install

I added $(SRCROOT)in runpathand buildpath.

"" , , , , . , , Swift . Alamofire pods? .

+4
1

pod init <YourProject>.xcworkspace <YourProject>.xcodeproj.

xcworkspace project pods pod install.

+7

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


All Articles