Search results for

file uri scheme

79,824 results found

Post

Replies

Boosts

Views

Activity

MusicSequenceSetUserCallback not called during playback on macOS despite successful registration
Hello, I am developing a macOS app using AudioToolbox's MusicSequence and MusicPlayer APIs to play Standard MIDI Files. The MIDI playback works correctly and I can hear sound from the external MIDI device. However, the user callback registered via MusicSequenceSetUserCallback is never invoked during playback. Details: Callback registration returns no error. MusicPlayer is properly started and prerolled. The callback is defined as a global function with the correct @convention(c) signature. I have tried commenting out MusicTrackSetDestMIDIEndpoint to avoid known callback suppression issues. The clientData pointer is passed and correctly unwrapped in the callback. Minimal reproducible example shows the same behavior. Environment: macOS version: [Tahoe 26.2] Xcode version: [26.2] Is it expected that MusicSequenceSetUserCallback callbacks may not be called in some cases? Are there additional steps or configurations required to ensure the callback is triggered during MIDI playback? Thank you for any advic
0
0
5
31m
Swift Playground Assets missing??
I’m seeing what looks like a change or possible bug in Xcode when creating a new Swift Playground. When I create a Swift Playground using Xcode (File → New → Playground), the project is generated without an Assets folder. I’ve reproduced this multiple times with fresh Playgrounds to rule out user error and the folder is consistently missing. Previously, new Playgrounds included an Assets catalog by default, which makes this behavior surprising.
0
0
5
3h
Reply to WatchOS Companion app on VPP Crashing on Launch
Following up here. This is of course infernally annoying to test and debug: there is no response from Apple on this issue or documentation about VPP vs App Store differences. Furthermore we can only test our attempted changes by submitting a new build to the app store, waiting for approval, and then trying to deploy to our devices with VPP. What we can confirm is: – This is happening with other watch companion apps installed through VPP. HOWEVER a couple of watch companion apps I tested DID work. I would be happy to provide a list for comparison to Apple if it's helpful. – We tried adjusting a bunch of project settings related to optimization, dead code stripping, symbol stripping, etc. following a mix of online and AI-based guidance about potential objective-c metadata issues flagged from the crash logs. Our app is primarily based on Swift 5 but it does target some objective-c pods and frameworks which haven't changed in years. This didn't help. – Our app used the old WatchKit architecture with both an app t
Topic: Code Signing SubTopic: General Tags:
4h
Particles rendered in the wrong order: back last instead of the back first
I've tried out a ParticleEmitter in Reality Composer Pro to produce a burst of particles that don't move (i.e. speed close to zero). When viewing from different angles, it clearly looks like the particles are rendered exactly in the wrong order, that is, front first and back last. In other words, back particles obscure front particles. I would prefer it the correct way around. I've only tried this interactively in Reality Composer Pro, not programmatically, but I assume I would get the same result. My Reality Composer Pro File (zipped): https://gert-rieger-edv.de/Posts/Post-1/RealityParticles.zip Screenshot: Click on the ParticleEmitter object, then on its Play button, then select the Particles tab and click on Burst a few times to get a few random particles. Mac Studio 2025 Apple M4 Max macOS 15.7.2 (24G325) Reality Composer Pro Version 2.0 (494.60.2)
0
0
12
8h
XCode Cloud Signing Error
As mentioned in the linked post, I can archive the project locally but not via Xcode Cloud. I have also created a new project, but the same thing happens here. https://developer.apple.com/forums/thread/746210 Error Code: ITMS-90035: Invalid Signature. Code failed to satisfy specified code requirement(s). The file at path “{AppName}.app/{AppName}” is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose “Clean All” in Xcode, delete the “build” directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/support/code-signing.
0
0
21
10h
Finding method definition
Hi, I have a recurrent problem with an Xcode workspace that I cannot figure out how to solve: When I command-click a symbol (or press ctrl-cmd-J) to find its definition, and when that definition is in a header file belonging to a custom static library, Xcode opens a header located in the derivedData folder rather than in the project's source codes. The exact location of this file is not in the main 'Build' folder but rather in a folder that seems dedicated to indexing: derivedData/myProject/Index.noIndex/Build/Products/Debug/Include/theHeader.h Consequently the file opened by Xcode is uneditable, I have to close it and reopen the source using another method. Even when the correct header is already opened, and I try again, Xcode reopens the wrong file so that it's opened twice with different paths. In the config file of the main application project, I reference the sources of these static libraries like this: HEADER_SEARCH_PATHS = ${SRCROOT}/myLibrary1/Sources ${SRC
0
0
34
11h
SwiftUI navigationTransition(.zoom) glitches during interactive swipe-back
Hi everyone 👋 I’m fairly new to iOS development and I’ve been stuck on a SwiftUI issue for a while now, so I’m hoping someone here can spot what I’m doing wrong. I’m using navigationTransition(.zoom) together with matchedTransitionSource to animate navigation between views. The UI consists of a grid of items (currently a LazyVGrid, though the issue seems unrelated to laziness). Tapping an item zooms it into its detail view, which is structurally the same view type and can contain further items. All good expect that interactive swipe-back sometimes causes the item to disappear from the grid once the parent view is revealed. This only happens when dismissing via the drag gesture; it does not occur when using the back button. I’ve attached a short demo showing the issue and the Swift file containing the relevant view code. Is there something obvious I’m doing wrong with navigationTransition / matchedTransitionSource, or is this a known limitation or bug with interactive swipe-back? Thanks in advance. i
Topic: UI Frameworks SubTopic: SwiftUI
0
0
38
12h
Strange execution results running program in Xcode
Hi; Here is a simple program that reads a file and counts number of 1s bits in it. The file it reads, simple.txt, is a static text file, resides in the file system, and nothing is touching it during the program execution. The file's length is 436 bytes. When the program is run in the terminal it produces consistent results. Each run counts 1329 1s bits. It behaves differently when run in Xcode. A simple command-line tool project having a single file. Running the program multiple times, via Command-R, produces something strange. That is each execution randomly produces one of two results. One is expected 1329 1s bits, another one shows 1333 1s bits. That is it counts four bits more. Again, each run randomly produces one of those two results. And it happens only when I run the program in Xcode. I tried a different sample text file and experienced the same behavior, but the difference in 1s bits count was five bits. Any idea of how this behavior can
0
0
111
1d
Reply to Zsh kills Python process with plenty of available VM
Thank you, I asked, but unfortunately from Gurobi they confirmed their APIs do not support mmap. I am curious about your last suggestion regarding the boot parameter vm_compression_limit. The default is zero, but I cannot find any documentation about the other possible values, nor what is the corresponding behaviour. Is there any official documentation on it? Is there a command that supports modifying this parameter? On my mac it seems encrypted since on the kernels folder (I actually do not know which kernel is in use, there are multiple ones) all the files display a bunch of random symbols, so it is not as easy as to edit as the Linux kernel boot parameters. I assume there is a command to do it.
1d
Reply to Using a local model for Xcode Assist
Answering my own question: I was able to do this by downloading LM Studio and installing a Devstral model from Mistral. Just start the server for that model and then set up a local model in Xcode. It's a local model, and works even with wifi turned off. I found the model didn't work nearly as well at understanding even medium-sized codebases and making changes. It was better suited for writing small snippets of code or maybe analyzing a single file.
1d
fopen returns NULL in IOS 26.2
Our apps, such as iCMTGIS PRO, provides the ability for users to open a job file received as an email attachment. Our apps use application:openurl:option to get the URL for the job file (*.pmp). We use [URL path] to convert it to NSString format. Then we use fopen to read the .pmp job file in read only mode. On iPad Air (5th generation) running iOS Version 18.6.2, our apps are able to read the .pmp job file. However, on iPhone 11 running iOS: 26.2, using fopen to read the .pmp file, we get a NULL value and are not able to correctly read the .pmp file.
0
0
64
1d
Reply to XCode26 - Unable to launch Image in storyboard for landscape picture in Portrait orientation
Sure, I can explain that a bit further. You added a Swift file to your project named LaunchViewController. That code will never run during the app launch process, because after all, your app is busy launching, not already running, so it doesn't yet have the ability to run that code. Thus, launch screens need to be static files — either just the contents of the Launch Storyboard, or just the contents of the Info.plist alternative which I recommend as the best choice these days. The system uses those static files to display your launch screen for you as the system gets your app ready to run your code. There is one other issue with your Xcode project configuration, in that it's not configured to support all orientations in the General tab. That's also set by default for brand new targets, and not one that should be changed. Older apps that don't have all orientations selected need to migrate to supporting all orientations, if your launch screen question here is part of making updates t
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1d
Reply to Altitude for MKAnnotation
are there any other marker types which are capable of showing vertical position / altitude data on the map in 3D mode? There isn't API to do so for annotations, which is what I presume you mean by marker. For overlays, there also isn't API for you to create overlays with data for a third dimension, with one exception — if you ask MapKit for a route between locations using the MKDirections family of API, the route returned to you may display with elevation info, such as placing the route polyline on a bridge. The following screenshot is taken from a sample code project, though I adjusted the position of the map slightly to illustrate my point. At the top of the screen, you can see the route line going across a bridge, and then down through a tunnel, and finally passing underneath a highway overpass. As I said before, if you'd like us to consider more APIs including elevation, please file enhancement requests using Feedback Assistant and let us know how you'd use such APIs! — Ed Ford,  DTS Engineer
2d
Reply to Add 'PDF Services' symlink in ~/Library directory in SwiftUI macOS Catalyst application
As an aside, macOS should probably automatically add an entry to the Print Panel when the app includes PDF as a document type in Xcode; it would save a lot of hassle and avoid having to go outside of the sandbox. However, I cannot wait for that. Hopefully, someone can help. So, I took a look at your sample and found two different problems: (1) As originally configured, your project had User Selected File to Read, which caused UIDocumentPickerViewController to always cancel. Changing that to Read/Write got it working. (2) You're checking for the correct folder by comparing the value the user selected to the value returned by: guard var libraryURL = FileManager.default.urls(for: .libraryDirectory, in: .userDomainMask).first else { The problem is that, in a sandboxed app, that API returns the app container path, NOT the user’s actual directories. So your check ends up comparing this: ~/Library/Containers//Data/Library/ To the user’s true selection: ~/Library/ ...inadvertently failing the correct path. A
2d