You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee8ffde
Browse filesBrowse the repository at this point in the historyBrowse files
feat(install): support custom bundle identifier in Apple ID mode (#209)
The signing engine accepts --custom-identifier together with --apple-id,
but every entry point refused the combination. Worse, an Apple ID record
was keyed by the bundle identifier of the IPA and the account, so
installing the same IPA with and without a custom identifier collapsed
into a single record and the second install overwrote the identifier of
the first.
Key the record by the bundle identifier actually installed on the device
(COALESCE of signed_bundle_identifier, custom_identifier and
bundle_identifier, so the columns AutoMigrate leaves NULL on existing
rows are ignored) and pass the identifier to the engine in both signing
modes. A refresh passes it again: the stored IPA still carries the
original bundle identifier, so without it the app would be refreshed
under another App ID. The install is thus a second app on the device,
with its own record, App ID and expiry.
Also keep the identifier when the MCP tool queues an Apple ID install
(it validated the value but stored it only for external certificates)
and add it to the install queue key, so two installs of the same IPA
under different identifiers are both queued.
The install page shows the field in both modes in the tooltip style of
the app name field, previews the identifier of the chosen IPA, and
validates it before submitting.
Copy file name to clipboardExpand all lines: internal/mcp/tools/install.go
+20-15Lines changed: 20 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ type installAppInput struct {
25
25
AccountIDstring`json:"account_id,omitempty" jsonschema:"Optional Apple account ID (md5 of account email). Omit when signing_identity_id is set"`
26
26
SigningIdentityIDuint`json:"signing_identity_id,omitempty" jsonschema:"Optional imported signing identity ID: signs with that external certificate and provisioning profile instead of an Apple account. Omit account_id when set"`
27
27
RemoveExtensionsbool`json:"remove_extensions,omitempty" jsonschema:"Optional remove app extensions while installing"`
28
-
CustomIdentifierstring`json:"custom_identifier,omitempty" jsonschema:"Optional bundle identifier to install the app under, only with signing_identity_id. The IPA main bundle identifier is replaced by it in the app and its extensions. Omit to keep the IPA bundle identifiers"`
28
+
CustomIdentifierstring`json:"custom_identifier,omitempty" jsonschema:"Optional bundle identifier to install the app under, with either signing method. The IPA main bundle identifier is replaced by it in the app and its extensions. Omit to keep the IPA bundle identifiers. Installing the same IPA with and without it puts two different apps on the device and creates two records"`
"If device_id or the signing choice is omitted, this tool returns options for interactive selection. "+
78
78
"Ensure the user has confirmed the device and the account or signing identity before proceeding. "+
79
79
"Apps signed with an external certificate are not refreshed automatically and expire with their signing identity. "+
80
-
"They keep the IPA bundle identifiers unless custom_identifier is set; the provisioning profile decides their application identifier. "+
80
+
"Either signing method keeps the IPA bundle identifiers unless custom_identifier is set; with an external certificate the provisioning profile decides the application identifier. "+
81
+
"Installing the same IPA with and without custom_identifier installs two different apps on the device. "+
81
82
"After app install task is queued, call get_install_status to track progress.",
0 commit comments