About Alamofire 4.0 + IOS 10.1+ xCode question

Hello everybody.


Good monring,There is a question for Alamofire.I used the component met a strange question

1. I config Podfile to install alamofire by pod install . it is successed

2. I am git the source code to my project . it is successed

3. Configure xCode targets->General->Embedded and add alamofire.framwork in config file, it is successed

4. add code "import Alamofire" in my code

question :

When I call the following function .I still not get the response. So I install wireshark to capture packets to check .but I always not find the packets to send .Who can help me .?


Alamofire.request("https:/

print(response.request) /

print(response.response) /

print(response.data) /

print(response.result) /

if let JSON = response.result.value {

print("JSON: \(JSON)")

}

}



thank you very much

Sorry the code is error I re-copy to following .


Alamofire.request("https://httpbin.org/get").responseJSON

{

response in

print(response.request) /

print(response.response) /

print(response.data) /

print(response.result) /

if let JSON = response.result.value

{

print("JSON: \(JSON)")

}

}

About Alamofire 4.0 + IOS 10.1+ xCode question
 
 
Q