Skip to content

Fix App Store submission: replace manual IPA zip with proper gym export and Apple Distribution signing#6

Merged
vickiegpt merged 2 commits intomainfrom
copilot/modify-fastlane-for-signature
Mar 19, 2026
Merged

Fix App Store submission: replace manual IPA zip with proper gym export and Apple Distribution signing#6
vickiegpt merged 2 commits intomainfrom
copilot/modify-fastlane-for-signature

Conversation

Copy link

Copilot AI commented Mar 19, 2026

altool was rejecting the IPA with "not signed using an Apple submission certificate" because the Fastfile bypassed xcodebuild -exportArchive — the step that re-signs with the distribution cert and embeds the App Store provisioning profile — by manually zipping the .app from the archive.

Changes

  • Remove manual IPA creation workaround — Drops the gym(skip_package_ipa: true) + FileUtils/zip block that produced an improperly signed IPA
  • Proper gym export with explicit export_options — Forces method: "app-store" and signingStyle: "manual" in the ExportOptions plist, overriding Xcode 26's tendency to inject method: development; includes explicit provisioningProfiles mapping for both app and extension targets
  • code_sign_identity: "iPhone Distribution""Apple Distribution" in both update_code_signing_settings calls to match what match appstore actually installs on Xcode 16+
gym(
  configuration: "Release",
  project: "Code.xcodeproj",
  scheme: "CodifyOne",
  output_name: "Code",
  output_directory: File.expand_path("..", __dir__),
  export_method: "app-store",
  export_options: {
    method: "app-store",
    signingStyle: "manual",
    provisioningProfiles: {
      DEVELOPER_APP_IDENTIFIER => "match AppStore #{DEVELOPER_APP_IDENTIFIER}",
      DEVELOPER_APP_EXTENSION_IDENTIFIER => "match AppStore #{DEVELOPER_APP_EXTENSION_IDENTIFIER}"
    }
  }
)

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…pp Store signing

Co-authored-by: vickiegpt <40686366+vickiegpt@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing or invalid signature in altool validation Fix App Store submission: replace manual IPA zip with proper gym export and Apple Distribution signing Mar 19, 2026
Copilot AI requested a review from vickiegpt March 19, 2026 00:24
@vickiegpt vickiegpt marked this pull request as ready for review March 19, 2026 00:25
@vickiegpt vickiegpt merged commit 3df61e3 into main Mar 19, 2026
1 check failed
@vickiegpt vickiegpt deleted the copilot/modify-fastlane-for-signature branch March 19, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants