Apple Developers

RSS for tag

This 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.

Learn More

Posts under Apple Developers subtopic

Post

Replies

Boosts

Views

Created

How to use donated users in your application and display Siri recommended users in Safari's system sharing
The following is my code, which runs successfully and is recommended to succeed, but it still does not show Siri's suggestion to users in the system sharing in Safari import AppIntents import Contacts import CoreSpotlight import Intents import UIKit class TestViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = UIColor.white DispatchQueue.global().async { self.donateMessageInteraction(recipientName: "张三", phoneNumber: "+8613812345678") } } func donateMessageInteraction(recipientName: String, phoneNumber: String) { INPreferences.requestSiriAuthorization { status in guard status == .authorized else { return } // 1. 创建接收者 let recipientHandle = INPersonHandle(value: phoneNumber, type: .phoneNumber) let recipient = INPerson( personHandle: recipientHandle, nameComponents: nil, displayName: recipientName, image: nil, contactIdentifier: nil, customIdentifier: "com.yourapp.recipient.\(phoneNumber)" ) // 2. 创建发送者(你的应用身份) let senderHandle = INPersonHandle(value: "15210639372@163.com", type: .emailAddress) let sender = INPerson( personHandle: senderHandle, nameComponents: nil, displayName: "我的应用", image: nil, contactIdentifier: nil, customIdentifier: "com.yourapp.sender" ) // 3. 创建消息意图 let intent = INSendMessageIntent( recipients: [recipient], outgoingMessageType: .outgoingMessageText, content: "最近怎么样?", // 常用消息内容 speakableGroupName: nil, // 群组名称(一对一设为nil) conversationIdentifier: "com.yourapp.conversation.\(phoneNumber)", // 唯一会话ID serviceName: "My Chat Service", // 你的消息服务名称 sender: sender, // 发送者身份 attachments: nil ) // 4. 配置意图参数 intent.setImage(INImage(named: "user0"), forParameterNamed: \.sender) // 5. 创建并捐赠交互 let interaction = INInteraction(intent: intent, response: nil) interaction.direction = .outgoing interaction.donate { error in error.map { print("捐赠失败: \($0)") } } print("捐赠代码执行完成") } } }
0
0
376
Feb ’25
Urgent: Locked Account Holder – Need Help Transferring Account Holder Role
Hello Apple Developer Community, I’m hoping someone can advise me on a serious issue. Our organization’s Apple Developer Program account has been effectively locked because our Account Holder’s Apple ID is inaccessible. I need to either unlock that Apple ID or transfer the Account Holder role so we can manage our apps. I’ve already reached out to Apple Developer Support, but so far, I haven’t received a response. This situation is critical because our clients rely on us to maintain and update our apps. Key details (some info is masked for privacy): • We’re enrolled as an Organization/Company. • The current Account Holder’s Apple ID is locked and cannot perform any actions. • I have admin/manager access through another Apple ID. I’ve reviewed the documentation on transferring the Account Holder role, but it appears the transfer can only be initiated by the current Account Holder, which is impossible at this point. If anyone has encountered a similar issue or knows a more efficient route to escalate, I’d be extremely grateful for your insights. Thanks in advance for any advice you can share. This is critical to our organization, and we’d appreciate any pointers on how to navigate or expedite the support process.
2
0
385
Feb ’25
Apple Enrolment Program
Hi team, I am trying to enroll my company, in the Apple Developer Program - I am repeatedly receiving a rejection from Apple’s system. It shows in review and when I continue to enrollment, nothing happens. It submits as a new request. I have: ✅ Verified my business name and address with D&B (matches exactly). ✅ Checked that my business is a legal entity (LLP). ✅ Ensured all details match across D&B, UPIK, and Apple’s lookup tool. ✅ Attempted re-submission multiple times without success. However, despite these steps, I am still unable to proceed. Please help.
0
1
287
Feb ’25
Apple Developer Enrollment
Hello, I am trying to enroll to apple developer program as solo developer. While trying to enroll via app my passport and drivers license are not validated. When trying to enroll via web, I fill in the details and try to make the payment, but payment itself is not deducted from my bank account. I receive email that payment is being processed, but nothing further happens.
0
0
145
Feb ’25
BLE ADVERTISE
Dear Apple: The program we developed uses BLE broadcasting to discover devices. The discovered device sends three broadcasts, but when we debug the program, we found that the addresses reported by centralManager::didDiscoverPeripheral for the same device's three broadcasts are actually different CBPeripheral * addresses. I would like to ask how we can identify that these three broadcasts are from the same device? Are there any variables in the peripheral that can identify it as the same device? Thanks。
1
0
239
Feb ’25
Hacker accessing my iCloud and iPhone
A a group of hackers have been illegally accessing my iPhone, all my accounts on my phone, my online university portal, all my stored passwords, and my iCloud. I have changes to my iPhone that I did not do. No one has had access to my iPhone other than myself. I have been dealing with these hackers for five+yrs. they have locked me out of my accounts for several years by changing all my login information. They have disabled my laptop and they have reset my previous phone remotely. I was sent a message from my provide t-mobile that they locked my phone due to someone trying to remotely reset it. Now I am dealing with the same people again. My iphone heats up tremendously, my battery drains constantly, I cannot access my accounts because they are changing my passwords, and now they have disabled access to my sim.
1
0
244
Feb ’25
App logout every time delete from open aps
Hi, I am testing my app with TestFlight. The app is developed with React Native Expo. Step 1: Log into the app – everything works fine. Step 2: Use the app – everything works fine. Step 3: Close the app without logging out, just close it. Step 4: Remove the app from the recent apps window. Step 5: Try to open the app again, but it requires login again. I don’t understand why the login parameters are not retained and why the app asks me to log in again. Code used for login handling: import AsyncStorage from "@react-native-async-storage/async-storage"; useEffect(() => { const loadToken = async () => { const token = await AsyncStorage.getItem(TOKEN_KEY); if(token) { axiosInstance.defaults.headers.common['Authorization'] = `Bearer ${token}`; try { const response = await axiosInstance.get('/auth/check'); const data = response.data; setSession(token); setUser(data.user); } catch (e) { setSession(null); setUser(null); } } } loadToken().then(() => setIsLoading(false)); }, []); Important Note: This issue only occurs when we switch to production. In the test environment, everything works fine, and we don’t experience this problem. However, as soon as we build for production and test on multiple devices, this issue appears. Thanks in advance!
1
0
331
Feb ’25
Auto-Lock in iOS 18.4 not working. iPhone 16 Pro
Since updating to iOS 18.4 the auto-lock on iPhone 16 Pro isn’t functioning. All settings remain unchanged from previous versions, however the display will not turn off. Same iOS on my older iPhone 11 doesn’t have the issue and screen turns off as usual with the same system settings. Have tried a force restart on the 16 Pro, nothing changed. Any ideas?
2
2
419
Feb ’25
Family downtime crash
I try to go into screen time for my daughter and it won’t let me in to adjust anything. It freezes and I have to close out the settings app completely by swiping up. I’ve tried turning my phone off and doing a hard reset but it still does that. It worked completely fine until the most recent update.
1
0
268
Mar ’25
Worried that I downloaded malware from a disk image
Hi, I accidentally downloaded a disk image and tried to run it, I shortly realized that it is probably malware. I'm worried that there's malware on my computer but I'm unsure if Gatekeeper was able to block me from running the image. I believe I clicked "Open anyway" or something along those lines even after it said not to run it, so I'm pretty scared that it was able to run. I checked the logs for Gatekeeper, and I see that it says "Code did not match any currently allowed policy". Does this mean it blocked whatever disk image I mistakenly tried to run? Thank you so much for your answers, it will help me stop worrying. 2025-03-01 10:45:10.480495-0800 0x953f85 Default 0x0 301 0 syspolicyd: [com.apple.syspolicy.exec:default] Fast Gatekeeper overrides are: inactive 2025-03-01 10:45:14.308061-0800 0x95412e Default 0x0 301 0 syspolicyd: [com.apple.syspolicy.exec:default] Caller indicated a Gatekeeper override occurred: <private> 2025-03-01 10:45:14.314205-0800 0x95412c Default 0x0 39200 2 CoreServicesUIAgent: [com.apple.launchservices:uiagent] Cleared Gatekeeper rejection record sucessfully 2025-03-01 10:45:25.864198-0800 0x953f85 Error 0x0 301 0 syspolicyd: [com.apple.syspolicy.exec:default] Error Domain=GatekeeperPolicyScanError Code=-67018 "Code did not match any currently allowed policy" UserInfo={NSURL=<private>, NSLocalizedDescription=Code did not match any currently allowed policy} 2025-03-01 10:45:30.659323-0800 0x95430b Default 0x0 301 0 syspolicyd: [com.apple.syspolicy.exec:default] Adding Gatekeeper denial breadcrumb (direct): PST: (path: 5451bc9511ea5cc0), (team: (null)), (id: project-55554944375cf61a58343acb828244228823e532), (bundle_id: NOT_A_BUNDLE) 2025-03-01 10:45:30.662733-0800 0x95430b Error 0x0 301 0 syspolicyd: [com.apple.syspolicy.exec:default] Terminating process due to Gatekeeper rejection: 39389, <private> 2025-03-01 10:45:54.602124-0800 0x9545ed Default 0x0 301 0 syspolicyd: [com.apple.syspolicy.exec:default] Fast Gatekeeper overrides are: inactive 2025-03-01 10:46:35.578533-0800 0x9548b4 Default 0x0 301 0 syspolicyd: [com.apple.syspolicy.exec:default] Fast Gatekeeper overrides are: inactive 2025-03-01 10:46:37.719530-0800 0x9533cf Default 0x0 39200 2 CoreServicesUIAgent: [com.apple.launchservices:uiagent] Cleared Gatekeeper rejection record sucessfully
1
0
398
Mar ’25
Ongoing Device Setup ios 18.4 beta
Hi all, after installing ios 18.4 beta here in Europe (and also resetting and restoring my iphone given Apple Intelligence features were not working at all initially) my phone decided to reoptimise my whole photo library which took a while and I understand it was a battery consuming process. Nonetheless, this is all done, all Apple intelligence features supposedly work and my phone is still in ongoing device setup burning through the battery to the point I am sure this will make my battery health drop. does anyone know what is going on (indexing?), how long it will take and why is it happening? Is it because of the 18.4 beta or because of having Apple Intelligence for the first time? can someone please confirm that at the very least this will NOT have to take place again after moving to the official 18.4? thanks
2
0
2.9k
Mar ’25