After installing Xcode9, xcrun xcodebuild -exportArchive
started to ** EXPORT FAILED **
.
xcodebuild[8520:2065474] [MT] IDEDistribution: Step failed: IDEDistributionSigningAssetsStep: 0x7fd93ba747d0: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=( "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"MyApp_Today.appex\" requires a provisioning profile with the App Groups feature.
The error requires a provisioning profile with the App Groups feature.
is repeated multiple times.
The provisions are present for each target in the project, but for some reason it's no longer enough. What is this "App Groups feature" and how do I make it work with xcrun xcodebuild
?
Thanks.
I finally found a "solution".
The error message is misleading, since it has nothing to do with 'groups'.
Xcode 9, and its tools have changed!
Before Xcode 9, the ExportOptions.plist
did not require specification of provisions, it was automatically retrieved from the given target/scheme.
BUT, since Xcode 9, it's required that ExportOptions.plist
specify all the provisions for the given target/scheme.
You can read more here: https://blog.bitrise.io/new-export-options-plist-in-xcode-9