skip to Main Content

I’m writing this because it caused me a few hours of work today. I figured it out so now maybe somebody else won’t waste any time.

I’m an iOS developer and I use AppCode instead of Xcode.

I’m in the process of trying to update our app using Swift’s new concurrency features. We use Alamofire for REST stuff.

The problem:

Trying to use Alamofire’s concurrency methods in AppCode don’t show up as valid methods. The IDE/Compiler didn’t recognize the methods.

In my case, it was .serializingString().

2

Answers


  1. Chosen as BEST ANSWER

    Something about the Alamofire package isn't playing nice with AppCode.

    It all works just fine. You can write the code in AppCode, even though the IDE won't appear to understand what you're doing.

    I switched over to Xcode and everything looked nice. I ran it and it worked.


  2. Alamofire’s Concurrency support requires Swift 5.6 as of Alamofire 5.6. If AppCode’s compiler is behind it will report them as unavailable, as it can’t see into the swift(>=5.6.0) block.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search