Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error install via cocoapod #433

Closed
datomnurdin opened this issue Apr 12, 2015 · 2 comments
Closed

Error install via cocoapod #433

datomnurdin opened this issue Apr 12, 2015 · 2 comments

Comments

@datomnurdin
Copy link

I think something wrong with the update.

screen shot 2015-04-12 at 4 59 28 pm

@cnoon
Copy link
Member

cnoon commented Apr 12, 2015

This is not a support forum.

You should open a question on StackOverflow and tag Alamofire. Please open a question with more details so someone can help you better troubleshoot your problem.


For anyone else out there having issues, please troubleshoot on your own before opening a issue. Below is a walkthrough of adding the Alamofire 1.2.0 pod to an iOS app built with Xcode 6.3 strictly by following the directions in the README.

Podfile

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

pod 'Alamofire', '~> 1.2'

ViewController.swift

import Alamofire
import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
            .response { (request, response, data, error) in
                println(request)
                println(response)
                println(error)
        }
    }
}

Build Log

build log

Xcode Output

<NSMutableURLRequest: 0x7fe20842a2e0> { URL: http://httpbin.org/get?foo=bar }
Optional(<NSHTTPURLResponse: 0x7fe208b10240> { URL: http://httpbin.org/get?foo=bar } { status code: 200, headers {
    "Access-Control-Allow-Credentials" = true;
    "Access-Control-Allow-Origin" = "*";
    Connection = "keep-alive";
    "Content-Length" = 410;
    "Content-Type" = "application/json";
    Date = "Sun, 12 Apr 2015 16:19:06 GMT";
    Server = nginx;
} })
nil

Everything works as expected.

@mattt
Copy link
Sponsor Contributor

mattt commented Apr 12, 2015

Thanks, @cnoon.

@mattt mattt closed this as completed Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants