Bekomme immer build error : No such module 'Alamofire'

Folgte ich der Anleitung von Alamofire im github,

Erstellte ich ein xcode-Projekt mit dem Namen cocoapods-test & ich Schloss es.

Gehe ich an den Projekt-Ordner befinden, führen pod init Befehl generiert ein Podfile. Dann habe ich folgenden code Hinzugefügt, um das Podfile:

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

pod 'Alamofire', '~> 3.0'

Dann habe ich den Befehl " ausführen pod install und das ist das Ergebnis in terminal:

Updating local specs repositories

CocoaPods 1.0.0.beta.6 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Analyzing dependencies
Downloading dependencies
Installing Alamofire (3.3.0)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `cocoapods-test.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

Dann in meinem Projekt-Ordner eine neue Datei namens cocoapods-test.xcworkspace . Ich doppelt angeklickt, öffnet mein xcode wieder, und ich kann sehen, dass die Alamofire Modul.

Dann öffnete ich mein Projekt ViewController Klasse, und import Alamofire . Aber egal wie oft ich sauber & bauen, ich bekomme immer Fehler No such module 'Alamofire' . Hier ist der screenshot:

Bekomme immer build error : No such module 'Alamofire'

Warum bekomme ich dieses problem obwohl ich folgte der Anleitung Schritt für Schritt?

(Ich bin mit XCode 7.2.1, Swift 2.1.1 & Alamofire 3.3.0)

======= UPDATE ========

Habe ich versucht @LK Yeung 's Antwort kommentieren import Alamofire, dann sauber & wieder aufbauen, habe ich ein paar compiler-Fehler aus Alarmofire:

Bekomme immer build error : No such module 'Alamofire'

"Sie müssen hinzufügen der lib zu "Link-Binary Mit Bibliotheken' Abschnitt auch." stackoverflow.com/questions/25817479/...
Nein, der link, den Sie bieten, ist eine ganz andere Art der Installation von Alamofire. Es lädt die Bibliothek, aber ich bin mit der Art und Weise Alamofire github vorgeschlagen, die ist durch cocoapod tool. Sie sind anders. In der "Link Binary With Library", die ich gar nicht sehen Alamofire Rahmen. Da ich die Installation in die andere Richtung, bitte Lesen Sie mein post, ich habe gesagt, Schritt für Schritt, wie ich es installieren.
Die Anleitung auf stackoverflow.com/a/40360050/1804274 mein Problem gelöst

InformationsquelleAutor Leem.fin | 2016-03-31

Schreibe einen Kommentar