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

Activity

Xcode16打包运行在iOS18系统上,searchbar 在系统键盘输入中文时,textDidChange代理方法表现异常问题
Xcode16打包运行在iOS18系统上,当输入中文时,- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText; 这个代理方法,输入中文时,每次按下拼音 就会触发。 Xcode16打包在非iOS18系统上不会这样,Xcode15打包,在iOS18+和iOS18-系统上也都不会这样,只有Xcode16+iOS18 会这样
1
0
158
Apr ’25
Issue with App Store Server Notifications V2 - Notification Ordering Problem
We are currently listening to App Store Server Notifications V2 and have encountered an issue with notification ordering. Specifically, there are instances where Apple sends the DID_CHANGE_RENEWAL_STATUS notification before the INITIAL_BUY notification. This leads to a situation where we are unable to process the cancellation of a transaction that is unknown to us at the time of the renewal status change. Could you please clarify why this occurs? If this is a bug, could you kindly address it and implement a fix? Below, I have included examples that illustrate the issue. These examples I obtained using the Notification History API, which may help in troubleshooting. bundleId: com.picsart.studio case 1: originalTransactionId 350002410***633 DID_CHANGE_RENEWAL_STATUS - ‘2025-03-05T00:47:05.900Z’ INITIAL_BUY - ‘2025-03-05T00:47:40.728Z’ case 2: originalTransactionId 420002297***345 DID_CHANGE_RENEWAL_STATUS - ‘2025-03-03T11:43:54.006Z’ INITIAL_BUY - ‘2025-03-03T11:43:56.437Z’ case 3: originalTransactionId 150002224***082 DID_CHANGE_RENEWAL_STATUS - ‘2025-03-02T05:15:36.610Z’ INITIAL_BUY - ‘2025-03-02T05:15:52.666Z’
0
0
169
Mar ’25
iCloud file reading and writing (iOS)
On my first attempt at adding iCloud to my existing app this is how far I've gotten. For reasons that I won't go into, the use case for my app does not need coordination. I have successfully made my app write a file to the Documents directory of iCloud and read back that same file without errors. In testing on a real iPhone 13 and iPhone 7 I have verified that my app can write a file to iCloud from the iPhone 7 and then read back that same file on the iPhone 13, so I know that the file truly exists in the cloud. But when I make my app on the iPhone 13 write to iCloud, my app on the iPhone 7 says the file does not exist. Exactly the same build of my app is running in both phones. This is problem #1. Problem #2 is that none of these files appear in the iCloud section of the Files app on either of these Phones, nor do they appear in the iCloud section of my Mac. All devices are signed in to my same Apple account in iCloud. Also my info.plist file in the app contains: <key>NSUbiquitousContainers</key> <dict> <dict> <key>iCloud.com.{my domain}.{my app}</key> <dict> <key>NSUbiquitousContainerIsDocumentScopePublic</key> <true/> <key>NSUbiquitousContainerSupportedFolderLevels</key> <string>Any</string> <key>NSUbiquitousContainerName</key> <string>{my app}</string> </dict> </dict> </dict> <key>UIFileSharingEnabled</key><true/> The iPhone 7 is running iOS 15.8.4 and the iPhone 13 is running iOS 18.3.2. The code that does the writing to iCloud is: NSFileManager *fman = [NSFileManager defaultManager]; NSURL *urlDrive = [fman URLForUbiquityContainerIdentifier: nil]; NSURL *urlDocs = [urlDrive URLByAppendingPathComponent:@"Documents"]; if(urlDocs.path == nil) { NSLog(@"NULL path"); return; //..big problem } if( ! [fman fileExistsAtPath: urlDocs.path] ) { //..need to create the Docs directory NSError *err00 = nil; @try { [fman createDirectoryAtURL: urlDocs withIntermediateDirectories:true attributes:nil error:&err00]; NSLog(@"created the directory"); } @catch (NSException *except) { NSLog(@"Exception creating directory %@", except); } } //..directory is now created NSLog(@"url=%@", urlDocs); NSURL *urlFile = [urlDocs URLByAppendingPathComponent:txtfname()]; NSData *fdata = [@"Hello world" dataUsingEncoding: NSUTF8StringEncoding]; NSLog(@"file url=%@", urlFile); NSLog(@"file Data=%@", fdata); NSError *errorReturn = nil; Boolean ret = [fdata writeToURL: urlFile options: NSDataWritingAtomic error: &errorReturn]; NSLog(@"returned %1d, error=%@", ret?1:0, errorReturn); And the code that does the reading is: NSFileManager *fman = [NSFileManager defaultManager]; NSURL *urlDrive = [fman URLForUbiquityContainerIdentifier: nil]; NSURL *urlDocs = [urlDrive URLByAppendingPathComponent:@"Documents"]; NSLog(@"url=%@", urlDocs); if(urlDocs.path == nil) { NSLog(@"urlDocs.path is NULL!"); return; //..big problem } if( ! [fman fileExistsAtPath: urlDocs.path] ) { //..need to create the Docs directory NSLog(@"It seems the urlDocs folder does not exist"); } NSURL *urlFile = [urlDocs URLByAppendingPathComponent:txtfname()]; if([fman fileExistsAtPath: urlFile.path]) { NSLog(@"file %@ exists", urlFile); [fman copyItemAtURL: urlFile toURL:<#(nonnull NSURL *)#> error:<#(NSError *__autoreleasing _Nullable * _Nullable)#>]; } else { NSLog(@"file %@ DOES NOT EXIST!", urlFile); }
1
0
117
May ’25
18.5 beta 22F5042g April 2, 2025
18.5 beta 22F5042g April 2, 2025 this last updates i did have troubles with my wi~fi connections.I dont know if it is only me who experienced this problem.Let us share and wait to see the perfomance of the new beta firmware updates.
0
0
91
Apr ’25
RxSwift Driver got fatal error in Swift Testing because it is not called form main thread.
Hi, I'm trying the new Swift Testing instead of XCTest for my new project. I am using RxSwift+UIKit. And when I am trying to test my ViewModel that has a Driver in it, it crashes due to the driver is not being called form main thread. Thread 5: Fatal error: `drive*` family of methods can be only called from `MainThread`. Here is the test code: struct PlayerViewModelTest { @Test func testInit_shouldPopulateTable_withEmpty() async throws { // Arrange let disposeBag = DisposeBag() var expectedSongTableCellViewData: [SongTableCellViewData]? // Act let sut = PlayerViewModel(provideAllSongs: { return .just(mockSongList) }, provideSongByArtist: { _ in return .just(mockSongList) }, disposeBag: disposeBag) sut.populateTable .drive(onNext: { expectedSongTableCellViewData = $0 }) .disposed(by: disposeBag) // Assert #expect(expectedSongTableCellViewData != nil, "Should emit something so it should not be nil") #expect(expectedSongTableCellViewData!.isEmpty, "Should emit empty array") } } This never happen in XCTest. So I assume Swift Testing is not being run in the main thread? How do I fix this? Thanks
1
0
148
Mar ’25
Beta Channel Setting Prevents Ventura Security Updates on Older Macs
I discovered an issue where older Intel Macs (like my 2017 MacBook) enrolled in the macOS Sequoia Public Beta do not receive Ventura security updates, even though Sequoia is not compatible with the hardware. My system said “macOS is up to date” while stuck on Ventura 13.7.1, but after switching to the Ventura Public Beta channel, it immediately showed a new update available. This seems like a serious flaw—Apple should warn users or fall back to compatible OS versions when an enrolled beta is unsupported. Has anyone else experienced this? Could be a widespread issue for Intel Mac users still relying on Ventura.
0
0
67
Mar ’25
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
My mail app keeps crashing? Can Anyone help? I'm using Mac OS Ventura 13.7.5 - updated yesterday and having this issue ever since: Translated Report (Full Report Below) Process: Mail [924] Path: /System/Applications/Mail.app/Contents/MacOS/Mail Identifier: com.apple.mail Version: 16.0 (3731.700.6.1.10) Build Info: Mail_App-3731700006001010~2 Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 502 Date/Time: 2025-03-31 23:17:55.8952 +0100 OS Version: macOS 13.7.5 (22H527) Report Version: 12 Anonymous UUID: 2B9E5AC3-9B82-567C-8B10-A0555BEEE9BC Time Awake Since Boot: 990 seconds System Integrity Protection: enabled Crashed Thread: 3 Dispatch queue: MCTaskHandler queue (QOS: BACKGROUND) Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Mail [924] Application Specific Information: abort() called
0
0
140
Mar ’25
Error with downloading SAP
Hi! I am a 3rd year accounting student trying to install an SAP gui onto my brand new Macbook Air. Every time I download the app, it refuses to open and pops up with this error. "CODESIGNING 1 Taskgated Invalid Signature" I have Java installed for it and have followed my professor's directions, so it should be working. Can someone help me?
1
0
172
Feb ’25
ios 18.4.1 internet issues
I’ve recently updated to ios 18.4.1 and I have problems with the internet. Things download painfully slow, an application that used to download in 10 seconds is now downloading in 2 minutes. Videos tend to stop at some point and when i fast forward them it stops to load a little when on the previous version it would work fine. It feels like my internet aged 30 years in 10 minutes. I’ve tried on other phones (not iphones) and it works just fine. Is it from the update or is it just my internet?
1
0
130
Apr ’25
Subscribed Calendar Issue
I'm running into issues with iOS respecting the HTTP 410 "Gone" response type. Setup: Using the native iOS Calendar app, add a new subscription calendar. "Add Subscription Calendar" Add the URL of a ICS calendar subscription that you control, e.g. https://mywebsite.com/userfeeds/23/cal.ics Make sure to select the "Account" option and choose "On My iPhone/iPad". Set the query amount to 15 mins. Calendar events show as expected, device queries the latest updates from the server every 15 minutes. Server returns HTTP 200 with the .ics contents. Now, assume there is a need for the feed to end - maybe the user unsubscribed to mywebsite.com. There is currently no way for the mywebsite.com server / response to tell the device the feed has ended and it should stop requesting. If the user forgets to go to calendar and manually unsubscribe the device will continually ping the server every 15 minutes indefinitely. It's turning into a virtual DoS for my platform. iOS should respect the HTTP 410 "Gone" header or something similar. If the server returns a HTTP 410 response code for https://mywebsite.com/userfeeds/23/cal.ics X amount of times, the feed should be automatically removed. I've opened several tickets over the last 3 years and have not even had a status change on the tickets. Does anyone know how to resolve this or a work around?
0
0
192
Apr ’25
Failed to open URL : Error Domain=NSOSStatusErrorDomain Code=-10814
Regarding the Issue with URL Scheme Not Working。 Hello, our app on the App Store has the following CFBundleURLTypes configuration: We've discovered that the qmkege:// URL scheme is failing to open the app. Steps to Reproduce: 1、We downloaded the installation package from the App Store 2、Entered qmkege:// in Safari, but it fails to launch our app。 The system logs show the following: Key Observation: This issue is not consistently reproducible. In most cases, when we install the app directly from the App Store (without VPN), it works fine. However, the problem occurs when downloading the app through the App Store while connected via VPN. Looking forward to your feedback.
1
0
81
Apr ’25
AR WorldMap Relocalization for Identical houses.
i have a specific requirement as below. i have apartments in which i have 4 units and each unit will be of same layout. furniture etc.. might change but not walls and layout as far as i know. Step1: Now i will enter into one unit, scan the entire unit and save it using RoomPlan Api and at the end of the scan i will be saving the worldmap as well. Step2: i want to use the previously saved worldmap and enter into another unit and want to relocalize with only walls because the furniture might be different. is that possible. if not is there any otherway to achieve this functionality? i really appreciate you valuable time. Thankyou.
5
0
233
Jun ’25
Unauthorized Access, Reinstalling software does not work
Hello! I am new here but could really use some support. For the last year or so I have been bugged by the feeling that my devices were not completely managed by myself. After this week I have seen my computer and devices do things on their own without me touching the keyboard. SO I am hoping someone here can help me get rid or at least get to the root of the problem as I do not know what else I can do! SO far I know they are accessing all my devices remotely but am unsure how they do it since someone times there is no wifi around, I'm thiniking bluetooth maybe or perhaps another form of devices talking and sharing info with each other. Any support helps!!!
1
0
255
Feb ’25
A payment platform that enable user in west Africa to be able to credit their Apple account.
My team and I are currently working on an app, that enable user especially in Nigeria who are having issues with crediting thier Apple account in other to carry out some transactions such as Apple Music subscription and co. This project wI’ll grant user easy access. We are currently seeking assist and API Support
0
0
80
Apr ’25
Random Apple ID Accounts
Recently, I have decided to delete all my Twitter accounts, but it turns out an Apple ID was used for one of them, I am unable to delete this account due to that fact because I do not have access to the “email” required. Twitter support says contact email provider, given that I used an Apple ID as the email, am I supposed to contact Apple support instead?
1
0
314
Feb ’25