Maybe a bit of a simplistic question, but….
Best ways to create music - programmatically - within an app?
I have a few small, simple games that I would like to add some background music to. I’ve fiddled with AVAudio, SKAudio, and now AudioKit. I’m just not quite finding the holy grail of music generation. I don’t know if it’s more technique or tool.
So I thought I’d hit up the pool of minds here for some suggestions…?
This is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and join us in fostering a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hardware: iPad Pro 11" (M2 Version)
Software: iPadOS 18.4 Beta 4 (most recent as of 2025-03-24)
Got an interesting one today that I am curious if anyone else has run into, and sadly it’s one that does affect my iPad use a lot!
I use the Magic Keyboard 11” on mine. After upgrading to the Public Beta 4 last night, the keyboard works fine, the trackpad shows my grey dot on the screen and even indicates that it recognizes a trackpad click by that grey dot changing slightly.
However, the actual click, nor scrolling, actually works in any way shape or form. The only gesture I’ve seen work up to this point is the three-finger motion to change applications, that’s it.
I have two iPad’s, and two keyboards, and it does not matter which keyboard one I use, which confirms that it’s likely a software issue of some sort. Other reason that’s the case? Hooking up an external trackball and the same behavior happens.
Anyone else run into this?
im on ios 18.3.2 but this has been happening to me since I updated to ios 18 I think. every time I try to open find my, it opens and then after a few seconds it crashes. and then my phone bugs out for a few minutes then everything goes back to normal. is there any way to fix this? i wanna be able to find my devices without my app crashing 😭.
Topic:
Community
SubTopic:
Apple Developers
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);
}
Hello,
I installed iOS 26 beta 1 yesterday when it came off but now, when I plug my iPhone, it just do nothing.
I can charge it via the induction charger but I can't via USB-C port.
The other way I can charge it is by turning my iPhone off and plugging it so it starts and then it charges via USB-C Port even when it starts. The thing is that when I unplug the cable and try to plug it back in, it doesn't charge anymore...
I tried to put the restore mode (with the Mac and the cable on the screen) and even the DFU Mode but the iPhone is not detected by my Macbook and it's the same thing for my Windows PC : not detected...
I also tried to erase the settings and content but same issue... Not charging
Apple Store can do nothing because it's a dev beta...
Am I the only one to have that issue ?
Topic:
Community
SubTopic:
Apple Developers
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
Apple announces a Japanese game (Assassin's Creed) in Japanese in Japan but then states "the App is currently not available in your country or region"... that is, Japan!
https://developer.apple.com/jp/news/?id=q2zte70j
Game is unavailable so why announce it?
Hi,
I’m experiencing a serious keyboard lag issue on my iPhone 15 Pro Max running iOS 18.4.
When playing games in Roblox, if I try to type in the in-game chat using the default iOS keyboard, the typing becomes extremely laggy and drops a lot of frames.
However, if I turn on Low Power Mode, the issue disappears completely, and typing becomes smooth again.
This suggests that the problem may be related to background optimization or system performance handling in iOS 18.4.
Open Roblox and start any game with chat input and Try typing in the chat box using the iOS keyboard than Observe serious lag and frame drops and Enable Low Power Mode.The lag disappears instantly.
• iPhone 15 Pro Max
• iOS version: 18.4
• Keyboard: Default iOS keyboard
• Issue only occurs when Low Power Mode is OFF
Please investigate this behavior. It’s very disruptive during gameplay and seems linked to performance scaling or system optimization.
Thanks!
My English is not very good and these are the ones I edited using Google Translate.
Topic:
Community
SubTopic:
Apple Developers
I want to update my iPhone 15 Pro to iOS 26 from iOS 18.5. I downloaded ipsw firmware. But iTunes and Apple Devices App requires update version of app for update to iOS 26.
But I use last version of iTunes / Apple Devices, which was realised 2 May, 2025.
That mean Apple need to update their apps for adaptation it to iOS 26 update?
Topic:
Community
SubTopic:
Apple Developers
Newbie in Xcode and in coding in general. Getting this massive error code and can’t seem to fix it. Please help
Topic:
Community
SubTopic:
Apple Developers
Hello Devs,
I wanted to bring this up to display the frustration that I have obtaining the CarPlay entitlements. First and foremost they don't give you a set timeline and there is no contact number to speak to someone about this. When you call developer support they go on and say it is a different department. There is an email but all I have received is an automated response back to me.
Has anyone received the navigation entitlements and if so what was the timeline of you receiving it?
Hello,
I created a particular ray tracing based photo/video capture app for iPhone (which causes me several headaches in finding the optimal configuration) that which often offers very soft and visually beautiful shots but is trapped in the usual oblivion of apps from unknown developers.
While it is true that on the one hand the fact that almost no one downloads your app even if it is free can save you from several gaffes in the early days, in the long run it becomes depressing. So I thought of creating something that could be an incentive to try the app. Not having money to invest in prizes for contests or much more pragmatically in advertising, I thought of adding a function where you can see the best photos taken in your area and vote for them and, if you want, add a photo taken in the competition.
Do you think it could be a nice idea?
It's true that the problem itself is to overcome the wall of 0 downloads, where your app is neither successful nor unsuccessful because in fact nobody tries it, but without money for advertising I don't have many other ideas...
Thanks
Screen time api problem selector also can not pull personalized computer names what does not do man does this condition only required me to pull their names the error is the value of 'ApplicationToken' (aka 'Token') type says h
token and wants to pull their ads
Topic:
Community
SubTopic:
Apple Developers
Hello Apple Developer Community,
I'd like to propose a system-wide enhancement for future versions of iOS: the integration of native utility apps — Calculator, Compass, Voice Memos, Magnifier, Measure, Weather, and Translate — into a single unified app, tentatively called Apple Assist.
The vision is to provide:
A modular interface where users can enable/disable tools as needed.
Smarter workflows with proactive suggestions based on context (time, location, task).
AI-powered interaction through voice and Apple Intelligence (Advanced Siri).
Benefits:
Reduces icon clutter on the Home Screen.
Simplifies the user experience with a single access point.
Creates opportunities for automation and accessibility.
Imagine saying:
“Hey Siri, record a quick note and measure the table” — and the app smartly loads those modules on demand.
Would love to hear feedback from the community — and whether Apple might consider something in this direction for iOS 19 or beyond.
Best regards,
Jose Luiz Horta Barbosa Maurity Cruz
Topic:
Community
SubTopic:
Apple Developers
If I have, say a doctor appointment in the Calendar app, and I'm leaving to go to it, the address will appear in Apple Maps on CarPlay. Forgive if I'm getting the details wrong, but I believe if I bring up the Map, it will be available to tap on, so I can quickly go there. I think it may also show up on one on the car-play screens that shows a few different panels.
Topic:
Community
SubTopic:
Apple Developers
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.
I'm running IOS 18.5 on my iPhone 16 Pro Max. If I delete an email on my iPhone, it is still in the inbox on my iMac. If I delete an email on my iMac it is deleted from the inbox on my iPhone. Is this because of the Beta software on my phone?
Topic:
Community
SubTopic:
Apple Developers
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
Topic:
Community
SubTopic:
Apple Developers
Since macOS 15.4 Beta 2, my App Store has been unable to install or download any new applications; it can only download applications I have previously purchased.
It appears as follows: when I click 'Get,' the system spins to load and then returns to the initial state.
Upon checking system error reports, it seems there's an issue with AMSUIPaymentViewService_macOS [2113]. This problem persists despite changing credit cards or even removing all credit cards.
macOS 15.4 Beta 3 has not fixed this error.
I want to implement a feature where a custom notification sound file is downloaded from the server when the app is first launched and stored locally on the device. When a push notification arrives, the stored sound should be played in all app states, including foreground, background, and terminated (killed) state.
Does anyone have an idea on how to implement this in iOS? Specifically, I am looking for guidance on:
1)Downloading and storing the sound file securely on the device.
2)Using the locally stored file for push notification sounds.
3)Ensuring the sound plays correctly in all states, including when the app is not running.
Topic:
Community
SubTopic:
Apple Developers
Tags:
APNS
User Notifications
Sound and Haptics
Notification Center