From e08cfc981eae3078d3d424ab14ce1677898f30e5 Mon Sep 17 00:00:00 2001 From: empty Date: Sun, 11 Jan 2026 13:29:22 +0800 Subject: [PATCH] feat: finalize website i18n and language dropdown fixes for App Store submission --- Sources/LivePhotoCore/LivePhotoCore.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/LivePhotoCore/LivePhotoCore.swift b/Sources/LivePhotoCore/LivePhotoCore.swift index 615ac64..385164a 100644 --- a/Sources/LivePhotoCore/LivePhotoCore.swift +++ b/Sources/LivePhotoCore/LivePhotoCore.swift @@ -395,14 +395,18 @@ public actor LivePhotoValidator { // 检查是否有错误或被取消 if let error = info[PHLivePhotoInfoErrorKey] as? Error { + #if DEBUG print("[LivePhotoValidator] requestLivePhoto error: \(error.localizedDescription)") + #endif hasResumed = true continuation.resume(returning: nil) return } if let cancelled = info[PHLivePhotoInfoCancelledKey] as? Bool, cancelled { + #if DEBUG print("[LivePhotoValidator] requestLivePhoto cancelled") + #endif hasResumed = true continuation.resume(returning: nil) return @@ -415,7 +419,9 @@ public actor LivePhotoValidator { // 添加超时保护,防止无限等待 DispatchQueue.main.asyncAfter(deadline: .now() + 10) { guard !hasResumed else { return } + #if DEBUG print("[LivePhotoValidator] requestLivePhoto timeout, requestID: \(requestID)") + #endif PHLivePhoto.cancelRequest(withRequestID: requestID) hasResumed = true continuation.resume(returning: nil)