I'm working on an app that reads and writes exercise minutes to HealthKit. Everything functions correctly up to iOS 18.0.1, but starting from iOS 18.1, my implementation is no longer working as expected.
Here's the code snippet I use to write to HealthKit:
let workout = HKWorkout(activityType: .other, start: startDate, end: endDate)
try await healthStore.save(workout)
This code successfully writes to both workouts and exercise minutes in iOS 18.0.1 and earlier. However, from iOS 18.1, it only writes to workouts and not to the exercise minutes data source.
Has anyone encountered this issue or have insights on how to resolve this?
Apple Developers
RSS for tagThis is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and foster a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi, I noticed that all my apps are sometimes blocked even if I don’t have set up screen time for them. How can I fix it?
I use a parental control app and it should block apps only if I enable child mode, but after the iOS 18 update, it blocks apps even when I am still in parent mode.
Hello Apple guys I’m JameelPerkins asking can anybody test out Belkin connect usb c to HDMI adapter from the ps5 and make a huge gameplay video from FaceTime and play games such as sonic x shadow please Listen to my feedback I wish gamers hear me out bout this gameplay please do it before the year is over thank you ?
Topic:
Community
SubTopic:
Apple Developers
I once changed my Apple ID. Before changing it, I had set up a passkey for the Apple ID website. After changing my Apple ID, whenever I log in to Apple ID, it still shows my previous Apple ID. Additionally, the passkey for the Apple ID website is not present in my 'Passwords' app, so I am unable to delete it.
For years every time I click on the phone app in my car it use to show resent calls now it opens favourites by default. how can I change it?
Hi everybody,
My team and I are currently working on an app that requires us to use localizations for the CFBundleDisplayName property in info.plist. However we are running into some issues ourselves, we need to localise the CFBundleDisplayName property for two specific countries:
Netherlands
Belgium
We've tried to use the String catalog and we've added the corresponding languages/regions there:
nl-BE (CFBundleDisplayName = x)
nl-NL (CFBundleDisplayName = y)
However the nl-BE localization does not seem to be used when changing the device language to Dutch (Belgium). It uses the nl-NL (y) value for the CFBundleDisplayName.
Is it possible to use CFBundleDisplayName localizations for specific regions that use the same language? such as Belgium and the Netherlands. If not I fear that we need to build two apps...
When I activate Siri and the phones connected via car play, the music from the entertainment system still plays. So i'm trying to talk and listen to Siri with the music playing in the background.
Any ideas if theirs an option i'm missing or its an iOS issue?
Topic:
Community
SubTopic:
Apple Developers
Locked phone -> Face ID unlocking (without swapping up to home page) -> The phone stays unlocked and wait for swapping up endlessly (don’t locking after the setted aut. locking period).
Sorry for the bad english - I hope you will understand what is the bug.
I need to be able to access programmatically the NTFS Extended File Attributes of a remote Windows file server, specifically Title and Genre. (When these files are imported into Apple TV Library it includes these attributes for easy sorting).
I'm planing on creating a Python program to access the files.
Given that, how would I change these attributes programmatically?
Topic:
Community
SubTopic:
Apple Developers
I am frequently a passenger in the car but we use my phone for CarPlay. Before the latest update, I could still use my phone to send messages, review transcript of voicemail messages and read/send message on Slack while being connected to CarPlay.
However, now am unable to do so. The entire car has to listen to my text message exchange or my work slack messages. I have gone through just about every setting/function in my phone trying to figure out how to get functionality back in my iPhone while being connected to CarPlay but I can't find anything that has worked.
I have tried removing my car from CarPlay and reconnecting it but that did not work.
Any advice would be greatly appreciated.
I’m need invitation code to play Minecraft
China VisionPro Version 2.0.1 Facetime will crash if you use an iOS 18.0.1 device to join Facetime after sharing the link. Facetime will crash even if you join it normally. How to solve
Topic:
Community
SubTopic:
Apple Developers
Since two days my hidden compartment in my App library has been disappearing. I am able to put apps on look on Per-Apps in Settings but the apps are neither locked or is there a hidden compartment. Can you please fix this bug I have IOS 18.2 and also have the pre-save Beta version on but still I doesn‘t work.
Topic:
Community
SubTopic:
Apple Developers
Why? I don’t like having a bunch of apps especially new ones that are unnecessary. Can we at least have the option to delete the app without losing all the data in the app? Like can we still have the section in settings for passwords. This is ridiculous
Topic:
Community
SubTopic:
Apple Developers
I just tried to update to iOS 18....
Stated I needed to free up storage... I did..... Attempted to download the update it stopped halfway because now the update has taken up all the space and now telling me I need 11gb more which basically is me deleting everything off my phone as I've already deleted the original amount they asked before the update started. At this point stop updating the iOS because it's just a sham to make people buy more storage space
Topic:
Community
SubTopic:
Apple Developers
Context: I’m not an app developer, but I’m doing some research in order to gain a high level understanding of an app that I want some developers to build for me.
Basically I need a navigation app built (integrated with Google Maps) that works pretty much like Google Maps. This app will connect to and stream live navigation data to a car HUD (heads-up-display) device using WiFi direct (to facilitate high bandwidth streaming). The purpose of the streaming from the mobile app to the HUD is so that the driver can see the live map without having to look at their phone.
This leads me to my QUESTION: this functionality (streaming from app to HUD) is similar to what AirPlay does & I’ve read that Apple rejects apps that replicate AirPlay’s screen mirroring function. I’ve also read that in order to work around this, my app should limit the information that is sent to & displayed by the HUD device (basically, shouldn’t mirror the whole screen). So, would Apple still reject my app if it only streamed the live map onto the HUD device & left out all the other information displayed on the app (ETA, turn signals, distances etc.), and thus refraining from streaming the entire screen?
I have a problem where my Anker 321 MagGo stopped charging my iPhone 15 Pro wirelessly. I can charge it via cable, but I can't use Magsafe. I think it can be about the IOS 18.2 Beta 2 update, but I'm not sure. Is there anyone have the same problem? Or do you have any suggestions for me?
My games on my ipad 9th generation are constantly crashing they weren’t doing this before on the iOS 17 update but I haven’t seen change on my phone either, the games will sometimes say I don’t have enough storage but I’ll check my storage and I have 30gbs free of storage and the games I am playing are small games that aren’t even more than a 1 gb or 5 gb’s I just want to know if it’s because of the update because I seen ios 18.1 came out and it was suppose to allegedly fix that and I started playing it hasn’t work I even tried hard resetting my iPad that didn’t work either I’ve honestly given up and I’m thinking about going back to target and getting one that hasn’t been updated yet because this is outrageous
Topic:
Community
SubTopic:
Apple Developers
Can someone give me a TestFlight code, I just wanna beta-test in peace without bullsh8 codes
Toggle button for SMS forwarding (iOS Settings app > Apps > Messages > SMS Forwarding) missing in iPhone.
Instead of Toggle button for SMS forwarding (iOS Settings app > Apps > Messages > SMS Forwarding) in iPhone ,a grayed out text appears if the other Apple device is logged in to iCloud after the primary iPhone.
Messages in iCloud are switched On for all devices, and all devices are on latest iOS, iPadOS, macOS. iMessage is also On.
The toggle button appears for SMS forwarding (iOS Settings app > Apps > Messages > SMS Forwarding) in iPhone against any device logged in to Apple account in the following conditions:
1.) the iPhone is restored as new and logged on to the iCloud ID, after the other Apple device was logged in to iCloud with same ID. In other words, the iPhone under consideration and its Messages in iCloud are logged on in the last out of all other Apple devices (iPad, macBook, any other iPhone); or
2.) the messages in iCloud is toggled "Off" in the respective other Apple device.
Perhaps the above condition (2) is emanating out of the Apple support article https://support.apple.com/en-in/102545, but the condition at (1) definitely does not seem to have any basis. The behaviour at (1) seems a bug.
Topic:
Community
SubTopic:
Apple Developers