cannot find type 'apirequests' in scope , Cannot find type 'RequestType' in scope and Cannot find 'ServiceStatusCode' in scope Showing error on Xcode 12.4 with M1 Chip

I just started a new project on Xcode 12 with Apple M1 Chip. I did run into issues when I was installing the pods but I was able to fix them using sudo arch -x86_64 gem install ffi then arch -x86_64 pod install. Now, the issue that I am facing is when I added the Alamofire pod for Api Networking. I got an error that said Cannot find type 'apirequests', 'RequestType' in scope and Cannot find type 'ServiceStatusCode' in scope.

<------------------------BaseRequest .swift------------------------>

<----------------------------------------------------------------->

<------------------------BaseResponse .swift------------------------>

<----------------------------------------------------------------------->

Answered by GursharanSachDeva in 678450022

@claude code working fine before update but after update it showing me error I google it and find these errors coming in M1 chip models but I can't find any solution

Where did you find that APIRequests is a defined type in Almofire ? Did you get a model for this func somewhere ? func sendRequestWithJson()

I do not find ServiceRequestDelegate in Alamofire doc. But there is RequestDelegate. Is ServiceRequestDelegate a protocol of your own ? What is Almofire we see at the top of error report ?

@Claude this code working fine before update but after update it showing me error

Accepted Answer

@claude code working fine before update but after update it showing me error I google it and find these errors coming in M1 chip models but I can't find any solution

So you may have to update the pod to the last version.

@claude code working fine before update but after update it showing me error I google it and find these errors coming in M1 chip models but I can't find any solution

cannot find type 'apirequests' in scope , Cannot find type 'RequestType' in scope and Cannot find 'ServiceStatusCode' in scope Showing error on Xcode 12.4 with M1 Chip
 
 
Q