Open

Description
iOS archiving, code signing, and exporting are fairly complex; the current implementation can only go so far esp. in some use cases, and the NS team has to constantly stay on top of it, like #2668.
Perusing ios-project-service, there are twists and turns to enable automatic or manual signing, juggle build configuration variables, hardcode xcodebuild parameters like exportOptionsPlist
, etc.
I suggest ditching all of that stuff and plugging in fastlane. It does almost everything, does it flexibly, and is constantly updated and maintained; using it takes a big load off the shoulders of devs here.
Ping @NathanaelA @Plamen5kov