Reputation: 40245
I am building iOS project on command line using xcodebuild. Building with Release configuration is ok which created and App.xcarchive. Then I am trying to export archive for App Store IPA using,
xcodebuild -exportArchive -archivePath App.xcarchive -exportPath ~/output/ -exportOptionsPlist appstore.plist
My appstore.plist,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>teamID</key>
<string>T3AM1D</string>
<key>method</key>
<string>app-store</string>
</dict>
</plist
This gives me error,
error: exportArchive: The operation couldn’t be completed.(IDEDistributionErrorDomain error 3.)
Any help will be appreciated.
Upvotes: 9
Views: 8531
Reputation: 1
In my case, my account session was expired as I changed my password, under signing and capabilities, I signed in again using my new password, and it worked as expected.
Upvotes: 0
Reputation: 2382
I got a similar issue while trying to upload my archived Ios build to testflight as shown in the image below.
The reason I got the issue was, I had poor internet connection.
What I tried: I just switched to a better network and got this resolved.
I hope this helps someone
Upvotes: 0
Reputation: 1
Credentialed provider request failed with error: "The request timed out"
just connect computer to your mobile hotspot .
Upvotes: -1
Reputation: 40245
Finally I was able to solve this issue.
Xcode
->targets
->Build settings
->Profiles and signing identity + team
Xcode
-> Product
-> Archive
-> export to App Store IPA
ran at least one timeXcode
is closedHope this helps
Upvotes: 8