Posts

Post not yet marked as solved
1 Replies
0 Views
Nevermind I just renamed the icon from AA_appIcon83.5@2x~iPad.png to AA_appIcon@3x~ipad.png and the error went away and the icon picker still works from within the app.
Post not yet marked as solved
3 Replies
0 Views
I could never figure out yet why I can't fetch from The intent file, the fetch error catch bit gets called because I put a dummy entry in there that would display on an error. the app group share file approach I put in the comments is the best solution I've found so far, and just an update, after deleting the Derived Data file from the Mac the widget is working on the Mac now so I'm happy with that.
Post not yet marked as solved
3 Replies
0 Views
I have the same issue, I can not fetch from the IntentHandler.swift so in my App I created an array of values when the appp opens and closes that saves some values to an array in the app group, let defaults = UserDefaults.init(suiteName: "group.my-app")! defaults.setValue(CoreDataStack.createArrayOfContactsForWidget(), forKey: "ContactsForWidgetIntent") static func createArrayOfContactsForWidget() - [String] {         var arrayOfContactIDsAndNames = [String] ()         let fetchRequest = NSFetchRequestUser()         let entity = User.entity()         fetchRequest.entity = entity         fetchRequest.predicate = NSPredicate(format: "isVisible = %@", "1")         do {             var users = try CoreDataStack.managedObjectContext!.fetch(fetchRequest)             users.sort(by: { $0.first_name $1.first_name })             for user in users {                 //To get an array of currently added users                 arrayOfContactIDsAndNames.append("\(user.contactID)|\(Helper.getUserFullName(user: user))")             }         } catch {print(error)}         return arrayOfContactIDsAndNames     } Then in the intent I pull that contact ID and the name to display and it works fine on iPhone but not on Mac. ... contactIDsArray = defaults.value(forKey: "ContactsForWidgetIntent") as! [String]     for user in contactIDsArray {         let values = user.components(separatedBy: "|")         let contactID = values[0]         let name = values[1]         let personIntentObject = Person(identifier: "\(contactID)", display: "\(name)")         userItems.append(personIntentObject)     }     completion(INObjectCollection(items: userItems), nil) Not sure why but its working on iPhone. On Mac I get an error that there are No options provided for this parameter
Post not yet marked as solved
6 Replies
0 Views
I am creating a widget that has configurable content and I'm getting this error on the Mac OS when running the WidgetExtension in the Mac WidgetKit Simulator The operation could not be completed. (CHSErrorDomain error 1101.) I must be missing something somewhere, all my other widgets are working fine, but with the dynamic widget where the user can edit the widget in the swift file I'm always getting warnings that appear then disappear about Cannot find type 'DynamicPersonSelectionIntent' in scope When I build it goes away. I have added DynamicPersonSelection.intentdefinition, I have an IntentHandler.swift with an IntentHandler: DynamicPersonSelectionIntentHandling.in the Target Intent handler I have added the supported Intent, In the framework section is the Intents.framework. I have check all the Tagret memberships I think. The widget works sometimes? on the iPhone but not on the Mac at all. I must be missing something. Please help if you can.
Post not yet marked as solved
8 Replies
0 Views
I didn’t know I had to do anything on the developer CloudKit dashboard. After putting my app in the store and CloudKit not working I found this, went to the CloudKit dashboard, cleaned up the ‘Schema’ for the iCloud container I wanted to use, then chose the cog, deploy schema to production and its working.
Post marked as solved
2 Replies
0 Views
Hi, Thank you for the Swift reply. The example you provided proceeded with no error, which is a good thing and the phone numbers were stored and accessed, its working I think. Thank you. I changed the transformable type in the Core data to NSArray and allowedTopLevelClasses to return [CNLabeledValueCNPhoneNumber.self, NSArray.self, CNPhoneNumber.self] //- as you suggested and it worked. So thank you again. I am going to try now to do the same with CNLabeledValueNSString and a postal address, that should be similar. Thank you! I really appreciated your help.
Post not yet marked as solved
1 Replies
0 Views
Hi, I think I found the answer let storeDirectory = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first! let url = storeDirectory.appendingPathComponent("local.sqlite") let local = NSPersistentStoreDescription(url: url) ... let cloudUrl = storeDirectory.appendingPathComponent("cloud.sqlite") let cloud = NSPersistentStoreDescription(url: cloudUrl) Something to do with the path as I thought. Changing those lines seams to have made it work.
Post not yet marked as solved
1 Replies
0 Views
I just needed to add import ClockKit Working.
Post not yet marked as solved
1 Replies
0 Views
I just needed to add import ClockKit Working.
Post not yet marked as solved
4 Replies
0 Views
Post not yet marked as solved
31 Replies
0 Views
I kept trying and it worked. I kept trying to force press the screen and reset to factory settings. I was out walking and on 4G connection. I just worked and didn’t need to play with the language settings. I can’t explain it. Must have been force resetting it several times and closing the app on the phone or a combination of all those things in the right sequence and a little help from the serenity prayer. God grant me the serenity to accept the things I cannot change ...
Post not yet marked as solved
31 Replies
0 Views
I am having this issue too. Unable to pair. I’m using watchos 4 beta 3 and iOS 11 beta 3. I unpaired the watch from the watch app in the iPhone 7 because the Bluetooth headset was not playing nice. I had two of the same Bluetooth headsets in settings and wouldn’t play to either. When I re-pair it, I can progress past the initial language screen on the watch and the connecting screen the iPhone app, then I choose wrist side and the app continues to the “activating” screen and the watch face says “setting language “ then it fails back to the pair screen. I have tried about 20 times now. I tried pairing with an iPhone 6 iOS 11 beta 3 and exact same issue so it must be the watch. I’ve tried the suggestion to turn off iMessage and iCloud all together, still nothing. I have restarted the watch and the iPhone. Reset network settings on iPhone. Erased all contents and setting on the iPhone. Tried a different language on the watch. Nothing worked. Seams like an issue with the watch so I am pretty stuck since I cannot upload a new firmware or erase the watch without a way to plug it into the Mac. Does it sound like I will have to send it into Apple?