Skip to content

isAppStore is true on sideloaded IPA via AltStore #2418

@pfych

Description

@pfych

When sideloading via the AltStore the Bundle identifier isn't changed, causing the isAppStore check to incorrectly set to true.

public var isAppStore: Bool {
guard Bundle.main.bundleIdentifier!.hasPrefix("org.provenance-emu.provenance") else {
ILOG("Bundle id \(Bundle.main.bundleIdentifier ?? "null") is NOT official. Disabling Provenance Plus checks.")
return false
}
guard let appType = Bundle.main.infoDictionary?["PVAppType"] as? String else {
ILOG("appType \( Bundle.main.infoDictionary?["PVAppType"] ?? "null") is NOT official. Disabling Provenance Plus checks.")
return false
}
let isAppStore = appType.lowercased().contains("appstore")
if isAppStore {
ILOG("isAppStore true.")
} else {
ILOG("isAppStore false.")
}
return isAppStore
}

Expected:

isAppStore should be false

Actual:

isAppStore is true

Reproduce:

  1. Download IPA from github
  2. Sideload with AltStore
  3. Launch Provenance

APP VERSION

3.1.0

APP SOURCE

  • Provenance-Emu GitHub  (Official)

INSTALLED BY

Side-Loading

PLATFORM

iOS

iOS/tvOS VERSION

18.6


🚫 We DO NOT support unofficial builds installed from 3rd-party sites. (Official Install)
Need help or have a suggestion? Join our Official Discord

Metadata

Metadata

Assignees

No one assigned

    Labels

    appstoreRelated to Apple App Store buildsbugsomething broken that needs fixing, confirmed and reproduceable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions