Skip to content

Commit

Permalink
Fix 'The name for this app is invalid' error(SideStore#361)
Browse files Browse the repository at this point in the history
Fix 'The name for this app is invalid' error when sideloading with non-ascii name ipa
  • Loading branch information
SoY0ung authored May 15, 2023
2 parents a9ce0f4 + 84e2284 commit 45b6c3b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion AltStore/Operations/FetchProvisioningProfilesOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,17 @@ extension FetchProvisioningProfilesOperation
}
}
}
//App ID name must be ascii. If the name is not ascii, using bundleID instead
let appIDName: String
if !name.allSatisfy({ $0.isASCII }) {
//Contains non ASCII (Such as Chinese/Japanese...), using bundleID
appIDName = bundleIdentifier
}else {
//ASCII text, keep going as usual
appIDName = name
}

ALTAppleAPI.shared.addAppID(withName: name, bundleIdentifier: bundleIdentifier, team: team, session: session) { (appID, error) in
ALTAppleAPI.shared.addAppID(withName: appIDName, bundleIdentifier: bundleIdentifier, team: team, session: session) { (appID, error) in
do
{
do
Expand Down

0 comments on commit 45b6c3b

Please sign in to comment.