0

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().

James Futures
  • 185
  • 2
  • 12

2 Answers2

1

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.

Jon Shier
  • 12,200
  • 3
  • 35
  • 37
  • I saw that while I was trying to figure out what was wrong. Xcode compiler was running 5.6. I guess I didn’t even realize that AppCode could be running a different version. – James Futures May 21 '22 at 05:08
  • so can I change it? or do i need to wait for AppCode update? – urSus Jul 14 '22 at 19:50
0

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.

James Futures
  • 185
  • 2
  • 12