Post

Replies

Boosts

Views

Activity

Reply to Can I launch a CarPlay Communication app on the XCode CarPlay simulator?
I wrote to Apple. (TSIs) Apple sent me a recommendation that I sent to you. Try this: • Regenerate your App ID and provisioning profiles. • Clean Xcode, manually import your provisioning profiles and manually sign your app. • Try a bundle ID that doesn't include the word CarPlay (this is last thing to try and would clearly be a bug in Xcode). It didn't solve my problem. Apple also proposes to base the ticket on: https://developer.apple.com/bug-reporting Did you try to report a bug? Do you have a bug number?
Nov ’20
Reply to Can I launch a CarPlay Communication app on the XCode CarPlay simulator?
I added "INStartAudioCallIntent" and "INSearchCallHistoryIntent" to the info.plist. My communication app appears on the CarPlay screen of the real device and the Simulator. I think that our problem was solved. In CarPlay documentation: VoIP calling must be handled using CallKit and SiriKit. Your app must support starting an audio call, and searching the user’s call history. Thanks for the tip, I'm going to try it.
Nov ’20
Reply to import pdf from url
Try this for download iCloudFile: url.startAccessingSecurityScopedResource() if !FileManager.default.fileExists(atPath: url.path), FileManager.default.isUbiquitousItem(at: url) {                 try FileManager.default.startDownloadingUbiquitousItem(at: url)                 startReadingStatus(for: url) { isSuccess in                     if isSuccess {                         do {                             try FileManager.default.copyItem(at: url, to: LOCAL_URL)                         } catch {                             print(error)                         }                     }                     url.stopAccessingSecurityScopedResource()                 }                 return true             }     internal func startReadingStatus(for url: URL, completion: ((Bool) -> Void)? = nil) {         DispatchQueue.main.async {             Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true, block: { [weak self] (timer) in                 guard let status = self?.downloadStatus(for: url)                 else {                     completion?(false)                     return                 }                 if status == URLUbiquitousItemDownloadingStatus.current {                     timer.invalidate()                     completion?(true)                 }             })         }     }          internal func downloadStatus(for url: URL) -> URLUbiquitousItemDownloadingStatus? {         do {             let attributes = try url.resourceValues(forKeys: [URLResourceKey.ubiquitousItemDownloadingStatusKey])             guard let status: URLUbiquitousItemDownloadingStatus = attributes.allValues[URLResourceKey.ubiquitousItemDownloadingStatusKey] as? URLUbiquitousItemDownloadingStatus             else {                 return nil             }             return status         } catch {             return nil         }     }
Feb ’23
Reply to In RPBroadcastSampleHandler not called `processSampleBuffer`
I found out that RPBroadcastSampleHandler does not have a problem directly with CallKit. The problem is that I use AVSampleBufferDisplayLayer to display during a video call. My problem is that if I use AVSampleBufferDisplayLayer.preventsCapture = true, the RPBroadcastSampleHandler extension does not start. I expected from the preventsCapture setting that only that part of the image would not be recorded.  Is it possible to keep this setting while still allowing screen recording to work?
Mar ’23