Builds for running (on the device/simulator) compile and execute properly. However, when I try to build for archiving, I get the following errors:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
pod 'Alamofire', '~> 3.0'
pod 'SDWebImage', '~>3.7'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod 'QRCodeReader.swift', '~> 5.2.1'
I solved the error. Error was in GoogleMaps latest version 1.12.2 & I changed
pod 'GoogleMaps' , '~> 1.11.1'
And it worked.
Check Pod dependencies with brute force,when such error occurs.