mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +01:00
Fix 'The name for this app is invalid' error(#361)
Fix 'The name for this app is invalid' error when sideloading with non-ascii name ipa
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user