Absolutely the same issue. Have no idea how to fix that.
Replying just to be notified if the solution's found and maybe to bump up the question a bit
Post
Replies
Boosts
Views
Activity
I'm making, for example, an export_options.plist file manually via script. that might help you to archive what you need.
ci_post_xcodebuild.sh
echo "Creating .PLIST"
output_file="export_options.plist"
rm -rf $output_file
plist_content="<?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>method</key>
<string>app-store</string>
<key>provisioningProfiles</key>
<dict>
<key>com..xxxxxxxx</key>
<string>match AppStore com.xxxxxxxx</string>
</dict>
<key>teamID</key>
<string>xxxxxx</string>
</dict>
</plist>"
echo "$plist_content" > "$output_file"
Could you please tell how you've managed to make an archive?
my code is not working:
xcodebuild archive -project MyProject.xcodeproj -scheme MyProject -archivePath MyProject.xcarchive
gives me in console of Xcode Cloud:
/Volumes/workspace/repository/MyProject.xcodeproj: error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "xxxxx" with a private key was found. (in target 'MyProject' from project 'MyProject')
the .IPA file will be in CI_APP_STORE_SIGNED_APP_PATH and you can access it from ci_post_xcodebuild.sh
not earlier obviously.
kinda:
cd $CI_APP_STORE_SIGNED_APP_PATH
ls -lh
turned out you can access the .IPA with:
cd $CI_APP_STORE_SIGNED_APP_PATH
ls -lh
in ci_post_xcodebuild.sh file
turned out you can access the .IPA with:
cd $CI_APP_STORE_SIGNED_APP_PATH
ls -lh
in ci_post_xcodebuild.sh file
you can add an access by creating .netrc file inside ci_post_clone.sh.
so, first of all create and add ci_post_clone.sh file docs are here: https://developer.apple.com/documentation/xcode/writing-custom-build-scripts
secondly, add something similar to my one:
#!/bin/sh.
rm -rf ~/.netrc
echo "machine bitbucket.org" > ~/.netrc
echo "login YOUR_LOGIN" >> ~/.netrc
echo "password YOUR_PASSWORD_OR_APP_TOKEN" >> ~/.netrc
echo "" >> ~/.netrc
echo "" >> ~/.netrc
chmod 600 ~/.netrc