iCloud Drive

RSS for tag

iCloud Drive safely stores any kind of file so it can be accessed in iCloud-enabled apps on iPhone, iPad, Mac, or PC.

Posts under iCloud Drive tag

200 Posts

Post

Replies

Boosts

Views

Activity

Is there ability to get some unique value that associated with users appleId?
We are implementing some logic that requires to know users appleId or unique value associated with appleId which downloaded the application. I found an opaque token ubiquityIdentityToken that represents the current user’s iCloud Drive Documents identity. But it doesn't cover the scenario when user is logged in with appleId on device but iCloud is turned off - the value of this property is nil(according to documentation). I tried to implement User Authentication with Sign in with Apple but user can authenticate with option "Hide my email" and proxy email doesn't guaranty that it is permanent associated email. Is there ability to get some unique value that associated with users appleId? Thanks for advices.
0
0
735
Mar ’23
iCloud GameCenter saves questions
Hi there, We have published a game with iCloud save options, and we have gotten some reports from players that are having some kind of issue with their saves getting erased. When testing the game build, everything seems in place and we can't replicate the error, which makes us thing the issue is related with the iCloud save storage. We would like to run some tests by disabling this feature to confirm our suspects, but we are afraid of the impact over the existing player base who has no issues with their saves.  Is there any way of running this test in a controlled environment i.e testing group? We have seen the disable option in our dashboard, which indicates you need to enable/disable this feature when publishing a new build. Is there anything else we should have in mind? If we disable the iCloud saving, are the local saves of the players safe? We are worried about hypothetical issues where the lack of this feature overwrites with "no save" the existing local save on the phone.   Thank you!
0
0
606
Mar ’23
NSUbiquitousContainerName
Hello All,I am having trouble to getting my application name(NSUbiquitousContainerName) under iCloud Drive > Manage Storage.It takes default bundle identifier "AppList" as a application name under Manage Storage. I want App List(Blank space between App List) under iCloud Drive > Manage Storage. i also updated version and build number of the app.I have added the following in my info.plist file :<dict> <key>iCloud.com.applist.AppList</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerName</key> <string>App List</string> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>One</string> </dict></dict>I have added the following in my entitlements file :<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>com.apple.developer.icloud-container-identifiers</key> <array> <string>iCloud.$(CFBundleIdentifier)</string> </array> <key>com.apple.developer.icloud-services</key> <array> <string>CloudDocuments</string> <string>CloudKit</string> </array> <key>com.apple.developer.ubiquity-container-identifiers</key> <array> <string>iCloud.$(CFBundleIdentifier)</string> </array> <key>com.apple.developer.ubiquity-kvstore-identifier</key> <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string></dict></plist>Can any one help to resolve this issue.- Nandpal
1
1
2.6k
Feb ’23
CloudKit record exists (added days ago), does not get returned by query but can be fetched by ID
I have a situation where a CloudKit record is not being returned by a query (and also doesn't appear in the CloudKit dashboard), but it exists when fetching it by it's ID.The record was added days ago, so it really should have been indexed.The record ID metadata index has always been set for the record type.The query I use is fetching all records for a particular record type in a custom zone.Strangely, when I search for the record in the dashboard and select it, the record name field is blank on the detail panel.It's very peculiar, and very concerning!Anyone have any ideas?
7
0
4.4k
Feb ’23
CKRecordValue type NSDate stores nil value?
In the development of an app, one of its UITextField is designed to allow users to use input view of datePicker view to pick a date and also allows the users to delete a displayed date via clear button as a overlay view in the textField while edting. Data is stored via Cloudkit and a CKRecordValue type - NSDate is used for that UITextField. My question is how to change the NSDate to reflect the user deleting an existing date on the textField? It seems NSDate can't be nil as I got atomic error when trying to save a nil date. Direct database like MySQL gives an option of null value and I wonder if we may set a NSDate type to allow nil input?
4
0
1.8k
Feb ’23
Different Files app behaviour on iPhone vs iPad
Dear Experts, I am confused by what seems to be a difference in behaviour of the Files app on an iPhone compared to an iPad. On the iPad, I seem to be able to view my app's Documents/ folder; on the iPhone, I can't. On the other hand I can access the app's iCloud documents on both devices. Is this the expected behaviour? If so, what is the rationale? Thanks, Phil.
1
0
974
Feb ’23
iCloud+ custom domain error: "Check your TXT Record"
I'm running into the same problem as many other folks I've seen on the developer.apple.com. However, none of them have solutions yet. I run a small ISP and we have our DNS on OpenSRS Managed DNS. 2 Questions: Do these DNS entries look correct? I've quadruple checked them and I still get the "Check your txt record" error. Plus, all e-mail destined for this domain now bounce. Are there examples of existing domains out there that are working that we can reference in a 'dig', nslookup or similar for comparison? cappelli@M2 ~ % host -t TXT dslwest.com dslwest.com descriptive text "v=spf1 include:icloud.com ~all" dslwest.com descriptive text "apple-domain=hudfp9wtd2pjzy5k" cappelli@M2 ~ % host -t MX dslwest.com dslwest.com mail is handled by 10 mx01.mail.icloud.com. dslwest.com mail is handled by 10 mx02.mail.icloud.com. cappelli@M2 ~ % host -t CNAME sig1._domainkey.dslwest.com sig1._domainkey.dslwest.com is an alias for sig1.dkim.dslwest.com.at.icloudmailadmin.com. Thank you.
0
0
1.1k
Feb ’23
ScriptEditor iCloud Directory
Somehow both of my new Macs with Ventura 13.2.1 point to comappleScriptEditor2 instead of comappleScriptEditor as my ScriptEditor iCloud Document location. I tried to change it, but the Info.plist file on both says comappleScriptEditor2. I cannot delete the Info.plist file either. Is there a way to fix this?
0
0
848
Feb ’23
Simple script for iPhone that reads file in iCloud Drive and prompt so select one of the lines
Hi all!  I'd like to have a Shortcut on my iPhone that does the following: First, it reads every line in a textfile stored in iCloud Drive, then prompt me which line of all these lines in that file i want to select/choose. After the line is chosen, it will write only that single chosen line to a new textfile (saved in a specific folder in iCloud Drive), where the title of that textfiles is the current UNIXTIME. So the filename will be something like "1676206299.txt" . Can anybody help me code this? I'm completely new to the shortcuts thing, but see great potential in the possibilities!  Thanks so much for your time!
0
0
910
Feb ’23
SMS Reading and sending
Hello everyone ! I am trying to build a macOS app that would sync my sms messages on my android phone to my mac. So I would like to know if a macOS app can load a message history in the native macOS message app (like icloud does) and read all sent messages by the user on the message app. Do you know if it's possible ? My objective is to make my app act like icloud syncing all messages together.
0
1
998
Feb ’23
Within 24 hours of release my app is number one board game on Mac App Store, however, analytics are opposite
On Mac App Store, my app became number one board game within 24 hours of release. Under games category, it is number 16. I am not understanding how come I am seeing all this ? On Analytics page - there are hardly 2 units sold. Why is this joke being played ? I literally got happy when it was shown as number 1 board game and I can see it is all false. But how can Apple servers display such false information ? The name of my game is Sudoku - Classic to XV.
3
0
928
Feb ’23
Advanced Data Protection and iCloud for Windows
I just enrolled in and installed the latest iPadOS, iOS, watchOS, and tvOS, on my devices to use the Advanced Data Protection for iCloud, however when I try to sign in to iCloud for Windows I get a message to update to the latest version of iCloud for Windows. The problem is that when I go to the Microsoft Store to update Icloud I'm told I have the latest version, how do I get the latest version if the official method says I have the latest version? I'm using WIndows 10 with all the updates.
5
1
4.5k
Jan ’23
iCloud for web application - Non IOS/Apple devices
Hello, I want to build an application like a Vault in which I have a requirement in which the end user will log in to the web application and select their storage as iCloud. Once the same is linked by entering the credentials, user should able to upload the documents and the same will be stored in iCloud and not on the vault for security reasons. Does Apple provide public APIs for web applications? Is this possible now to upload files from a website and store the same in iCloud using iCloud API? Please help here. Thanks in advance.
0
0
714
Jan ’23
Advanced Data Protection for files via iCloud sync (UbiquityContainer)
The iCloud has the iCloud Drive (a could storage where the user can store any files and which Apps can access and share) and files in an "UbiquityContainer", which will be synced and only accessible to the App itself, not visible/accessible to other Apps. The information about the new Advanced Data Protection (ADP) only mentions iCloud Drive to be covered by ADP. Are the synced files within the UbiquityContainer also protected by ADP? If not, how can these be included?
0
0
1k
Jan ’23
Need help to set up path to my icloud drive to automatically save my screencapture to it. Thanks!!
set dFolder to "/Library/Mobile"Documents/comapple~CloudDocs/" do shell script ("mkdir -p " & dFolder) set leftX to 2160 as integer #use SHIFT + CMD + 4 to get coordinates set leftY to 3840 as integer set rightX to -1080 as integer set rightY to -1920 as integer #set numberOfpages to 7 as integer #how pany pages? #set i to 0 #repeat numberOfpages times start 7:34am set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" delay 240 7:38am set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" delay 1620 8:05am set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" #tell application "System Events" #option 1: keyboard click key code 124 #arrow right click on keyboard #end tell #tell application "System Events" #option 2: mouse click click at {123, 456} #mouse click at location #end tell delay 3600 #set i to i + 1 9:05am set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" delay 10800 12:05pm set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" #end repeat delay 6900 2:00pm set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png"
0
0
1.2k
Jan ’23
Download individual iCloud file with progress callback
Is this possible and how? I've only seen examples about using NSMetadataQuery to search directories for files matching some predicate. I tried using this code let query = NSMetadataQuery() query.valueListAttributes = [NSMetadataUbiquitousItemPercentDownloadedKey] query.predicate = NSPredicate(value: true) let item = NSMetadataItem(url: url)! query.searchItems = [item] NotificationCenter.default.addObserver(forName: .NSMetadataQueryDidUpdate, object: query, queue: nil) { notification in     print(notification) } NotificationCenter.default.addObserver(forName: .NSMetadataQueryDidFinishGathering, object: query, queue: nil) { notification in     print(notification) } query.start() but this gives the following exception *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unknown kind of NSPredicate given to NSMetadataQuery (TRUEPREDICATE)' Without any predicate the query doesn't seem to start at all, like mentioned in the official documentation.
0
0
1.1k
Jan ’23
Apps directory not appearing in iCloud Drive in Finder
Hi,I have 2 iOS apps with which I tested iCloud Drive.With the frst one I didn't had any trouble.I'm able to use the iCloud Drive and files that I store in the ubiquituos container are transferred to the cloudand I can see the Apps folder and contents in Finder on my iMac.Now the strange thing is that with the 2nd app I get problems although I have setup everything exactly the same.The only difference that I can see is that during the initial run of App2 with iCloud entitlements enabled I had forgottento add the <key>NSUbiquitousContainers</key> <dict> <key>iCloud.com.xxx.app2</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerName</key> <string>App2</string> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>Any</string> </dict> </dict>in the info-plist file.I get the feeling that this screwed app the iCloud for this app and even if I now set this up correctly it refuses to work.Any one experiencing a similar issue?Or is there any way to reset the iCloud for an app completely and start over again?One more thing: when using brctl I can see that items are sent/retrieved from the iCloud and they are stored in theiCloud Drive folder on my Mac. But they are not visible in Finder.
14
1
11k
Jan ’23
How to debug Core Data iCloud sync issue in production?
My app uses NSPersistentCloudKitContainer to sync Core Data objects among users' devices, and has been doing so successfully for about a year now. My issue is I can't find any way to debug when I have a specific user that is experiencing sync issues. I have had the user try every trick that I know of to resolve it but have had no luck. I have tried everything in the CloudKit dashboard, but no logs appear whatsoever. Anyone have any tips here?
1
0
1.2k
Dec ’22
Is there ability to get some unique value that associated with users appleId?
We are implementing some logic that requires to know users appleId or unique value associated with appleId which downloaded the application. I found an opaque token ubiquityIdentityToken that represents the current user’s iCloud Drive Documents identity. But it doesn't cover the scenario when user is logged in with appleId on device but iCloud is turned off - the value of this property is nil(according to documentation). I tried to implement User Authentication with Sign in with Apple but user can authenticate with option "Hide my email" and proxy email doesn't guaranty that it is permanent associated email. Is there ability to get some unique value that associated with users appleId? Thanks for advices.
Replies
0
Boosts
0
Views
735
Activity
Mar ’23
iCloud GameCenter saves questions
Hi there, We have published a game with iCloud save options, and we have gotten some reports from players that are having some kind of issue with their saves getting erased. When testing the game build, everything seems in place and we can't replicate the error, which makes us thing the issue is related with the iCloud save storage. We would like to run some tests by disabling this feature to confirm our suspects, but we are afraid of the impact over the existing player base who has no issues with their saves.  Is there any way of running this test in a controlled environment i.e testing group? We have seen the disable option in our dashboard, which indicates you need to enable/disable this feature when publishing a new build. Is there anything else we should have in mind? If we disable the iCloud saving, are the local saves of the players safe? We are worried about hypothetical issues where the lack of this feature overwrites with "no save" the existing local save on the phone.   Thank you!
Replies
0
Boosts
0
Views
606
Activity
Mar ’23
NSUbiquitousContainerName
Hello All,I am having trouble to getting my application name(NSUbiquitousContainerName) under iCloud Drive > Manage Storage.It takes default bundle identifier "AppList" as a application name under Manage Storage. I want App List(Blank space between App List) under iCloud Drive > Manage Storage. i also updated version and build number of the app.I have added the following in my info.plist file :<dict> <key>iCloud.com.applist.AppList</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerName</key> <string>App List</string> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>One</string> </dict></dict>I have added the following in my entitlements file :<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>com.apple.developer.icloud-container-identifiers</key> <array> <string>iCloud.$(CFBundleIdentifier)</string> </array> <key>com.apple.developer.icloud-services</key> <array> <string>CloudDocuments</string> <string>CloudKit</string> </array> <key>com.apple.developer.ubiquity-container-identifiers</key> <array> <string>iCloud.$(CFBundleIdentifier)</string> </array> <key>com.apple.developer.ubiquity-kvstore-identifier</key> <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string></dict></plist>Can any one help to resolve this issue.- Nandpal
Replies
1
Boosts
1
Views
2.6k
Activity
Feb ’23
CloudKit record exists (added days ago), does not get returned by query but can be fetched by ID
I have a situation where a CloudKit record is not being returned by a query (and also doesn't appear in the CloudKit dashboard), but it exists when fetching it by it's ID.The record was added days ago, so it really should have been indexed.The record ID metadata index has always been set for the record type.The query I use is fetching all records for a particular record type in a custom zone.Strangely, when I search for the record in the dashboard and select it, the record name field is blank on the detail panel.It's very peculiar, and very concerning!Anyone have any ideas?
Replies
7
Boosts
0
Views
4.4k
Activity
Feb ’23
CKRecordValue type NSDate stores nil value?
In the development of an app, one of its UITextField is designed to allow users to use input view of datePicker view to pick a date and also allows the users to delete a displayed date via clear button as a overlay view in the textField while edting. Data is stored via Cloudkit and a CKRecordValue type - NSDate is used for that UITextField. My question is how to change the NSDate to reflect the user deleting an existing date on the textField? It seems NSDate can't be nil as I got atomic error when trying to save a nil date. Direct database like MySQL gives an option of null value and I wonder if we may set a NSDate type to allow nil input?
Replies
4
Boosts
0
Views
1.8k
Activity
Feb ’23
Different Files app behaviour on iPhone vs iPad
Dear Experts, I am confused by what seems to be a difference in behaviour of the Files app on an iPhone compared to an iPad. On the iPad, I seem to be able to view my app's Documents/ folder; on the iPhone, I can't. On the other hand I can access the app's iCloud documents on both devices. Is this the expected behaviour? If so, what is the rationale? Thanks, Phil.
Replies
1
Boosts
0
Views
974
Activity
Feb ’23
iCloud+ custom domain error: "Check your TXT Record"
I'm running into the same problem as many other folks I've seen on the developer.apple.com. However, none of them have solutions yet. I run a small ISP and we have our DNS on OpenSRS Managed DNS. 2 Questions: Do these DNS entries look correct? I've quadruple checked them and I still get the "Check your txt record" error. Plus, all e-mail destined for this domain now bounce. Are there examples of existing domains out there that are working that we can reference in a 'dig', nslookup or similar for comparison? cappelli@M2 ~ % host -t TXT dslwest.com dslwest.com descriptive text "v=spf1 include:icloud.com ~all" dslwest.com descriptive text "apple-domain=hudfp9wtd2pjzy5k" cappelli@M2 ~ % host -t MX dslwest.com dslwest.com mail is handled by 10 mx01.mail.icloud.com. dslwest.com mail is handled by 10 mx02.mail.icloud.com. cappelli@M2 ~ % host -t CNAME sig1._domainkey.dslwest.com sig1._domainkey.dslwest.com is an alias for sig1.dkim.dslwest.com.at.icloudmailadmin.com. Thank you.
Replies
0
Boosts
0
Views
1.1k
Activity
Feb ’23
ScriptEditor iCloud Directory
Somehow both of my new Macs with Ventura 13.2.1 point to comappleScriptEditor2 instead of comappleScriptEditor as my ScriptEditor iCloud Document location. I tried to change it, but the Info.plist file on both says comappleScriptEditor2. I cannot delete the Info.plist file either. Is there a way to fix this?
Replies
0
Boosts
0
Views
848
Activity
Feb ’23
Simple script for iPhone that reads file in iCloud Drive and prompt so select one of the lines
Hi all!  I'd like to have a Shortcut on my iPhone that does the following: First, it reads every line in a textfile stored in iCloud Drive, then prompt me which line of all these lines in that file i want to select/choose. After the line is chosen, it will write only that single chosen line to a new textfile (saved in a specific folder in iCloud Drive), where the title of that textfiles is the current UNIXTIME. So the filename will be something like "1676206299.txt" . Can anybody help me code this? I'm completely new to the shortcuts thing, but see great potential in the possibilities!  Thanks so much for your time!
Replies
0
Boosts
0
Views
910
Activity
Feb ’23
SMS Reading and sending
Hello everyone ! I am trying to build a macOS app that would sync my sms messages on my android phone to my mac. So I would like to know if a macOS app can load a message history in the native macOS message app (like icloud does) and read all sent messages by the user on the message app. Do you know if it's possible ? My objective is to make my app act like icloud syncing all messages together.
Replies
0
Boosts
1
Views
998
Activity
Feb ’23
Within 24 hours of release my app is number one board game on Mac App Store, however, analytics are opposite
On Mac App Store, my app became number one board game within 24 hours of release. Under games category, it is number 16. I am not understanding how come I am seeing all this ? On Analytics page - there are hardly 2 units sold. Why is this joke being played ? I literally got happy when it was shown as number 1 board game and I can see it is all false. But how can Apple servers display such false information ? The name of my game is Sudoku - Classic to XV.
Replies
3
Boosts
0
Views
928
Activity
Feb ’23
Advanced Data Protection and iCloud for Windows
I just enrolled in and installed the latest iPadOS, iOS, watchOS, and tvOS, on my devices to use the Advanced Data Protection for iCloud, however when I try to sign in to iCloud for Windows I get a message to update to the latest version of iCloud for Windows. The problem is that when I go to the Microsoft Store to update Icloud I'm told I have the latest version, how do I get the latest version if the official method says I have the latest version? I'm using WIndows 10 with all the updates.
Replies
5
Boosts
1
Views
4.5k
Activity
Jan ’23
iCloud for web application - Non IOS/Apple devices
Hello, I want to build an application like a Vault in which I have a requirement in which the end user will log in to the web application and select their storage as iCloud. Once the same is linked by entering the credentials, user should able to upload the documents and the same will be stored in iCloud and not on the vault for security reasons. Does Apple provide public APIs for web applications? Is this possible now to upload files from a website and store the same in iCloud using iCloud API? Please help here. Thanks in advance.
Replies
0
Boosts
0
Views
714
Activity
Jan ’23
Advanced Data Protection for files via iCloud sync (UbiquityContainer)
The iCloud has the iCloud Drive (a could storage where the user can store any files and which Apps can access and share) and files in an "UbiquityContainer", which will be synced and only accessible to the App itself, not visible/accessible to other Apps. The information about the new Advanced Data Protection (ADP) only mentions iCloud Drive to be covered by ADP. Are the synced files within the UbiquityContainer also protected by ADP? If not, how can these be included?
Replies
0
Boosts
0
Views
1k
Activity
Jan ’23
Need help to set up path to my icloud drive to automatically save my screencapture to it. Thanks!!
set dFolder to "/Library/Mobile"Documents/comapple~CloudDocs/" do shell script ("mkdir -p " & dFolder) set leftX to 2160 as integer #use SHIFT + CMD + 4 to get coordinates set leftY to 3840 as integer set rightX to -1080 as integer set rightY to -1920 as integer #set numberOfpages to 7 as integer #how pany pages? #set i to 0 #repeat numberOfpages times start 7:34am set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" delay 240 7:38am set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" delay 1620 8:05am set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" #tell application "System Events" #option 1: keyboard click key code 124 #arrow right click on keyboard #end tell #tell application "System Events" #option 2: mouse click click at {123, 456} #mouse click at location #end tell delay 3600 #set i to i + 1 9:05am set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" delay 10800 12:05pm set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png" #end repeat delay 6900 2:00pm set formattedDate to (do shell script "date +'%Y-%m-%d__%H.%M'") do shell script "screencapture -x -R" & leftX & "," & leftY & "," & rightX - leftX & "," & rightY - leftY & " " & dFolder & formattedDate & ".png"
Replies
0
Boosts
0
Views
1.2k
Activity
Jan ’23
Download individual iCloud file with progress callback
Is this possible and how? I've only seen examples about using NSMetadataQuery to search directories for files matching some predicate. I tried using this code let query = NSMetadataQuery() query.valueListAttributes = [NSMetadataUbiquitousItemPercentDownloadedKey] query.predicate = NSPredicate(value: true) let item = NSMetadataItem(url: url)! query.searchItems = [item] NotificationCenter.default.addObserver(forName: .NSMetadataQueryDidUpdate, object: query, queue: nil) { notification in     print(notification) } NotificationCenter.default.addObserver(forName: .NSMetadataQueryDidFinishGathering, object: query, queue: nil) { notification in     print(notification) } query.start() but this gives the following exception *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unknown kind of NSPredicate given to NSMetadataQuery (TRUEPREDICATE)' Without any predicate the query doesn't seem to start at all, like mentioned in the official documentation.
Replies
0
Boosts
0
Views
1.1k
Activity
Jan ’23
Apps directory not appearing in iCloud Drive in Finder
Hi,I have 2 iOS apps with which I tested iCloud Drive.With the frst one I didn't had any trouble.I'm able to use the iCloud Drive and files that I store in the ubiquituos container are transferred to the cloudand I can see the Apps folder and contents in Finder on my iMac.Now the strange thing is that with the 2nd app I get problems although I have setup everything exactly the same.The only difference that I can see is that during the initial run of App2 with iCloud entitlements enabled I had forgottento add the <key>NSUbiquitousContainers</key> <dict> <key>iCloud.com.xxx.app2</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerName</key> <string>App2</string> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>Any</string> </dict> </dict>in the info-plist file.I get the feeling that this screwed app the iCloud for this app and even if I now set this up correctly it refuses to work.Any one experiencing a similar issue?Or is there any way to reset the iCloud for an app completely and start over again?One more thing: when using brctl I can see that items are sent/retrieved from the iCloud and they are stored in theiCloud Drive folder on my Mac. But they are not visible in Finder.
Replies
14
Boosts
1
Views
11k
Activity
Jan ’23
How to debug Core Data iCloud sync issue in production?
My app uses NSPersistentCloudKitContainer to sync Core Data objects among users' devices, and has been doing so successfully for about a year now. My issue is I can't find any way to debug when I have a specific user that is experiencing sync issues. I have had the user try every trick that I know of to resolve it but have had no luck. I have tried everything in the CloudKit dashboard, but no logs appear whatsoever. Anyone have any tips here?
Replies
1
Boosts
0
Views
1.2k
Activity
Dec ’22