After I installed the profile certificate in VPN and device management, I can't see the installed certificate in the certificate trust settings
Delve into the world of built-in app and system services available to developers. Discuss leveraging these services to enhance your app's functionality and user experience.
Post
Replies
Boosts
Views
Activity
Where do I get. PerfPowerTelemetryClientRegistrationService which is suddenly missing from my system since upgrading to MacOS15/IOS18?
When in Safari, you can say something like, "Siri, text this link to mom" or "Siri, save this link to reminders" and it will do it with the currently viewed link. Shortcuts also has a "Get what's on screen" action that can be added. How do I expose the user's current context to my App Intent?
I have installed iOS 18 beta on one iPhone and Sequoia beta on one computer. Other phones and computers are running iOS 17 and Sonoma. Siri now frequently responds with "I'm having trouble... " or "Some accessories are not responding . ". I have the Home app's Home page open on my Mac. It alternates between two versions of my HomeKit setup. In one version I have several scenes (Good Morning, Goodnight, Go to work) configured and it shows correctly that some lights are on. In the other version there are no scenes and everything thing is reported as "No Response". The display switches between versions very few minutes. It seems to me that Home is referencing two versions of truth in my network. I have tried turning off the two devices running beta OSs
Attempts to purchase an SKProduct or restore all completed transactions via the usual method calls in StoreKit leads to failure in the beta environment with the following error:
Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x300b10210 {Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={NSUnderlyingError=0x300b10090 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?REDACTED, AMSStatusCode=500, NSLocalizedFailureReason=The response has an invalid status code}}}}}
We've tried with existing sandbox user accounts, and created fresh ones which also fail in a similar way. Our beta testers report the same thing. Nothing has changed in our IAP code, and this started happening about 24-48 hours ago.
It seems to be a server-side error - please can someone verify on Apple's side?
I have a document app built using SwiftData because frankly I'm too lazy to learn how to use FileDocument. The app's title is "Artsheets," and I'm using a document type that my app owns: com.wannafedor4.ArtsheetsDoc. The exported type identifier has these values:
Description: Artsheets Document
Identifier: com.wannafedor4.ArtsheetsDoc
Conforms to: com.apple.package
Reference URL: (none)
Extensions: artsheets
MIME Types: (none)
And the code:
ArtsheetsApp.swift
import SwiftUI
import SwiftData
@main
struct ArtsheetsApp: App {
var body: some Scene {
DocumentGroup(editing: Sheet.self, contentType: .package) {
EditorView()
}
}
}
Document.swift
import SwiftUI
import SwiftData
import UniformTypeIdentifiers
@Model
final class Sheet {
var titleKey: String
@Relationship(deleteRule: .cascade) var columns: [Column]
init(titleKey: String, columns: [Column]) {
self.titleKey = titleKey
self.columns = columns
}
}
@Model
final class Column: Identifiable {
var titlekey: String
var text: [String]
init(titlekey: String, text: [String]) {
self.titlekey = titlekey
self.text = text
}
}
extension UTType {
static var artsheetsDoc = UTType(exportedAs: "com.wannafedor4.artsheetsDoc")
}
I compiling for my iPhone 13 works, but then when creating a document I get this error:
Failed to create document. Error: Error Domain=com.apple.DocumentManager Code=2 "No location available to save “Untitled”." UserInfo={NSLocalizedDescription=No location available to save “Untitled”., NSLocalizedRecoverySuggestion=Enable at least one location to be able to save documents.}
//
// ContentView.swift
// HardApp
//
// Created by Besleaga Alexandru Marian on 14.06.2024.
//
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
// A SwiftUI preview.
#Preview { Use of unknown directive '#Preview'
// The view to preview.
}
I'm trying to learn Xcode and got stuck on these error that I receive when trying to apply the macro #Preview, how can declare the directive so I can use it in my own code for the preview it offers ?
Kind Regards
After the upgrade , for some reason now my apps have that hourglass icon next to the app icon and I don’t know how to remove them , the thing is that my limit time list on the settings is empty , did you guys deal with something like that after the upgrade or is any fix to solve it please ?
thank you
I just download iOS 18 beta version in my iPhone 13. I know that this come with many bugs but I can’t understand the autocorrect functionality on keyboard isn’t working in Greek language.
I recently was allowed to leave family sharing due to age and my parents disabled the screen time function, yet i still have screen time limits on my device, and i am kicked out pf settings whenever attempting to go into tje screen time settings, does anyone know a fix/workaround? (Reseting my phone requires the screen time passcode of which i don’t have.)
For a few years now, I have submitted requests for com.apple.developer.usernotifications.filtering entitlement, but never got an approval/denial response from apple. even after contacting them via email, still didn't get a response about the request status.
our app is an emergency alerts app, this entitlement is crucial for our app reliability.
Last request i have sent has Case-ID: 7377207
I've added .storeButton(.visible, for:.policies) to my SubscriptionStoreView, and the buttons do appear, but when I tap on them I get a sheet that just says "Terms of Service Unavailable / Somethng went wrong. Try Again.". (similar for Privacy Policy).
Is this expected in development? Will these start working correctly in production? (and, more importantly, in App Review?)
The docs say that these use the values (i.e. URLs) set in App Store Connect, but that I can override those. This is a new app. Is that wrong, do I need to set the URLs explicitly?
Edited to add:
the console reports: Failed to fetch terms of service and privacy policy: Error Domain=NSURLErrorDomain Code=-1011 "(null)"
Everytime I try to access screen time on the new iOS 18 dev beta it just crashe. Does anyone know any fixes to this?
Hi,
I'm trying to implement a way to share a phone number from call logs with my app.
I would select the call log entry, then "share contact" and share to my app.
I implemented a Share Extension and my application appears in the list of application to share with.
How can I list my application in the list of actions below the app icons?
When I share with my app, the Share Extension view shows up, but no action is possible: I implemented a button to be able to send the number to my application but the action never fires, is it the correct implementation?
How would I implement the sharing of the number with my main app? I tried with a custom url binding but I'm not sure if it is the correct way. My ideal implementation would be that no view show up and my application is immediately launched and the number is pasted.
struct ShareView: View {
var extensionContext: NSExtensionContext?
@State private var contact: CNContact? = nil
@State private var error: Error? = nil
@State private var multiSelection = Set<String>()
@State private var selectedPhoneNumber: String? = nil
var body: some View {
NavigationStack {
VStack() {
if let contact = contact {
Button(action: submitPhoneNumber) {
Text("Submit")
.padding()
.background(Color.green)
.cornerRadius(8)
.foregroundColor(.white)
}
List(contact.phoneNumbers, id: \.self) { phoneNumber in
Button(action: {
print("Phone number selected: \(phoneNumber.value.stringValue)")
self.selectedPhoneNumber = phoneNumber.value.stringValue
}) {
Text(phoneNumber.value.stringValue)
//.padding()
.background(self.selectedPhoneNumber == phoneNumber.value.stringValue ? Color.blue : Color.clear)
//.cornerRadius(8)
.foregroundColor(.black)
}
}
} else if let error = error {
Text("Error: \(error.localizedDescription)")
} else {
Text("Loading...")
.onAppear {
loadContact()
}
}
}
}
.padding()
.navigationTitle("Number")
.toolbar() {
Button("Close") {
close()
}
}
}
func close() {
NotificationCenter.default.post(name: NSNotification.Name("close"), object: nil)
}
private func isButtonActive() -> Bool {
return selectedPhoneNumber != nil
}
private func submitPhoneNumber() {
print("Selected phone number: \(self.selectedPhoneNumber ?? "Nothing")")
guard let phoneNumber = self.selectedPhoneNumber else { return }
guard let extensionContext = self.extensionContext else { return }
print("PhoneNumber: \(phoneNumber)")
let urlScheme = "callclean://"
if let url = URL(string: "\(urlScheme)?phone=\(phoneNumber)") {
print(url.absoluteString)
extensionContext.open(url, completionHandler: nil)
}
close()
}
private func loadContact() {
guard let extensionContext = extensionContext else { return }
for item in extensionContext.inputItems {
if let inputItem = item as? NSExtensionItem {
if let attachments = inputItem.attachments {
for provider in attachments {
if provider.hasItemConformingToTypeIdentifier("public.vcard") {
provider.loadItem(forTypeIdentifier: "public.vcard", options: nil) { (data, error) in
if let error = error {
DispatchQueue.main.async {
self.error = error
}
return
}
if let data = data as? Data {
do {
//let contactStore = CNContactStore()
let contacts = try CNContactVCardSerialization.contacts(with: data)
DispatchQueue.main.async {
self.contact = contacts.first
}
} catch {
DispatchQueue.main.async {
self.error = error
}
}
}
}
}
}
}
}
}
}
}
Thanks for your guidance.
i’ve recently updated to ios 18. I previously had a time limits set for instagram on my phone , so if i am past my time limit i could just ignore the time limit and continue using the app, but after upgrading to ios 18, i simply cannot use the app after the 1 hour limit set by me. Sometimes it would open, but without sound.
I have tried all the things like turning off downtime ,turning off app and webtime activity , adding the app to always allowed list and so on. still no better. I use an 11 pro max.
I recently installed IOS 18.0 Beta on my Iphone 14 Pro. Now more and more apps shutting down due to “Critical threat detected…” Apdo notification not working wven though notification is enabled in the settings.
Since i updated to iOS 18, im losing battery when not using it.
None of my device is able to install ios 18 beta using the ipsw file. I am getting this error. Wondering if anyone else have seen this.
cfgutil restore -I ~/Downloads/iPhone11,8_18.0_22A5282m_Restore_2.ipsw
Waiting for the device [1/2] [*******************************************] 100%
Step 2 of 2: Installing iOS [2/2] [*********>............................] 25%
cfgutil: error: The operation couldn't be completed. (AMRestoreErrorDomain error 10 - Failed to handle message type StatusMsg (Protocol error))
(Domain: AMRestoreErrorDomain Code: 10)
"update" failed on iPhone (ECID: 0x**C****1002E).
This is my cfgutil version:
cfgutil version
cfgutil 2.17 (906)
And I am using Macos 14.5
Thanks!
With the change of iOS 18, the Auto Delete for 2FA is gone, anyone know where it is now?
iOS 18 announced improvements to the Wallet Passes. Does anyone have a link to the updated documentation? The old documentation does not have the changes as of the time of this post. There is a video, however, there are no specifications for the the new image formats (e.g., artwork.png).