I have been facing this issue since the new xcode 13. I was able to build development and release builds from terminals with the same signing certificates and provisioning profiles with xcode 12.5. However, since the update the distribution build fails with the error:
Running command: xcodebuild -exportArchive -archivePath myApp.xcarchive -exportOptionsPlist /Users/yak/Desktop/Repo/for_build/app-tc/phonegap/platforms/ios/exportOptions.plist -exportPath /Users/yak/Desktop/Repo/for_build/projectfolder/phonegap/platforms/ios/build/device 2021-11-24 12:03:31.594 xcodebuild[7775:112423] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/kq/0jhmq0mn6mn25hp52_82evr40000gn/T/myApp_2021-11-24_12-03-31.593.xcdistributionlogs". Fatal error: 2021-11-24 12:03:31.748 xcodebuild[7775:112499] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
I have tried: deleting and creating new certificates, profiles, removing and adding from keychains etc. tried with new xcode 13 beta-2. Going back to xcode 12.5 is not an option for me.
But, the development build works fine. This error occurs while trying to get a distribution build. i build with:
grunt build:ios --target=production
Really appreciate any suggestions.Thanks. And sorry if i am not clear enough.