Search results for

file uri scheme

79,824 results found

Post

Replies

Boosts

Views

Activity

Add 'PDF Services' symlink in ~/Library directory in SwiftUI macOS Catalyst application
I am trying to port my sandboxed macOS app completely over to iOS using a Catalyst target. In my macOS app, I use 'SwiftySandboxFileAccess' package to add a symlink to '~/Library/PDF Services' so that the 'share to my app' menuItem shows up in the macOS Print Panel (in the PDF menu). It is critical for the function of my app to have this work on macOS. In the Catalyst target, I am having problems gaining access to '~/Library'. I have tried having the user select the folder, but the picker always returns 'canceled'. I have a test app that illustrates this. The test app tries to coax the user into selecting the library folder and then it is supposed to bookmark the location, but I am unable to get this far. 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. Download Test App from iCloud (If y
2
0
78
3d
Reply to Local Network permission on macOS 15 macOS 26: multicast behaves inconsistently and regularly drops
Thank you for your detailed answer. I reproduced your steps and see different outcomes. Let me answer your first two questions and then describe how I reproduced your steps and where I see differences. Answers The first divergence I see is at this step. I don’t have your accessory on my network so no local traffic is generated, so there’s no local network alert Indeed that checkbox makes the app itself send similar data than our hardware, using multicast. I don’t understand how that’s possible if this is a “clean install” of macOS. Where could it possible get a different usage string? I should have been clearer. It shows the string This will allow the app to discover, connect to and collect data from devices on your network. which we did not set ourselves. I could not figure out if it comes from an other app, or if it's the default usage description. Reproduction steps Here's a Dropbox link to our app (zipped): https://www.dropbox.com/scl/fi/btnpz64u8rz7y7t0dicbu/FM-Mac-App-Test-5.1.zip?rlkey=8g43pvph7qrld12h
3d
Reply to CSIdentityQueryExecute - possible results access after release?
I've looked through several crashes and the only pattern I've noticed is something like this: Thread 30:: thread manager 0 libsystem_kernel.dylib 0x19534dbb0 semaphore_wait_trap + 8 1 libdispatch.dylib 0x1951d9960 _dispatch_sema4_wait + 28 2 libdispatch.dylib 0x1951d9f10 _dispatch_semaphore_wait_slow + 132 3 DirectoryService 0x1aabdb340 _continue_query + 88 4 DirectoryService 0x1aabdae50 dsGetRecordList + 484 5 OSServices 0x1a30f7de4 findRecordsWithNames + 136 6 OSServices 0x1a30e34a0 DSIdentityQuery::performQuery(__CFError**) + 456 7 OSServices 0x1a30e35c8 DSIdentityQuery::execute(unsigned long, __CFError**) + 68 8 OSServices 0x1a30d76f8 CSIdentityQueryExecute + 48 9 libxxx.dylib 0x1032e9450 my::helper::EnumerateUsers(std::__1::function const&, unsigned int) + 1800 ... Thread 42 Crashed:: Dispatch queue: com.apple.opendirectory.odxpc.xpc 0 libsystem_kernel.dylib 0x195356388 __pthread_kill + 8 1 libsystem_pthread.dylib 0x19538f88c pthread_kill + 296 2 libsystem_c.dylib 0x195298a3c abort + 124 3 libclang_r
3d
macOS 14.8 Keychain Import Fails for PKCS#12 Files Generated with OpenSSL 3.4.0
We recently upgraded OpenSSL from version 1.1.1 to 3.4.0. After this upgrade, we observed that PKCS#12 files generated using OpenSSL 3.4.0 fail to import into the macOS Keychain with the following error: Failed to import PKCS#12 data: -25264 (MAC verification failed during PKCS12 import (wrong password?)) This issue is reproducible on macOS 14.8.2. The same PKCS#12 files import successfully on other macOS versions, including 15.x and 26.x. Additionally, PKCS#12 files that fail to import on macOS 14.8 work correctly when copied and imported on other macOS versions without any errors. PKCS#12 Creation The PKCS#12 data is created using the following OpenSSL API: const char* platformPKCS12SecureKey = _platformSecureKey.has_value() ? _platformSecureKey.value().c_str() : NULL; PKCS12* p12 = PKCS12_create( platformPKCS12SecureKey, NULL, keys, _cert, NULL, 0, 0, 0, 0, 0 ); if (!p12) { throw std::runtime_error(Failed to create PKCS#12 container); } PKCS#12 Import The generated PKCS#12 data i
0
0
157
3d
iOS 26: Unable to Transition from CallKit Screen to App when remoteHandle is nil or empty string
Hello, I am developing an internal phone application using CallKit. I am experiencing an issue with the behavior of remoteHandle settings in iOS 26 and would appreciate any insights you can provide towards a solution. 1. Problem Description When an iPhone running iOS 26 is in a sleep state and receives a VoIP incoming call where remoteHandle is set to nil or an empty string (@), we are unable to transition to our application (the UIExtension provided by the provider) from the CallKit UI's More (…) button after answering the call. 2. Conditions and Symptoms OS Version: iOS 26 Initial State: iPhone is in a sleep state Call Type: An unsolicited(unknown number) VoIP incoming call where the CXCallUpdate's remoteHandle is set to either nil or [[CXHandle alloc] initWithType:CXHandleTypePhoneNumber value:@] Symptoms: After answering the VoIP call by sliding the button, selecting the More (…) button displayed on the CallKit screen does not launch our application's UIExtension (custom UI), and the iPhone instead stay t
1
0
67
3d
Reply to CSIdentityQueryExecute - possible results access after release?
unique_cfref is just a std::unique_ptr wrapper that calls CFRelease when we go out of scope. Looks like something in OpenDirectory tries to access released data (weak references and delayed processing?). The problem seems to occur on macOS 15. No, that's not what's going on, though I can see why you might have thought that. The key details here are this note in the middle: 0x000166890010 is located 10946 bytes after 789838-byte region ASAN includes information about nearby allocations because there often is a relationship between allocations that are close to each other. However, the problem here is that 10946 bytes is 10KB, which isn't really all that close. It's possible there is some connection, but it's more likely that this was just the closest block ASAN could relate, not that they were actually tied to each other. Similarly, what the code is actually doing is converting raw bytes it received through XPC into plist data (Array/Dictionary/String/etc.), which your larger app wouldn't really have ever had
4d
How to design a simple app with BLE ?
I need to design an iOS app but have no experience (I only know embedded C). The app should be fairly simple, it just needs to create a binary file based on options (enable/disable) and then send that binary file using BLE. I already have a Python script which runs on Windows/Mac that generates the binary file and sends the binary file over BLE. But now I need to get this working on an iOS app. I can connect to the bluetooth receiver (BT401) using the Lightblue app to send and receive commands via UART pass through. A similar app already exists (VOG-Altimeter) where altitudes are enabled/disabled.... I need to do the same sort of thing and once the settings have been made, generate the binary file and send it via BLE. So the steps are: Create a bluetooth connection (to the BT401) like the LIghtblue app does Create a binary file based on the settings like I currently do with the Python script Send the binary file via BLE connection (to the BT401) l
0
0
100
4d
Reply to Zsh kills Python process with plenty of available VM
I understand now, thanks for your patience. Unfortunately, this means that the only way for this to work is having the Gurobi libraries' code and incorporating mmap there, because that's where the memory-heavy node-files are created and put in memory. I don't know anything about their product, so it might be worth raising the issue with them. Too bad this is not open-source software, and therefore this is impossible. Is there an alternative to mmap to perhaps squeeze some extra space in the disk? No, not really. The limit you’re hitting is actually a system-wide cap enforced by the kernel. You're hitting it because your single process is using an extraordinarily large amount of memory, but you'll see exactly the same failure with more processes using smaller amounts of memory. I was wondering if renicing the process to, say, -20, can have some indirect benefits... No, not really. Theoretically, you could free up some additional memory by reducing total system activity, but you're using so much memory
4d
Reply to Project xcodeproj file can no longer by iCloud Sync
We know how bug reporting is important for good software quality. We use Feedback Assistant each time we encounter an issue. Then, we also know we never get progress reports, but we had a majority of issues solved. It's worth it. Nothing changed in our infrastructure. The only changes were macOS 26.2 and Xcode 26.2. And has we had checked, and Apple Care rechecked, we have no other sync issues, just the .xcodeproj file, and now the new project .xcodeproj file. I have updated the FB to include the zip of the file with the issue to help your Xcode team. Thank you very much for you answers.
4d
Reply to Project xcodeproj file can no longer by iCloud Sync
Thank you for your prompt response and for attempting a new project in Xcode. Your efforts are commendable, and I appreciate you filing the bug. I started to think that could be some sync issues due a firewall or internet settings? Do you know when stopped working and the change was just a new version of Xcode or could be something related to the infrastructure? In any case, the team for Xcode cloud is highly skilled and extremely nice as well and will swiftly identify the underlying issue. However, I kindly request your patience, considering the upcoming time of year and holidays. Your prompt attention to this matter is crucial for a timely resolution. You can see the status of your feedback in Feedback Assistant. There, you can track if the report is still being investigated, has a potential identifiable fix, or has been resolved in another way. The status appears beside the label Resolution. We're unable to share any updates on specific reports on the forums. For more details on when you'll see up
4d
Reply to Project xcodeproj file can no longer by iCloud Sync
Thnak you for you quick reply. The problem occurred in a 3 years old project after updating to macOS 26.2 (25C56) and Xcode Version 26.2 (17C52). I've created a new project : same error! All files synchronize except the .xcodeproj file. There is 19GB free on iCloud Drive, and 59GB free on the Mac. If I open the original .xcodeproj package file, copy all the included files in a folder outside, then they all synchronize on iCloud Drive except project.xcworkspace Here are the attributes of this file com.apple.FinderInfo 32 com.apple.fileprovider.fpfs#P 4 com.apple.lastuseddate#PS 16 com.apple.macl 72 It's also a package, but the time if copied outside all its file are correctly synchronized to iCloud. A feedback had been opened : FB21363976. It includes a zip with the file not syncing. Thank you.
4d
Reply to Project xcodeproj file can no longer by iCloud Sync
Thank you for your post and description. It appears that Apple Care support provided you with a valuable insight that seems to be the underlying issue. Have you attempted to create a new project file using the latest version of Xcode? This simple test can help identify whether your project file contains settings that require correction. Additionally, I recommend verifying that you are logged into the same Apple ID on each device and checking the available iCloud storage to ensure it is not full. Lastly, please ensure that you are utilizing the most recent version of Xcode, and identify the specific build version you are using. While I still believe that creating a new Xcode project and incorporating your existing source files can be beneficial, as it may address underlying corruption issues, I concur with Apple Care Support’s assessment that the issue lies within your existing project. Please let us know the results of your troubleshooting. Albert Pascual
  Worldwide Developer Rela
4d