Xcode 12.5 - codebase not compiling and I am stuck! Please help!

Undefined symbols for architecture arm64:
"enum case for Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus.reachable(Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus.Type) -> (Alamofire.NetworkReachabilityManager.ConnectionType) -> Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus", referenced from:
closure #1 (Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus) -> () in Core.NetworkManager.listenForReachability() -> () in libCore.a(AlamofireNetworkManager.o)
"enum case for Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus.unknown(Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus.Type) -> Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus", referenced from:
closure #1 (Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus) -> () in Core.NetworkManager.listenForReachability() -> () in libCore.a(AlamofireNetworkManager.o)
"dispatch thunk of Alamofire.NetworkReachabilityManager.listener.setter : (Alamofire.NetworkReachabilityManager.NetworkReachabilityStatus) -> ()?", referenced from:
Core.NetworkManager.listenForReachability() -> () in libCore.a(AlamofireNetworkManager.o)
"enum case for Alamofire.AFError.responseSerializationFailed(Alamofire.AFError.Type) -> (Alamofire.AFError.ResponseSerializationFailureReason) -> Alamofire.AFError", referenced from:
closure #1 (Alamofire.DataResponse<Any>) -> () in closure #1 (RxSwift.AnyObserver<Foundation.Data>) -> RxSwift.Disposable in Core.HTTPNetworking.(createRequestObservable in D7FE3DD21657663ED8401567A6D2BD3A)(from: Foundation.URLRequest, isAuth: Swift.Bool) -> RxSwift.Observable<Foundation.Data> in libCore.a(HTTPNetworking.o)
"dispatch thunk of Alamofire.NetworkReachabilityManager.startListening() -> Swift.Bool", referenced from:
Core.NetworkManager.listenForReachability() -> () in libCore.a(AlamofireNetworkManager.o)
"dispatch thunk of CocoaMQTT.CocoaMQTT.unsubscribe(Swift.String) -> Swift.UInt16", referenced from:
Core.MQTTServerDelegate.mqtt(
: CocoaMQTT.CocoaMQTT, didConnectAck: CocoaMQTT.CocoaMQTTConnAck) -> () in libCore.a(MQTTService.o)
"dispatch thunk of Alamofire.NetworkReachabilityManager.isReachable.getter : Swift.Bool", referenced from:
static Core.Connectivity.isConnectedToInternet.getter : Swift.Bool in libCore.a(NetworkState.o)
"method descriptor for Alamofire.RequestRetrier.should(_: Alamofire.SessionManager, retry: Alamofire.Request, with: Swift.Error, completion: (Swift.Bool, Swift.Double) -> ()) -> ()", referenced from:
l_got.$s9Alamofire14RequestRetrierP6should_5retry4with10completionyAA14SessionManagerC_AA0B0Cs5Error_pySb_SdtctFTq in libCore.a(HTTPNetworking.o)
"dispatch thunk of CocoaMQTT.CocoaMQTT.dispatchQueue.setter : __C.OS_dispatch_queue", referenced from:
Core.MQTTService.connectIfNotConnected(home: Core.GetHomeResponse, token: Swift.String, delegate:


Could you show the code ?

There must be a place where you decode JSON (deserialize).
Maybe your JSON data is incorrect ?
That can cause such type of error (even though not the same error as yours) : https://stackoverflow.com/questions/46284163/alamofire-responseserializationfailedalamofire-aferror-responseserializationfai

Did it work before Xcode 12.5 ?
Are you sure to have the most recent Alamofire pod version ?
I cannot use latest Alamofire because after tag 4.8.2, they removed WWAN connectivity apis. That is critical for my app. The issue is not just with Alamofire. It is with SwiftSocket and CocoaMQTT libraries too. And the issue only came up after I upgraded my xcode.
So that could well be a compatibility issue between the pod and Xcode 12.5.

You'd better ask Alamofire editor.

after tag 4.8.2, they removed WWAN connectivity apis

Where did you read this ?
Unfortunately, that means that you will have to adapt your app anytime soon.
Xcode 12.5 - codebase not compiling and I am stuck! Please help!
 
 
Q