fastlane sigh restored the provisioning profile needed for an iOS archive
Key points
- The iOS archive failed because an outdated local provisioning profile lacked
com.apple.developer.applesignin; the recorded fix was to retrieve and install the latest profile withfastlane sigh. (出典: 自社の実測(2026-06-07)) - The profile refresh required
SIGH_API_KEY_PATHto identify the JSON key file andenv -uto remove the conflicting environment variable pointing to the.p8file. (出典: 自社の実測(2026-06-07)) - Separate failures affected CocoaPods, review submission, and tester invitations, so correcting the signing profile addressed only one stage of the release. (出典: 自社の実測(2026-06-07))
The archive stopped at a missing entitlement
The release record describes a Capacitor iOS application submitted from a local Mac. Its workflow moved from web build and native synchronization to an archive, then through fastlane for IPA export, TestFlight upload, and review submission. The recorded sequence was demonstrated with build 52. (出典: 自社の実測(2026-06-07))
These were the commands recorded for the main release stages:
yarn mobile:sync:ios
yarn mobile:ios:archive
fastlane ios release
fastlane ios submit
The synchronization command covered the web build, Capacitor synchronization, and CocoaPods installation. The archive command incorporated the build number and performed signing. The release lane used gym to export the IPA and pilot to upload it to TestFlight. The submit lane used deliver for metadata, screenshots, and submission for review.
The signing failure occurred at the archive stage. The profile did not contain this entitlement:
com.apple.developer.applesignin
The record identifies the local provisioning profile as outdated. Its prescribed correction was to retrieve and install the latest profile using fastlane sigh.
That location in the sequence matters. The missing entitlement was an archive problem, before the recorded TestFlight upload and review-submission steps. A later submission error would describe a different failed operation. The record contains both kinds of failure, but it gives them separate causes and separate remedies.
Refreshing the profile also exposed an authentication-path conflict
In this release record, fastlane sigh is the command used to retrieve and install the latest provisioning profile.
The direct response to the archive failure was:
fastlane sigh
However, the profile-refresh step had its own authentication pitfall. The release used an App Store Connect API key, comprising a .p8 key, a Key ID, and an Issuer ID. The notes distinguish the private-key file from a JSON key file used for the sigh operation.
The recorded conflict involved this environment-variable name:
APP_STORE_CONNECT_API_KEY_PATH
When the authentication setup collided with that name, the notes report a JSON-reading problem. The remedy was to use SIGH_API_KEY_PATH for the JSON key file and remove the environment variable pointing to the .p8 file with env -u.
The JSON structure described in the material contains key_id, issuer_id, key, and in_house. The key field contains the .p8 contents, and in_house is false. That description establishes why the two paths cannot be treated as interchangeable in this incident: one identifies the private-key file, while the other identifies a JSON representation containing the key and its associated fields.
The record does not provide a complete shell invocation combining those settings. It does provide the corrective distinction: direct SIGH_API_KEY_PATH to the JSON file and remove the conflicting .p8 path variable for the operation. It also explicitly instructs that the private key must not be shared or printed and that temporary JSON must be deleted after use. (出典: 自社の実測(2026-06-07))
The surrounding failures belonged to different release stages
The profile issue was one of several obstacles in the same release workflow. Before the archive, CocoaPods installation could fail because the ios/App/build directory could not be removed. The record attributes that condition to Drive synchronization attributes. Its correction was to apply chmod -R u+w, remove the affected directory with rm -rf, and then run CocoaPods installation again.
A separate CocoaPods failure involved the Ruby environment. The notes say pod failed under system Ruby 2.6 and that the correction was to put the rbenv shims first in PATH. The recorded working combination was Ruby 3.3.6 with CocoaPods 1.16. (出典: 自社の実測(2026-06-07))
Neither of those corrections replaced the profile refresh. They addressed prerequisites in the synchronization and dependency-installation portion of the workflow. The archive failure instead pointed to the contents of the local signing profile.
The build number had another independent workaround. The archive command incorporated CURRENT_PROJECT_VERSION=IOS_BUILD_NUMBER, but obtaining the latest TestFlight build number through an older fastlane version could request Apple ID authentication. The recorded operating method was to use the latest build number in Git history and increment it, with 51 to 52 given as the example. (出典: 自社の実測(2026-06-07))
These details make the incident more specific than a general instruction to “fix signing.” The release depended on a writable build directory, the selected Ruby environment, the local provisioning profile, and the build-number input. The material records a different intervention for each.
Review submission and tester invitations needed separate fixes
After the archive and upload stages, submission could encounter this exact error:
A review submission is already in progress
The recorded cause was an older review submission still open in a state such as UNRESOLVED_ISSUES. The correction was to cancel the relevant review submission through Spaceship and then submit again.
The notes preserve these calls:
Spaceship::ConnectAPI.get_review_submissions(app_id: app.id)
target.cancel_submission
The important qualification is “the relevant review submission.” The record describes cancelling the older submission responsible for the conflict. It does not describe changing the provisioning profile again or treating an upload as proof that review submission had succeeded.
Tester invitations encountered a different API failure. The command fastlane pilot add returned:
v1/bulkBetaTesterAssignments does not exist
The workaround recorded for that failure was a direct API request. It used a self-generated ES256 JWT with PyJWT and POST /v1/betaTesters. The request supplied email, firstName, and lastName attributes and a relationships.betaGroups relationship. (出典: 自社の実測(2026-06-07))
This was a correction to the tester-addition step. The evidence supports that specific workaround for the reported endpoint failure; it does not establish that every fastlane operation needed replacement. In the same workflow, fastlane remained the recorded tool for profile retrieval, IPA export, TestFlight upload, and review submission. The direct request addressed the invitation operation that had returned the endpoint error.
The lesson: check the failed stage and the input it actually used
For a developer facing the same missing-entitlement message, the first comparison is concrete: does the archive failure identify com.apple.developer.applesignin, and is the local provisioning profile the outdated input? In this record, refreshing and installing the latest profile with fastlane sigh was the correction. The material does not establish a universal remedy for every archive failure.
The next comparison concerns authentication inputs. Check which environment variable names the JSON key file and which names the .p8 file. The recorded fix depended on that distinction, using SIGH_API_KEY_PATH and removing the conflicting variable with env -u. Merely having an API key available did not resolve the path conflict described in the notes.
For failures elsewhere, compare the operation and its evidence before reusing the signing remedy. A CocoaPods failure was checked against directory permissions or Ruby selection. An already-open review submission was checked against review-submission state. A tester invitation failure was checked against the endpoint error returned by pilot add.
The release record therefore supplies a practical inspection order: synchronization and dependency installation, archive and signing, export and upload, review submission, then tester invitations. At each stage, retain the exact error and check the corresponding recorded input or state. The useful result of this incident is that each correction has a defined scope, including the profile refresh that allowed the signing problem to be addressed without confusing it with the later submission and invitation failures.
Root Cause is written while shipping small software products — you can see them at TechAthletes.