Post

Replies

Boosts

Views

Activity

Mirroring Workouts Sample Code Doesn't Work With Simulators
I've realised with the sample code from the WWDC video below I'm getting the following error when trying to use the iPhone simulator and apple watch simulator paired. Whenever i try to test out the sample project I'm getting the following error. Failed to send data: Error Domain=com.apple.healthkit Code=300 "Remote device is unreachable" UserInfo={NSLocalizedDescription=Remote device is unreachable, NSUnderlyingError=0x600000c9c900 {Error Domain=RPErrorDomain Code=-6727 "kNotFoundErr ('rapport:rdid:PairedCompanion' not found)" UserInfo={cuErrorDesc=kNotFoundErr ('rapport:rdid:PairedCompanion' not found), cuErrorMsg='rapport:rdid:PairedCompanion' not found, NSLocalizedDescription=kNotFoundErr ('rapport:rdid:PairedCompanion' not found)}}} Is it not possible to not test out the new WorkoutKit mirroring API's using the simulator? Currently right now if you run the project you'll notice that you can start a workout session on the iPhone > Apple Watch but there is no way to control and mirror on both devices at the moment i.e You can't control the iPhone app on the Apple Watch and vice versa. Also because of this the iPhone can't send data to the Apple Watch i.e. pause, end, water etc. I'm guessing this is meant to be possible since it seems a bit strange to only be able to test this out with actual devices. WWDC Session https://developer.apple.com/wwdc23/10023 Sample Code https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/building_a_multidevice_workout_app
2
0
965
Oct ’24
Health Records entitlement automatically being added.
We seem to be dealing with a weird issue where the clinical health records entitlement keeps on getting added into our final embedded.mobileprovision when we prepare a build for distribution. We seem to get this in the final package. <key>com.apple.developer.healthkit.access</key> <array> <string>health-records</string> </array> But in our projects entitlement file there is no reference to health records. Below is the raw values inside of this 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>aps-environment</key> <string>development</string> <key>com.apple.developer.healthkit</key> <true/> <key>com.apple.developer.healthkit.access</key> <array/> <key>com.apple.security.application-groups</key> <array> <string>group.xxxxx</string> </array> </dict> </plist> And also in the project this isn't selected in the capabilities section either. Has anyone come across this issue before where Xcode automatically adds clinical records even though you haven't selected the checkbox.
3
0
1.7k
Jul ’23
StoreKit2 Unable To Fetch Consumables In TestFlight or App Review
Currently, there seems to be an issue with the Product API when requesting products with an array I don't get an error instead in the console when testing with a sandbox box account I get the following warning. [StoreKit] Did not receive any products or error for products request. Something that's strange which leaves me to believe this may be an internal issue at Apple. Is that if you set up the Xcode project with a StoreKit Configuration file. The products are retrieved just fine and you can mock/test out consumables locally and simulate purchasing great. The issue seems to happen when you're either trying to test via Testflight or if you're trying to use a sandbox account. Something i've tripled check to make sure i've setup the products properly in AppStoreConnect are: Accepted the latest banking agreements and added bank info Made sure that my in-app purchases have a status of "Ready to Submit" at a bare minimum (They have a price & all the relevant info filled in) Made sure the bundle identifiers are all correct and matching Validate the API with the storekit configuration file which it does Added In App Purchase Capability Please can someone at Apple investigate this since I'm unable to get past an app submission due to the reviewer not being able to see these products even though I can locally with the storekit configuration file which is pretty frustrating. I’m using iOS16.1.1 & Xcode 14.0.1
1
0
1.5k
Jan ’23