Swift-frontend and sourceKitServices takes 30+GB memory

Hello team

From last 2 days I am facing issue as soon as my start Xcode and build application swift-frontend and sorucekitservices start and consume most of virtual memory as well as physical memory because of that system prompt "Force quit application".

where at time time only Xcode is running

My application simple and native only with out much pod dependency (written in Swift )

Can anyone step in to help me out.

Sorry about bad quality of image

I found the issue on code because of that those two services are running and taking memory here is the code

                let intArrayOfIds = self.respsonseDict.map{ Int($01234567890) ?? 0}
Swift-frontend and sourceKitServices takes 30+GB memory
 
 
Q