alamofire Questions
10
Solved
Recently I have started learning iOS app development using swift so I am new to it. I want to implement rest api call in swift & found that we can achieve this using URLRequest. So I have writt...
4
Not sure if that's an issue with Swift, XCode or Alamofire but I recognized strange behavior on different places within my mixed Swift/Objc app. It only happens in parts which are written in Swift ...
Hindoo asked 26/1, 2015 at 15:23
12
Solved
I am using Alamofire for network handling in swift and run into one weird error. It seems like we can't pass Method enum as parameter. [Error is on Method parameter]
private func apiRequest(meth...
8
Solved
How should I handle if there is an error occurs when there is no internet connection in Alamofire. I tried checking if data is nil or not but it does not work.
Below is how I use Alamofire
Alamof...
5
I have an NetworkRequest class, where all my Alamofire requests are made:
class NetworkRequest {
static let request = NetworkRequest()
var currentRequest: Alamofire.Request?
let dataManager ...
27
Cannot run app. Failed to load Info.plist from bundle error occurs.
When I CMD+K clean the project, it runs fine. But I have to clean the project every time I make changes and run the app.
Follo...
4
Hi I'm trying to create a custom SessionManager in Alamofire in order to change the default timeoutIntervalForRequest value. I'm using the code below:
let configuration=URLSessionConfiguration.de...
20
Solved
Using Xcode 7
I am trying to install Alamofire in a sample project. Have used the instructions from Ray Wenderlich's page
Only change from above link is the podfile -- which is from GitHub page h...
6
Solved
3
Solved
I am trying to download a file using AlamoFire and save it to a downloads directory of the user's choice (like safari). However, whenever I set the download directory to a folder outside of my app'...
9
Solved
I'm relatively new to iOS programming. However, I would have assumed that Swift would have an automated way of converting objects to JSON and vice versa. That being said, I have found several libra...
Anthology asked 12/8, 2015 at 16:58
3
Solved
I have an iOS app that pulls user data from the server in applicationDidBecomeActive.
If the user presses the home button, then returns to the app, either through the app icon or multitasking scr...
13
Solved
I am using Alamofire, very first time. I am using the latest version Alamofire 1.3.1. I want to send one image , one video and some POST parameters in one API call. I am using multipart form data. ...
3
Solved
I have a POST body paramter like this:
{
"id": 0,
"name": "string",
"contactInfo": "string",
"message": "string"
}
So since i am using the Alamofire for posting the parameters i am describin...
4
Solved
I am developing an app with Xcode 13.0 (13A233) on Macbook with an M1 chip. After updating pods to the latest version, the pods are complaining about error
CompileSwiftSources normal arm64 com.app...
Mangle asked 11/10, 2021 at 6:6
5
Solved
I'm working on Alamofire and I am trying to post a request to the server like this:
func sendRequest () {
print("fire now----------------------------------------------")
let parameters: Parame...
Greff asked 18/1, 2017 at 5:56
3
Solved
For this request:
Alamofire.request("https://google.com").responseCollection { (response: DataResponse<[User]>) in
guard response.result.isSuccess else {
print(response.error)
return
}
...
2
I have a series of HTTP requests made sequentially using Alamofire in a list of functions called in a main function, runTask() that I want to have the ability to stop. So, I set up the runTask() fu...
Tied asked 3/10, 2018 at 20:28
5
Solved
I'm using Alamofire, Objectmapper, Realm and everything is working beside one thing: I can't map nested objects.
class Voting: Object, Mappable {
dynamic var votingID: String = ""
dynamic var q...
Crepe asked 19/11, 2015 at 12:37
4
Solved
I am trying to make a post request with Alamofire 5. I have to use Dictionary<String, Any> for parameters. Because I am writing a wrapper for Alamofire. But it seems i can't be able to use An...
3
Solved
I want to upload an image file to the backend server, using certain URL endpoint. I can easily do that using Alamofire's upload request as multipartFormData. However I want to get rid of Alamofire ...
Parve asked 4/10, 2019 at 11:49
12
I would like to retrieve the HTTP response status code (e.g. 400, 401, 403, 503, etc) for request failures (and ideally for successes too). In this code, I am performing user authentication with HT...
4
I am developing static library for iOS, in which I am using Alamofire. When I try to build for release for simulator, everything is ok, however when I try to build it for device (release or debug) ...
Leatherleaf asked 6/4, 2017 at 10:30
16
Solved
I am using Alamofire 4.0.1 and I want to set a timeout for my request. I tried the solutions gived in this question:
In the first case, it throws a NSURLErrorDomain (timeout is set correctly):
le...
5
Solved
Error Domain=NSCocoaErrorDomain Code=3840 "Unescaped control character
around character 981." UserInfo={NSDebugDescription=Unescaped control
character around character 981.}
I am gett...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.