mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
cmd/gio: list available bundle ids when no match was found
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-1
@@ -88,6 +88,7 @@ func signIOS(tmpDir, app, ipa string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
provInfo := filepath.Join(tmpDir, "provision.plist")
|
provInfo := filepath.Join(tmpDir, "provision.plist")
|
||||||
|
var avail []string
|
||||||
for _, prov := range provisions {
|
for _, prov := range provisions {
|
||||||
// Decode the provision file to a plist.
|
// Decode the provision file to a plist.
|
||||||
_, err := runCmd(exec.Command("security", "cms", "-D", "-i", prov, "-o", provInfo))
|
_, err := runCmd(exec.Command("security", "cms", "-D", "-i", prov, "-o", provInfo))
|
||||||
@@ -114,6 +115,7 @@ func signIOS(tmpDir, app, ipa string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
expAppID := fmt.Sprintf("%s.%s", appIDPrefix, *appID)
|
expAppID := fmt.Sprintf("%s.%s", appIDPrefix, *appID)
|
||||||
|
avail = append(avail, provAppID)
|
||||||
if expAppID != provAppID {
|
if expAppID != provAppID {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -144,7 +146,7 @@ func signIOS(tmpDir, app, ipa string) error {
|
|||||||
_, err = runCmd(exec.Command("codesign", "-s", signIdentity, "--entitlements", entFile, app))
|
_, err = runCmd(exec.Command("codesign", "-s", signIdentity, "--entitlements", entFile, app))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return fmt.Errorf("sign: no valid provisioning profile found for bundle id %q", *appID)
|
return fmt.Errorf("sign: no valid provisioning profile found for bundle id %q among %v", *appID, avail)
|
||||||
}
|
}
|
||||||
|
|
||||||
func exeIOS(tmpDir, target, app string, bi *buildInfo) error {
|
func exeIOS(tmpDir, target, app string, bi *buildInfo) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user