Skip to content

Commit

Permalink
chore(shorebird_cli): add xcarchive upload instructions to `release i…
Browse files Browse the repository at this point in the history
…os-alpha` (#1277)
  • Loading branch information
bryanoltman authored Sep 18, 2023
1 parent d255876 commit f195e97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,25 +212,26 @@ ${summary.join('\n')}

logger.success('\n✅ Published Release!');

final relativeArchivePath = p.relative(archivePath);
if (codesign) {
final relativeIpaPath = p.relative(ipaPath);
logger.info('''
Your next step is to upload the ipa to App Store Connect.
${lightCyan.wrap(relativeIpaPath)}
Your next step is to upload your app to App Store Connect.
To upload to the App Store either:
1. Drag and drop the "$relativeIpaPath" bundle into the Apple Transporter macOS app (https://apps.apple.com/us/app/transporter/id1450874784)
2. Run ${lightCyan.wrap('xcrun altool --upload-app --type ios -f $relativeIpaPath --apiKey your_api_key --apiIssuer your_issuer_id')}.
To upload to the App Store, do one of the following:
1. Open ${lightCyan.wrap(relativeArchivePath)} in Xcode and use the "Distribute App" flow.
2. Drag and drop the ${lightCyan.wrap(relativeIpaPath)} bundle into the Apple Transporter macOS app (https://apps.apple.com/us/app/transporter/id1450874784).
3. Run ${lightCyan.wrap('xcrun altool --upload-app --type ios -f $relativeIpaPath --apiKey your_api_key --apiIssuer your_issuer_id')}.
See "man altool" for details about how to authenticate with the App Store Connect API key.
''');
} else {
logger.info('''
Your next step is to submit the archive at ${lightCyan.wrap(archivePath)} to the App Store using Xcode.
Your next step is to submit the archive at ${lightCyan.wrap(relativeArchivePath)} to the App Store using Xcode.
You can open the archive in Xcode by running:
${lightCyan.wrap('open $archivePath')}
${lightCyan.wrap('open $relativeArchivePath')}
${styleBold.wrap('Make sure to uncheck "Manage Version and Build Number", or else shorebird will not work.')}
''');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ flutter:

expect(result, equals(ExitCode.success.code));
final archivePath = p.join(
tempDir.path,
'build',
'ios',
'archive',
Expand Down Expand Up @@ -675,7 +674,7 @@ error: exportArchive: No signing certificate "iOS Distribution" found
any(
that: stringContainsInOrder(
[
'Your next step is to upload the ipa to App Store Connect.',
'Your next step is to upload your app to App Store Connect.',
p.join('build', 'ios', 'ipa', 'Runner.ipa'),
],
),
Expand Down Expand Up @@ -748,7 +747,7 @@ flavors:
any(
that: stringContainsInOrder(
[
'Your next step is to upload the ipa to App Store Connect.',
'Your next step is to upload your app to App Store Connect.',
p.join('build', 'ios', 'ipa', 'Runner.ipa'),
],
),
Expand Down

0 comments on commit f195e97

Please sign in to comment.