Post not yet marked as solved
Hey all,
I've just taken Xcode 13 Beta 2, and I still can't get the sample code from the "Sharing-Data" code to work properly, and nor does the boilerplate code from creating a new project that incorporates CodeData and CloudKit work.
Fo far my feedback items have not been identified as having other similar issues - based on the posts I'm seeing I'm not the only one experiencing the same problem.
Has anyone got this code built and working yet? Mine breaks when you try to copy the sharing link.
Post not yet marked as solved
I am running the WWDC21 sample application "CoreDataCloudkitDemo" with two different Apple IDs to test the Cloudkit sharing feature.
I use two simulators and one real device, where the latter has the same ID as one of the simulators.
While creating invites via "Copy link" works on all three installations, accepting invites only works on the real device.
Trying to open an invite (by copying the link in the one and pasting it into Safari in the other) always results in a web page stating that "iCloud has stopped responding" and "Unable to find applicationIdentifier for the containerId = [my ID] and fileExtension = undefined".
Is this a simulator bug in Xcode 13.2 or is there anything I can do about it?
Other iCloud features (including login via Safari to icloud.com) work in both simulators.
Is there a way to open invite URLs in a simulator (as there is no functioning iMessage or Mail app) other than Safari's URL input field? Doing so does not work in the real device either, but clicking it in e.g. iMessage works.
Edit: Pasting the link into a ToDo item and opening it from there works even in the simulator - so is it just a Safari issue?
Post not yet marked as solved
I am making a video sharing app and I am looking for a good cloud storage service that I can upload my videos to and store them. I was previously using Firebase Cloud to store my videos, but I ran into a problem with Firebase and decided it will not work for what I am trying to do. So I decided to switch my cloud storage and I am having a hard time finding something that will work.
Question:
What are some good cloud storage options for storing videos? Or is there a better way to store videos other than a cloud storage service? The app is very similar to Youtube and the average video length will be around 10 mins if that helps at all.
P.S
The problem I am having with Firebase storage is that the videos never get uploaded to Firebase if the user closes out of the app during the upload. None of the IOS background options work either.BGProcessingTask and URLSessionUploadTask do not work to finish uploading the video in the background because Firebase does not allow you to pausing uploading during sessions to finish BGProcessingTask, and Firebase does not give you a URL to upload the video to finish URLSessionUploadTask.
Post not yet marked as solved
Hello everyone,
in the App I'm building I'd like to share an entire list of items (records) by just sharing the list itself (parent record or RecordZone). Meanwhile, I'd like to continue using the NSPersistentCloudKitContainer and therefore CoreData sync.
Is it possible, with the new features Apple introduced (Sharing RecordZone and Sharing in Cloud & Local Storage), to do what I described, and combine both functions.
Thank you,
Carlos Steiner
Post not yet marked as solved
Is there a limit for local storage for Safari? If there is, is there a way to increase the local storage limit?
Post not yet marked as solved
What's the purpose of NSFileProviderReplicatedExtension.item(for:request:completionHandler:) call. It seems like it duplicate what the NSFileProviderEnumerator.enumerateItems(for:startingAt:) already returned. I couldn't find where and why this method is called. What happens if it return different types than from the enumerator? Can you please point me to some explanation what is the relation between these two calls?
Post not yet marked as solved
Hi Team, i am facing a strange issue in my iOS game where the local data gets resets for quite few times a day when the game is resumed from background. This causes the game preferences reset and other local data saved by plugins.
Any hint on Xcode projects settings, entitlements settings required to avoid this issue?
Post not yet marked as solved
Hi! I am developing Auto Backup Applicaiton with Flutter UI Framework, I successfully acheived my target with Android, but I'm not able to acheive on iOS. Kindly guide me, how can i fetch photos and files apps directory paths?
Post not yet marked as solved
My first iOS/WatchOs app was rejected for "Specifically, iPhone app does not sync with Apple Watch". But it does sync data through the Apple CloudKit.
Should my app support both AppGroup and CloudSync of my CoreData container? If yes, how this is possible? If not, shall I just resubmit the same app and add explanation that app does support CloudSync and attach video evidence?
Post not yet marked as solved
I have an app for client management that stores data in Core Data with an NSPersistentCloudKitContainer. Each manager have their clients in the Core Data Private Database, and each client could have associated files (images, documents, etc) that are stored in app's own folder structure in iCloud Drive.
Eventually, a manager can decide if to share a client with another manager, in order to have a shared managed client (readable, or writable+readable by others managers which share the same client). This is done by moving the Client from the Private Database to the Shared Database following the Apple's guidelines:
https://developer.apple.com/videos/play/wwdc2021/10015/
This is the structure:
The problem is: the database record is shared correctly, but the iCloud Drive Files are not shared (obviously). My goal is to get working the iCloud Drive Client Files (every client has a single Folder) with the minimum effort from the user. I cannot get working the iCloud Drive Sharing from my app, only the Core Data Sharing, so (in development environment) I have to share the Client Core Data Info from the App sheet, and then, go to Finder and share the Client's folder and send the link, so it would be a bit confusing for my users.
Any approach for get working iCloud Drive File Sharing from the (inside) my app? Generate a link and automatically send to the other user.
Or, better, an approach to get working this sharing with a single action from the user (only share once, and it sends the core data info and icloud drive file sharing).
Post not yet marked as solved
I have read that localStorage is a temporary data function(I didn’t even know that since iOS 5.1…) and I was surprised that it deleted all data. Anyways, is it a way to make be there as long as user wants(like on Windows or other devices)?
Also here’s link to code that are on GitHub.
Post not yet marked as solved
iphone storage calculation showing incorrect storage info
clearance on photos videos data files completed
storage still recorded as full
seems like the phone is locked, sut or proxy by unknown entity
please some nice soul help me
Post not yet marked as solved
Hi guys I use pCloud Drive as a network drive but since updating to 11.3 Beta (20E5196f) on my M1 Mac mini I have had an issue where I can't open it at all.
I get the error:
language
The application "pCloud Drive" can't be opened.
6
When opening normally and when right clicking and "open" nothing happens at all.
Can anyone point me in the right direction as. an fairly new Mac user? or is this just because I am on the beta. (upgraded to fix issues I was having with the m1 mini).
Thanks
Post not yet marked as solved
help: my app uses iCloud document for backing up data, but my user delete files and datas from system settings(iCloud ),now my app can't overwriting either creating files to iCloud. how can I fix it?
Post not yet marked as solved
Hello good afternoon,
I need help, I want to know what solutions mac has to make backups in the cloud, I understand that locally you can make backups with the time machine, but I would like to do the same with the entire profile but in the cloud.
This solution must be for companies.
Thank you very much for your support.
AB
Post not yet marked as solved
Hi all,
I'm trying to use NSPersistentCloudKitContainer.initializeCloudKitSchema() to initialise a public CloudKit database, but it seems to fail when any given entity has more than two String fields (or, it seems, any two fields which NSPersistentCloudKitContainer decides need to be CKAsset-backed).
I've raised rdar://FB8995024 about this too, but was wondering if someone here can see something I'm missing.
I can consistently reproduce this on iOS 14.4 (18D46) on the iOS Simulator with Xcode 12.4 (12D4e), or with an iPhone 11 Pro running iOS 14.4 (18D52) using this code (in a new iOS App project, SwiftUI/SwiftUI App/Swift, Use Core Data+Host in CloudKit) and a single Core Data entity with two String attributes:
import CoreData
import SwiftUI
@main
struct NSPersistentCloudKitContainer_initTestingApp: App {
let persistenceController = PersistenceController.shared
var body: some Scene {
WindowGroup {
Text("Success")
}
}
}
struct PersistenceController {
static let shared = PersistenceController()
let container: NSPersistentCloudKitContainer
init() {
container = NSPersistentCloudKitContainer(name: "NSPersistentCloudKitContainer_initTesting")
				// If we change this to .private, everything is fine
container.persistentStoreDescriptions[0].cloudKitContainerOptions?.databaseScope = .public
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
do {
try container.initializeCloudKitSchema()
} catch {
fatalError("###\(#function) Error initialising CloudKit schema: \(String(describing: error))")
}
}
}
Thanks!
Post not yet marked as solved
I am trying to use the new API provided by WWDC21 to create Core Data databases that can be shared.
When I do the sharing for an NSManageObject, I tried to experiment with 2 methods.
1: Using UICloudSharingController's
UICloudSharingController(preparationHandler: (UICloudSharingController, @escaping (CKShare?, CKContainer?, Error?) -> Void) -> Void)
method.
Currently this method works and the participants can get all the data after accepting the invitation.
2:Use NSPersistentContainer's
share(_ managedObjects: [NSManagedObject], to share: CKShare?) async throws -> (Set<NSManagedObjectID>, CKShare, CKContainer)
method.
First get ckshare, then call
UICloudSharingController(share:, container: )
With this approach, after accepting the invitation, the participant only gets the data generated after the creation of the ckshare, and the data before the ckshare is never fetched
I'm not sure if it's an error in the token generated by the share method of the NSPersistentContainer or something else. Has anyone encountered a similar situation?
Post not yet marked as solved
Hi all, I hope you can help with advice. To start, I know little of App programing. I have someone assisting on the side with this.
Currently in the app, before a user makes payment towards a service booking, they must for every single payment provide the: Name on Card, Card number, Exp date and CSV number.
After doing this they are automatically transferred to their banks website to submit an OTP which is then sent to their phone number registered with their bank. Note that I make use of a payment gateway, without 3D secure (using 3D secure would mean a bigger payment percentage the payment gateway takes).
I was hoping that on the app page where the card information is completed the information entered during the first time (except for the CSV number of course) can be stored on the app's database which will then allow for a better UI and UX experience when the client makes payment.
The person assisting with the coding however informed me that Apple will not approve a build which stores card information. Al the apps I see, however exactly does this and only let you complete the CSV which is still missing.
Am I understanding something wrong and/or is there maybe another way to skin the Cat for a better UI, UX experience?
Thank you in advance
Post not yet marked as solved
My app checks to see if a user is logged into iCloud. Currently, I can throw a user to the Settings.app, or quit.
Can I use Authentication Services instead? If not, any other possibilities?
Thanks
David
Post not yet marked as solved
In the WWDC2021 talk on building apps that share data through CloudKit and Core Data there seems to be a lack of examples that use SwiftUI. Is there any place o find such examples or even a tutorial?