Hello
im about to update my app to use iCloud core data and I went into my iPhone settings app and clicked on the link for the app in the iCloud settings. How do I set the version number and the developer data in there using Xcode?
Some apps from apple have this information set. Most other apps do not have this data in there, just two blank lines under the app title.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
If I make a small change to a widgets code in Xocde, just adding a sort descriptor to a fetch request, a small line of code, does it make the whole widget go black and the user has to delete the widget and add it again?
I made a small change to a widgets code, then ran it through test flight to my iPhone and the widget is just black now.
Update: I think adding the sort descriptior to the fetch request is causing a memory issue on my iPhone 7. That is what Xcode is saying I think.
Dear Apple,
I have made some iMessage sticker packs and I’m am constantly answering questions on one star reviews claiming they can’t find the app icon. It’s honestly exhausting. Please get a team to rework iMessage sticker packs. Make it easier for customers to understand there is no app icon and where to find the sticker pack when creating a message.
You have to rework the whole situation geared towards the lowest common denominator which is very, very low. Honestly I think the general population averages out to a kindergarten level of education.
Hooe you get me.
Hello,
After updating Xcode today to the Version 13.0 (13A233) when I run my app on the latest iOS simulator Version 13.0 (970), not matter is its an iPhone 12 or 13 etc. the widgets won't load. If I try to search for widgets to add to the Home Screen there is nothing to pick from. And when I try to run the widget directly from Xcode I get an unusual error that I've never had before.
Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind'
I used to be able to run the widgets from the target and play with them all at once.
Hello,
Ive had some feedback from a customer asking that when he uses my app to start the mindfulness focus. Ive tried this on iPhone and setup the mindfulness focus to start when my app is open and that works fine, however this is not mirrored on my Apple Watch where the app is used.
Upon opening the Apple Watch app the focus does not turn on.
How can I get this working?
Thank you.
Ive got a little animation on the first screen on my watchOS app, but in watchOS 10.1 it's not showing up. It docent work. I can't use the simulator to find out why because I haven't got watchOS 10.1 simulator. - here is the code that works on watch OS 10
func updatCurrentProgress() {
print("updatCurrentProgress")
withAnimation(.interpolatingSpring(duration: 1.2, bounce: 0.0, initialVelocity: 0.0).delay(0.5)) {
currentProgress = tiyowehSession.currentDayGoalComplete
} completion: {
if customGoalValue > 0 && UserDefaults.standard.double(forKey: "currentDayGoalComplete") < 1.0 && tiyowehSession.currentDayGoalComplete >= 1.0 {
WKInterfaceDevice.current().play(.notification)
print("playing .success)")
goalProgressViewOpasity = 0.0
goalCompleteTickOpasity = 1.0
withAnimation(.easeOut(duration: 2.0).delay(1.2)) {
goalCompleteTickOpasity = 0.0
goalProgressViewOpasity = 1.0
}
}
UserDefaults.standard.set(currentProgress, forKey: "currentDayGoalComplete")
}
}
.
The sound plays correctly "WKInterfaceDevice.current().play(.notification)"
but the opacity docent change like it used to.
Hi,
I have.a project that uses CoreData and I want to add some of the data to iCloud to sync with a Watch app and I ticked the option for the Default configuration to use iCloud and It worked but now I don't want to include images in the cloud because it became too large so I Seperated the images into a different data thing and as per instructions here https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/setting_up_core_data_with_cloudkit I added a configuration "Local" and "Cloud" and change the code as below -
original
lazy var persistentContainer: NSPersistentContainer = {
		let container = NSPersistentContainer(name: "DataModel")
		container.loadPersistentStores(completionHandler: {
				storeDescription, error in
				if let error = error {
						print("Could load data store: \(error)")
				 }
		})
		print("Loaded data store: DataModel")
		return container
}()
I created two configurations as per the video and ticked use with iCloud on the one I would like to sync with iCloud.
new code
lazy var persistentContainer: NSPersistentContainer = {
		var container = NSPersistentContainer(name: "DataModel")
		if #available(iOS 13.0, *) {
				container = NSPersistentCloudKitContainer(name: "DataModel")
				let local = NSPersistentStoreDescription(url: URL(fileURLWithPath: "/files/local.sqlite"))
				local.configuration = "Local"
				let cloud = NSPersistentStoreDescription(url: URL(fileURLWithPath: "/files/cloud.sqlite"))
				cloud.configuration = "Cloud"
				cloud.cloudKitContainerOptions =
						NSPersistentCloudKitContainerOptions(
								containerIdentifier: "iCloud.com.AppName")
				container.persistentStoreDescriptions = [ local, cloud ]
				container.loadPersistentStores { storeDescription, error in
						guard error == nil else {
								fatalError("Could not load persistent stores. \(error!)")
						}
				}
				return container
		} else {
				container.loadPersistentStores(completionHandler: {
						storeDescription, error in
						if let error = error {
								print("Could load data store: \(error)")
						}
				})
				print("Loaded data store: DataModel")
				return container
		}
}()
Most of this code I got from the video https://developer.apple.com/videos/play/wwdc2019/202/
but I keep getting an error about loading or saving the persistent store or something
fatal error: Could not load persistent stores. Error Domain=NSCocoaErrorDomain Code=512 "The file couldn’t be saved." UserInfo={reason=Failed to create file; code = 2}: Is anyone able to point out what I am not doing right?
Thanks.
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, when coding 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. On the iPhone its usually blank until I add it to the Home Screen. Can work out where the issue is, Ive tried various iterations of Placeholder, Snapshot and Timeline. The issues seams to be because of the IntentTimelineProvider, with a TimelineProvider and static content everything woks fine .
I must be missing something. Please help if you can.
I get this error when submitting my app to the App Store recently.
.
ITMS-90892: Missing recommended icon - The bundle does not contain an alternate app icon for iPad of exactly '167x167' pixels, in .png format for iOS versions supporting iPad Pro. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See ...
It's related to the alternate icons in the app structure and the names I think but has nothing to do with the assets catalog.
In my app a user can choose and icon for the Home Screen.
I have 4 icons to choose and 4 sizes for each icon named e.g. -
AA_appIcon@2x
AA_appIcon@2x~iPad
AA_appIcon@3x
AA_appIcon83.5@2x~iPad
and it used to work fine, but now I get this error for the one name AA_appIcon83.5@2x~iPad.
It is in the correct size 167x167, so not sure what the problem is. It just happen in the last few days, didn't happen on my previous submission a month ago.
The naming format must have recently changed or something. Is anyone able to spot the error?
This is the info.plist
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleAlternateIcons</key>
<dict>
<key>AA</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AA_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<string>No</string>
</dict>
<key>Cake</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Cake_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<string>No</string>
</dict>
<key>NA</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>NA_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<string>No</string>
</dict>
<key>OA</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>OA_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<string>No</string>
</dict>
</dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Cake_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
</plist>
```<?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>CFBundleAlternateIcons</key>
<dict>
<key>AA</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AA_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<string>No</string>
</dict>
<key>Cake</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Cake_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<string>No</string>
</dict>
<key>NA</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>NA_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<string>No</string>
</dict>
<key>OA</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>OA_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<string>No</string>
</dict>
</dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Cake_appIcon</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
</plist>
Hello,
In the calendar app people can subscribe to calendars from the web and have the events in the calendar, but can my Xcode app generate a local url with an ical file that can be subscribed to? Just for the user on the device with the app, not on the internet?
For example my app when run creates an ical file of events that repeat each year, like international days of the year and puts it somewhere like in the group folder or somewhere behind the scenes and then the user can click that link from within the app or copy and past it into the calendar app by adding a new calendar and putting in the url?
I don't want to put the url online because the information is private and just for the user of the device.
When I setup Share extension or Action extension on iOS to import a Vcard into my app it works great but when running the app on Mac catalyst I'm left with a Vcard at the bottom of my screen and I can't close it or do anything, deleting the app and reinstalling doesn't even fix it, I'm going to have to format my computer. How do I deal with these? the just keep building up, How do I make sure my app doesn't do this? How do I close the ones that are open, I'm stuck.
Theres a few things I tried. The .plist option to 'Supports Document Browser' is set to 'No' 'Supports opening documents in place' has to be se to 'Yes' or not included for a Mac Catalyst app or I get this error -
error: 'LSSupportsOpeningDocumentsInPlace = NO' is not supported on macOS. Either remove the entry or set it to YES, and also ensure that the application does open documents in place on macOS.
What I'm thinking is I did not ensure that the app did not open a document in place? Now I have no idea how to undo what I've done. Its just stuck there, attached to my app somehow. I tried deleting the app and all the files associated to the app I could find, but its still there.
How do I prevent this from happening but still get all the card info into my app. it does work to populate the card info into my app, its just this thing here is not closing or I don't want that to happen, that's probably what the error is warning me about.
Hello,
Ive found in watchOS 9 NSUbiquitousKeyValueStore is available and I'm wondering if using the same cloud kit container should the value be the same across devices. It currently works between Mac and iPhone apps, but not between Watch and iPhone.
I have a switch on Apple Watch
if #available(watchOS 9.0, *) {
Toggle("Use iCloud", isOn: $dontUseiCloud)
.onChange(of: dontUseiCloud) { value in
changeiCloudSetting(value)
print("Toggle value = \(value)")
print("Dont use icloud = \(NSUbiquitousKeyValueStore.default.bool(forKey: "dontUseICloud"))")
}
}
}.onAppear(perform: {if #available(watchOS 9.0, *) {isiCloudOn()}})
and when I toggle the switch the Key-Value store changes correctly but only for the Watch. The switch on the iPhone app docent change, even if I wait up to 5 minutes.
I have the same code in my iPhone app and Mac app and the switch change happens almost immediacy through iCloud on both devices. Thanks
Ive added App Group entitlements to my Watch target and Watch Widget target to hopefully create a container both the CoreData for the Watch app and the Widget can draw from.
I put the CoreData object in there for hopefully both the Watch App and WatchOS 9 widget to access.
let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.my-company.my-app")!
let storeURL = containerURL.appendingPathComponent("DataModel.sqlite")
let description = NSPersistentStoreDescription(url: storeURL)
let container = NSPersistentContainer(name: "DataModel")
container.persistentStoreDescriptions = [description]
container.loadPersistentStores { ... }
Following posts in StackExchange Its been working for iOS App and Widget.
It works wonderfully for iOS apps and their widgets.
Would this be identical for WatchOS apps and Widgets?
However when I use the same implementation for WatchOS and Watch widgets it fails to fetch the data giving an error :
WidgetsExtension[75018:10584043] [error] error: No NSEntityDescriptions in any model claim the NSManagedObject subclass 'MyContactCard' so +entity is confused. Have you loaded your NSManagedObjectModel yet ?
'executeFetchRequest:error: A fetch request must have an entity.'
The exact same widget files works on iOS.
EDIT: IT STARTED WORKING after I posted this. My have just been an error with the Core data models or something. Just leave this here so others can know that it does work same as iOS widgets
hello,
Im struggling with the Minimum deployments section in Xcode 14 for the Target of my iOS and Mac Catalyst app.
Its a bit different from what I'm used, previously I could look at the values in a drop down box. That values I would like to set are iOS 12.4 and MacOS 11.0.
What is macOS 14.2 ? it that a catalyst number, What macOS is that?
Nevermind I found this -
macCatalyst 13.0 = macOS 10.15
macCatalyst 13.4 = macOS 10.15.4
macCatalyst 14.0 = macOS 11.0
macCatalyst 14.7 = macOS 11.6
macCatalyst 15.0 = macOS 12.0
macCatalyst 15.3 = macOS 12.2 and 12.2.1
macCatalyst 15.4 = macOS 12.3
macCatalyst 15.5 = macOS 12.4
macCatalyst 15.6 = macOS 12.5
How do I delete a question?
Hello,
Ive ben having an issue with one of my Apps since Ventura came out. The app won't create a new contact It fails giving a few different warnings but no real error. I have tried it unto Ventura 13.0.1 (22A400)
The error is
2022-12-03 09:33:54.543143+1000 **** [1941:15105] [api] Attempt to write notes by an unentitled app
2022-12-03 09:33:54.580714+1000 **** [1941:15105] [plugin] CDX_AB_GetGroupCollectionPath: nil group
2022-12-03 09:33:54.580765+1000 **** [1941:15105] [plugin] CDX_AB_GetGroupCollectionPath: nil group
2022-12-03 09:33:54.581969+1000 **** [1941:15105] [ABCDContact] An ABCDRecord is being saved without having a container assignment. Assigning the contact to <CNCDContainer 0x6000013c92c0 ab>. Please remember to assign contacts to containers to avoid recurring container lookup and contact re-validation costs.
.
When I follow the instructions on this page https://developer.apple.com/documentation/contacts to create a new contact It fails on Ventura to create a new contact and I don't know why. So I submitted a feedback Assistant request (FB11721907)
But I also went ahead and got Notes field access as that was one of the warnings.
That got approved, Now I would like help adding it in my project.
I logged into the Developer Portal and in Identifiers, located my app and went to Additional Capabilities ticked the Box marked Contacts Notes Field Access.
Then instructions in the email say 'Once you’ve finished generating the profile, you can use it in Xcode like any other manually-generated profile.' Im not sure what this means.
I tried to add 'com.apple.developer.contacts.notes' Boolean, YES, to the entitlement file as described in https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_contacts_notes but the app doesn't launch when it's added. And if I put it into the info.plist file it does nothing. Also im not sure how to add the purpose string.