Skip to content

Commit 362675d

Browse files
committed
lc ci & workarounds
1 parent adf730f commit 362675d

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Nightly SideStore Build
22

33
on:
44
push:
5-
branches: [develop]
5+
branches: [develop, LiveContainerSupport]
66
paths-ignore:
77
- '**.md'
88
- 'LICENSE'

AltStore/SceneDelegate.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate
6666
// Flush any .ipa import that arrived before the scene was active (cold launch).
6767
guard let url = self.pendingImportIPAURL else { return }
6868
self.pendingImportIPAURL = nil
69-
NotificationCenter.default.post(name: AppDelegate.importAppDeepLinkNotification, object: nil, userInfo: [AppDelegate.importAppDeepLinkURLKey: url])
69+
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
70+
NotificationCenter.default.post(name: AppDelegate.importAppDeepLinkNotification, object: nil, userInfo: [AppDelegate.importAppDeepLinkURLKey: url])
71+
}
7072
}
7173

7274
func sceneDidEnterBackground(_ scene: UIScene)

SideStore/Views/Settings/Advanced/Certificates/CertificatesViewModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ class CertificatesViewModel: ObservableObject {
286286
func submitImportPassword() {
287287
guard currentImportIndex < pendingImports.count else { return }
288288
let pending = pendingImports[currentImportIndex]
289+
let _ = pending.url.startAccessingSecurityScopedResource()
290+
defer {
291+
pending.url.stopAccessingSecurityScopedResource()
292+
}
289293
guard let certData = try? Data(contentsOf: pending.url) else {
290294
failedImportsList.append("\(pending.filename): Failed to read file data.")
291295
importFailedCount += 1

0 commit comments

Comments
 (0)