Post not yet marked as solved
NSMetadataQuery fail in iOS17.2 with Error Domain=com.apple.accounts Code=7
ACErrorPermissionDenied
Post not yet marked as solved
Hi, I followed the instructions here: https://developer.apple.com/documentation/uikit/view_controllers/providing_access_to_directories
but when trying to get access to each file inside the selected folder (tried iCloud and iPhone) it always fails. Instead, if I specify a type of file on the Controller (say .audio) I can read the file fine...
Did anything change which is not documented in that page? Do I have to set any other permission or capability? (I have iCloud Documents)
Thanks!!
Post not yet marked as solved
Hi
I'm confused. Today my icloud drive folder started downloading files to my macbook. These files were stored in the cloud. There was a cloud icon with a down arrow next to them. Now over 11 gigabytes of files have now downloaded from the cloud. The icon is gone. Consequently, they have been uploaded to the macbook. How do I get them back into the cloud ? I'm confused about the actions and icons.
Post not yet marked as solved
Hi everyone,
I'm trying to implement matchmaking in visionOS using GameKit and GameCenter.
I'm following the example project that been shared but I get an error.
Error: The requested operation could not be completed because you are not signed in to iCloud..
I'm getting this error as a result of matchmaking. I'm already logged in to iCloud in Vision Pro Simulator. I've tried to switch off-on every related settings but didn't work.
I'm using latest Xcode Dev Beta and visionOS Beta v6.
Would you mind share me any workaround?
Regards,
Melih
Post not yet marked as solved
I'm testing disabling iCloud for my app (https://support.apple.com/en-gb/HT207689) and it's disabled in my main app but when I use the share extension it's always enabled. I would think that disabling iCloud would disable it for all extensions you might have in your app.
Is there no way to disable iCloud for an extension only for main app?
Post not yet marked as solved
Hello,
I am trying to use the SwiftUI fileImporter to get the URL of a direcotry and access it for the files in it.
If I follow the document( Access the directory’s content ) and use url.startAccessingSecurityScopedResource for each file, it always returns false. but this seems to be different from the documentation. If the current behavior is correct, will the documentation be updated in the future?
Related: Access all files in UIDocumentPick… | Apple Developer Forums
I asked this question because I am concerned that if I remove the standardAccessingSecurityScopedResource to match the current situation, the standardAccessingSecurityScopedResource may become necessary due to future iOS updates.
Also, is there any way to know if the status of the AccessingSecurityScopedResource?
It would be helpful if we could callstartAcesingSecurityScopedResource only when needed.
Thanks
Here is a sample code
@main
struct SampleApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
struct ContentView: View {
@State private var isShowingImportFolder = false
@State private var isShowingImportFile = false
var body: some View {
VStack(spacing: 48) {
Button("Read Folder") {
isShowingImportFolder = true
}
.fileImporter(isPresented: $isShowingImportFolder, allowedContentTypes: [.folder]) { result in
switch result {
case .success(let url):
processDirectory(url)
case .failure(let error):
print("failed. error: \(error)")
}
}
Button("Read File") {
isShowingImportFile = true
}
.fileImporter(isPresented: $isShowingImportFile, allowedContentTypes: [.data]) { result in
switch result {
case .success(let url):
readFile(url)
case .failure(let error):
print("failed. error: \(error)")
}
}
}
}
private func processDirectory(_ directory: URL) {
guard directory.startAccessingSecurityScopedResource() else {
fatalError("failed. directory.startAccessingSecurityScopedResource")
}
defer { directory.stopAccessingSecurityScopedResource() }
var error: NSError?
NSFileCoordinator().coordinate(readingItemAt: directory, error: &error) { url in
let urls = try! FileManager.default.contentsOfDirectory(at: url, includingPropertiesForKeys: [.nameKey, .isDirectoryKey])
urls.lazy
.filter { !$0.hasDirectoryPath }
.forEach { readFile($0) }
}
}
private func readFile(_ url: URL) {
guard url.startAccessingSecurityScopedResource() else {
print("failed access. \(url.path)")
return
}
defer { url.stopAccessingSecurityScopedResource() }
let data = try! Data(contentsOf: url)
print("file.path: \(url.path()), size: \(data.count)")
// read file...
}
}
Post not yet marked as solved
I'm able to get the access token by utilizing the "https://appleid.apple.com/auth/token" API.
However, when obtaining contact data from the iCloud API at "https://api.icloud.com/contacts/v1/me/contacts" using the same access token. I'm not getting any response.
I'm not sure whether the API is operational and live.
Or please suggest if there any other API for fetching iCloud contacts.
Additionally, I consistently receive a "invalid_scope" error when utilizing scope contacts with the "https://appleid.apple.com/auth/authorize" API.
Post not yet marked as solved
How are you guys, after update at 14.2 Sonoma all my iCloud library have Been down load on my Mac , usually I manage with right click , remove from download , but this option is gone .... I don't know I can manage , thank for any advise
Post not yet marked as solved
Hello all,
When I try to export the iMovie project into my photo library, it won't go through the "Space problem"
Though I have 55 GB remaining space, and the iCloud is enabled.
Any tips?
Post not yet marked as solved
I have recently got a new ipad and have turned off imessage and facetime sync in icloud and turned off imessage and facetime on the ipad itself. However, every morning I wake up to a message on my iphone saying imessage is now being used on another device and it turned itself back on, on the ipad. Does anyone know how I can stop this happening?
Thank you
Post not yet marked as solved
Apple has consolidated users iCloud data into iCloud.com.
our app uses iCloud to sync data between iOS devices - iPad and iPhone using Core Data and iCloud Documents. But, this data is not posted on iCloud.com.
It would be very useful, especially when iCloud fails to sync. When Apple does an Upgrade, say going from iOs 16to 17 and no way to retrieve the data.
Any other developers concur?
Post not yet marked as solved
My iCloud storage was full, and I noticed my MacBook was backing up to iCloud, which I didn't know - we just thought we were using iCloud backup for our iPhones. So to free up space, I disconnected iCloud from my MacBook - when I did, everything saved on my desktop disappeared.
The issue is that iCloud was full, so these files weren't backed up - now they are just gone. They aren't in my deleted items folder and they aren't in iCloud.
I don't understand why disconnecting iCloud from my MacBook would permanently remove files that were saved on my desktop. Does anyone know if there is a way to restore files from the desktop in a situation like this?
Post not yet marked as solved
When setting up a Finder Sync Extension, even when just using the minimal template given by the File → New → Target → macOS ones provided in Xcode, the right-click menu does not show up within iCloud Drive, while toolbar buttons always work.
Outside iCloud Drive multiple extensions show up when right-clicking on Finder's background.
When right-clicking inside iCloud Drive (here my synced Desktop folder), they do not show up.
Before macOS Sonoma this worked perfectly for me, but it broke beginning with the first beta. No Finder extension from any app (such as the Keka one) work anymore. I have seen it discussed that not more than one Finder extension can be active in a directory, but that is not true as can be seen in the first screenshot.
Q: How can I circumvent this issue?
Post not yet marked as solved
We use a test iPad to test new versions of our app as well as checking new (beta) versions of iPadOS. Our app - Rendezvous Appointment Book -uses iCloud to sync between the iPad and iPhone. So, when an entry is made on either the iPad or iPhone the entry is automatically synced to the other device(s). So, a user can make a client appointment on one device and it syncs to another iPad or iPhone logged into the same iCloud account. This has worked smoothly for years. But, the latest beta version - 17.8 caused a syncing issue where all the existing data that is stored on the same iCloud account did not sync.
We have seen this before.
Recently, starting with iPadOS/iOS 16.3 syncing failed for a number of users just on their iPads. The data stored on iCloud disappeared, but the iPhone did sync with iCloud. About 30 users could not get their data to sync at all , but the vast majority did sync. Some users who experienced the problem were able to sync by deleting the app and reinstalling it from the App Store, as per our recovery instructions. Then when version 16.4 was released all syncing worked as well as 16.5 and 16.6 which have worked perfectly.
When 17 beta was released we tested again for proper syncing, but ran into the same issue with version 17.3 beta - no sync again. But 17.6 beta did sync. Now, in testing this last Thursday with 17.8 beta the same issue reappeared on our test iPad.
We contacted Apple Developer support but have yet to get any resolution (and we are worried that when Apple releases 17 on Sep 11 the syncing issue might still rear its ugly head).
Has anyone seen this happen? BTW all other iCloud syncing worked correctly, e.g. Photos, backups, etc.
Post not yet marked as solved
Yesterday 8/31/23 around 2:00 pm I deleted documents from my iPhone - apparently I wasn't paying attention and it was deleted from iCloud Drive. I later was on my MacBook Pro running Ventura 13.5 and my desktop and folders are gone... I logged into iCloud and there is nothing under recently deleted. When I try to right click anywhere on the desktop I get The operation can't be completed a unexpected error occurred - error 8072.
When I go into finder I try to click desktop or documents I get- The operation can’t be completed because the original item for “Documents” can’t be found. The operation can’t be completed because the original item for “Desktop” can’t be found. I have gone into finder setting check - unchecked everything that I could from reading threads. I have started in safe mode I have run disk utility I logged out go Apple ID and back in... When I try to check the desktop and documents folder in settings it turns on and off quickly. I can turn it on through Settings general - storage. I am very frustrated and upset I did not ever choose permanently delete. Any help would be GREATLY appreciated. Thanks - Kim
Post not yet marked as solved
I was testing out iOS 17 Beta 5 with Advanced Data Protection turned on. I wanted to downgrade to iOS 16 for improved stability; however, once I downgraded all of my iCloud data was gone (~100GB) and about 10+ years of digital accumulation poof.
Yes, I'm on the correct iCloud account. Yes, I'm logged in. Yes, I've checked iCloud.com as well as my device. Yes, I went back to iOS 17 Beta 5 to see if my backup would show up but there is no data and no backup anywhere else. I was discussing with apple tech support for over an hour and they were unable to assist.
Just checking if anyone else might have suggestions on other things to try.
Post not yet marked as solved
Hello,
I need to get all files (recursively) from an iCloud Drive folder.
So I use UIDocumentPickerController with UTType.folder.
Then I use FileManager to get all files from the picked folder, but when I try to access it with startAccessingSecurityScopedResource it return false.
It's work perfectly if I dont get files by FileManager but directly by the UIDocumentPickerController when configured for multiple files selection.
How can I access to all files from a picked directory with permission granted ? Is it at least possible ?
Thanks
Post not yet marked as solved
While scrolling through the layout of the settings for iCloud on my iPhone, I came across this item titled "FTMessageStoreService" (screenshots attached). Does anyone
have information on this item and whether or not I should leave it?
Hello people,
I am currently experiencing a lot of disruption for the uploading of my files to the iCloud Drive. I have a folder that I share with some of my colleagues that contain some lectures notes and such, and I have two devices, a MacOS on the new Sonoma 14.0 Beta and an iPad on the 16.6 iPadOS. Recently the files started getting stuck upon upload and I think this started happening when I started sharing the folders with other people over iCloud.
I went through the internet multiple times to see if someone is having this problem and I willingly ran
sudo killall bird hoping it would fix my issue, but sadly it didn't.
Would appreciate any support on this, I am aware this might have a potential relation with the Beta MacOS.
Post not yet marked as solved
I have plenty of space in iCloud, and a very small backup to upload, but iCloud says backup cant be completed due to lack of storage. I am on latest ios17 beta. Any suggestions other than downgrading to non-beta version?