Hi,
I am getting an error stating "Argument passed to call that takes no arguments". I want this Apple Watch App to measure and store RR Intervals from the PPG sensor on the Apple Watch for Heart Rate Variability calculations. Please help me fix this, I can't figure it out. Here is my code:
heartbeatQuery = HKHeartbeatSeriesQuery(predicate: predicate,
dataReceivedHandler: { (query, timeSinceLastBeat, ended, error) in
// Switch to main thread for UI updates
DispatchQueue.main.async {
if let error = error {
print("Heartbeat query error: (error.localizedDescription)")
self.fetchErrorMessage = "Heartbeat query error: (error.localizedDescription)"
// Consider stopping the workout session if the query fails critically
// self.stopWorkoutSession()
return
}
if ended {
print("Heartbeat query indicates series ended.")
}
// Append valid RR intervals
if timeSinceLastBeat > 0 {
self.rrIntervals.append(timeSinceLastBeat)
self.beatCount += 1
}
} // End DispatchQueue.main.async
}) // End query data handler
// --- END OF PROBLEMATIC INITIALIZER ---
// Execute the query if it was created successfully
It recommends the fix as removing this part:
'(predicate: predicate,
dataReceivedHandler: { (query, timeSinceLastBeat, ended, error) in
// Switch to main thread for UI updates
DispatchQueue.main.async {
if let error = error {
print("Heartbeat query error: (error.localizedDescription)")
self.fetchErrorMessage = "Heartbeat query error: (error.localizedDescription)"
// Consider stopping the workout session if the query fails critically
// self.stopWorkoutSession()
return
}
if ended {
print("Heartbeat query indicates series ended.")
}
// Append valid RR intervals
if timeSinceLastBeat > 0 {
self.rrIntervals.append(timeSinceLastBeat)
self.beatCount += 1
}
} // End DispatchQueue.main.async
})'
But after I remove that it says "Cannot assign value of type 'HKHeartbeatSeriesQuery.Type' to type 'HKHeartbeatSeriesQuery'" PLEASE HELP ME
Thanks
Dive into the vast array of tools, services, and support available to developers.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I don't want to throw anyone under the bus here, but I think the error handling for the D-U-N-S number verification step could be improved.
Shown on page:
The information you entered did not match your D&B profile. Before submitting your information, check your D&B profile. If you've recently changed your legal entity name, update your D&B profile.
This message is confusing when the only information provided is the company name, which exactly matches the D&B profile.
We get more information about the error in console than what is shown on the page:
"resultCode": 20010,
"resultString": "Your organizations information is not complete.",
"userString": "Your organizations information is not complete.",
"requestUrl": "https://developer.apple.com/services-enrollment/validateDunsDetails",
Displaying a clearer error message in line with this would greatly improve user understanding of what went wrong.
Hi, I requested the https://itunes.apple.com/lookup?id=6482849843&country=us for getting the information of Goods puzzle sort challange , but the screenshotUrls in the response was empty. Is iTunes search API has issue with getting the screenshot urls ? Is there any plan to update it ?
Topic:
Developer Tools & Services
SubTopic:
General
I get this error when registering as a developer'Your enrollment could not be completed'
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
My app has a Watch app companion, and a Widget.
are this settings correct to distribute these to TestFlight and Apple Store ?
Topic:
Developer Tools & Services
SubTopic:
Xcode

Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
This started on April 4.
System status says it's fixed, but I'm still having issues
I found this file config in my macOS System Process but I dont understand Who using this service and Who set this up for me?
I never use any token
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I've been trying to enroll my account in a paid Apple Developer Program. I've attempted this for the third time, and the billing is in process according to the bank, yet it has been more than 48 hours and still no response. Even through Apple Support, I have not received a response to my inquiry. Please advise.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I have a VPN installed (Global Protect) on my company computer, which is a MacBook Pro M2, to access the company network, internal URLs, websites, and run the app I work on. However, even with the VPN installed, I am having trouble accessing certain resources. The solution found was to manually configure the proxies for my Wi-Fi network. After configuring the proxies, I was able to access all the company's URLs and everything I needed. However, the Xcode Simulator is not picking up these network configurations, and when I try to run the project, it does not work.
How can I solve this?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Within Xcode's settings location section is a drop down menu to switch between setting the derived data location to be default, relative or custom.
However its a global setting.
I work on more than one project simultaneously, and for one of them I want the location set to relative, but default for all the others.
Is there any way of achieving that?
Hi,
I'm working in unity and I've implemented Firebase Phone Number Authentication in it. Everything works fine when I directly install build from xCode. App Attest screen shows up, user receives OTP on their phone and login works. But when I download the same build from TestFlight, it gets stuck after the user sends OTP request.
I've added Push Notifications and App Attest in capabilities. I've also additionally added Remote Notifications.
In device log I see an error about mobile provisioning file but I've added that to my account also. Is this expected behavior that phone number authentication does not work on TestFlight? If yes, how can I get this approved from apple since they need to test it before approving it.
Thanks!
My newly registered Apple Developer account has been unexpectedly blocked before I was able to submit our app. This is our first iOS app and I believe this may be a misunderstanding. We’d like to resolve this as quickly as possible (case ID is 102568035119). Please let us know the steps we need to take.
Trying to use SwiftUI Preview in Xcode 16.2 on complex project, I have no access to Developer Apple team, instead I am using manually installed provision profiles to test on iPhone.
So, SwiftUI Preview does not work with diagnostic error "Failure: Framework Agent preparation failed: Could not find a team ID"
I have an issue when i use external tester with a public link and emails.
Test fly is well installed but when i have to open the app, it just charge as seen in the screen.
Hi all. I don't know where else to go in order to find a way to communicate with Apple or reach help.
I have enrolled to the Apple Developer Product, no money charged in my account by I have received confirmation of Apple Acknowledgement that I have made an order.
Specifically 2 weeks now I try to contact someone from Apple side but with no luck. Recently I received the following and I had a small conversation from them.
If you have additional questions related to this request, please > reference case number 20000089031868.
Ge***le -> this is the name of the support agent
Did I do something wrong from my side? Does anyone has the same issue?
Hello,
I've noticed that many people on the forum are experiencing issues enrolling in the Apple Developer Program. I’m facing the same problem—I can't complete my enrollment using my MacBook Pro. When I try to enroll through the Apple Developer app, I get an error saying, "Enrollment through the Apple Developer app is not available for this Apple ID."
So, I tried using Safari instead. I submitted all my personal information and credit card details and initiated the order. However, no transaction was processed from my bank account, and I received an email stating that I would be notified when my order and items are ready.
When I check the Apple Developer portal, my enrollment status is Pending, and I see a message prompting me to complete the purchase, as if I need to make a new payment. I don’t understand why Apple makes it so complicated just to subscribe to the Developer Program.
Why can’t I use my MacBook Pro for enrollment?
Why does the Developer portal ask me to complete the purchase even though I already submitted my payment details?
Why is the process so confusing?
Any help or clarification would be greatly appreciated.
Thanks!
I enrolled to the apple developer account more than one week ago. Nothing!
After 3 or 4 emails to support I received an email with steps I should perform from the iPhone app. I did so, my money was charged and ... nothing.
My enrollment has been withdrawn no activation nothing.
I made another request (although I am not sure that it is ok).
Can somebody help me?
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Hello,
Two months ago, I tried to enroll in the Apple Developer Program and provided official documents such as my ID and passport. However, I was repeatedly asked to upload them again until my account was declared no longer eligible for use in the Apple Developer Program.
I don’t know why my ID was rejected. I tried uploading a regular photo of the document, I tried a scan, and I tried various formats, but nothing worked.
Now I want to try again and enroll, but the button is not clickable.
Can you please guide me through what went wrong and how I can try again?
Thank you.
Hello,
I have been enrolled for apple developer program in 14th of February which says it should takes up to 48 hours to enroll. I have received my order number which is W1510513031 but my account is still seems Pending when i logged in. How long it should take? In my account when i logged in it still have purchase button there which i have already paid for it.