Search results for

file uri scheme

78,589 results found

Post

Replies

Boosts

Views

Activity

Code coverage. SwiftUI Wrong Executable Lines
Hi community: I noticed that each closure is counted as lines in code coverage (unit tests) (Xcode 14.1.0) in a swiftUI File. I mean, If you coded and VStack that involves another HStack, and HStack contains 4 lines, and the VStack contains 6 lines counting the HStack. The total executable lines should be 6 (6 lines in the file). But Xcode count 10, counting twice the HStack lines. Is it a bug, or is it correct? You know, I don't know if Apple has another concept about executable lines. Also, Is it possible to remove previews with any configuration from code coverage or constant files? Thanks for all.
1
0
798
3w
Icon for some menu items cannot be removed on macOS 26
create a sample XCode project using Objective-C and stroybook (xib) using latest XCode beta open MainMenu.xib, and select Main Menu → File → Print... remove the image like below 4. build it 5. run it on macOS 26 beta 7 6. The menu item print.. still have Image Is there any way to remove image for one menu item. I have also tried NSMenuItem.image = nil, but still not work. The issue I met on my own app is that I cannot remove icons for Zoom In, Zoom Out and many other menu items, which makes the menu items not aligned properly.
1
0
162
3w
Does Apple Spatial Audio Format documentation exist
The WWDC25 video and notes titled “Learn About Apple Immersive Video Technologies” introduced the Apple Spatial Audio Format (ASAF) and codec (APAC). However, despite references throughout on using immersive video, there is scant information on ASAF/APAC (including no code examples and no framework references), and I’ve found no documentation in Apple’s APIs/Frameworks about its implementation and use months on. I want to leverage ambisonic audio in my app. I don’t want to write a custom AU if APAC will be opened up to developers. If you read the notes below along with the iPhone 17 advertising (“Video is captured with Spatial Audio for immersive listening”), it sounds like this is very much a live feature in iOS26. Anyone know the state of play? I’m across how the PHASE engine works, which is unrelated to what I’m asking about here. Original quote from video referenced above: “ASAF enables truly externalized audio experiences by ensuring acoustic cues are used to render the audio. It’s composed of new metada
4
0
539
3w
Reply to Custom NSMigrationPolicy methods not invoked when NSMappingModel is created in code
Hi, Following the advice I received here, I switched to using NSStagedMigrationManager instead of trying to drive a custom NSMappingModel entirely in code. I now have a staged migration pipeline with two stages: • Stage 1 (V1 → V2): a lightweight migration. • Stage 2 (V2 → V3): a custom migration where I re-archive a Transformable attribute (object) from a legacy ValueTransformer to a safe binary format (GraphArchiver). Both models are built entirely at runtime (no .xcdatamodeld files). Each model has a unique versionChecksum string (hardcoded identifiers: GraphCK_MigrationV1, GraphCK_MigrationV2, GraphCK_MigrationV3). When I run the staged migration manager with these two stages, I consistently hit this exception: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Duplicate version checksums across stages detected.' Debug logging shows: Stage1 checksums: [GraphCK_MigrationV1, GraphCK_MigrationV2] Stage2 checksums: [GraphCK_MigrationV2, GraphCK_MigrationV3] So the id
3w
Reply to Same same originalTransactionId, productId, but the transactionIds are different.
Hello - Please file a Feedback Assistant ticket at https://feedbackassistant.apple.com/ and include the following: App name and app ID Product ID(s) Transaction ID(s) How you received the separate pieces of info with distinct SignedDate values? App Store Server Notification, App Store Server API response, StoreKit directly in-app, etc.? If App Store Server Notifications, and you have the complete decoded payloads for transactions in questions, please include those in the Feedback ticket as well. For more information about Feedback Assistant, please visit https://developer.apple.com/bug-reporting/. Once you have filed the Feedback Assistant ticket, please reply to this Developer Forums thread with the Feedback Assistant ID (e.g. FB########) and/or link (e.g. https://feedbackassistant.apple.com/feedback/########), and our teams will take a look. Thank you.
3w
Reply to FamilyControls entitlement approved, but Provisioning Profile doesn't include deviceActivity & deviceActivityReporting
If your app includes the Device Activity and Managed Settings extension points, you must also request permission to use the Family Controls entitlement for each extension. Additionally, the com.apple.developer.deviceactivity and com.apple.developer.deviceactivity.reporting keys don't exist as explained in Determining if an entitlement is real. If your entitlements file includes them, remove them from the file, then configure Xcode to request new provisioning profiles for automatic signing. If you use manual signing, regenerate your provisioning profile in Certificates, Identifiers & Profiles, download and install it onto your system, then use the profile to resign your app.
Topic: Code Signing SubTopic: Entitlements Tags:
3w
Reply to [iOS 26] BLE local name in Advertisement getting truncated – Works on older iOS
Are you seeing this issue with the iOS 26 release version? This was an issue in the early iOS 26 betas, but has since been fixed. If you are seeing this in the release version of iOS 26, please file a bug report right away. In your bug report we would need some diagnostics logs as well. So, please go to https://developer.apple.com/bug-reporting/profiles-and-logs/ and follow the instructions for Bluetooth for iOS to install a logging profile on your device. Then reproduce the issue, and follow the instructions at the above link to create a sysdiagnose. And attach that to the Feedback report as well. If you have separate sniffer logs that shows the interaction, also do include those. Once done, please share the Feedback ID here, and @mention me in your response so we can take a look at this right away. Argun Tekant /  WWDR Engineering / Core Technologies
Topic: App & System Services SubTopic: Core OS Tags:
3w
Shared directories as ROOTFS in Linux VM causes file permission issues
I have successfully booted the Linux Kernel with VirtIOFS as the rootfs, but file permission issues render it completely unusable. A file on the macOS host belongs to uid 0, gid 0, but on the Linux guest, this file belongs to uid 1000, gid 10. Why does this happen? How are file permissions directly mapped between the host and the guest? If there is no mapping mechanism in place, why does this discrepancy occur? This leads to errors in Linux, such as: sudo: /etc/sudo.conf is owned by uid 1000, should be 0 sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set bootLoader.commandLine = console=hvc0 rootfstype=virtiofs root=myfs rw let directorySharingDevice = VZVirtioFileSystemDeviceConfiguration(tag: myfs) directorySharingDevice.share = VZSingleDirectoryShare(directory: VZSharedDirectory(url: rootURL!, readOnly: false)) The VMM is running as root.
10
0
188
3w
Automatic menu translation ok with El Capitan, notok with Mojave
Hi everybody, I use a very old photo software called Snapseed v 1.2.1 on 2 MacBook, one runs with El Capitan and the second runs with Mojave. These app has no language selection during install, and no preferences language choice in menu when running. When I execute app on El Capitan, all menus and topics are translate in French, but on Mojave no translation is done. I looked Contents of app and found differents languages files (structured as xx.po where xx=country) located in Resources folder. I deduced translation was executed after getting language param. I checked values on both systems and there are same (LANG=fr_FR.UTF-8). So I tried to change Info.plist file to force code langage to 'fr' in CFBundleLocalizations key. Result is same. Does somebody has a idea of reason of issue and how to solve it ? Snapseed release was 2012, El Capitan 2015 and Mojave 2018, it seems framework used to code app runs differently and can't get language value.
2
0
61
3w
Xcode 26 Crashes on Launching App After macOS + Xcode Update (M3 Mac)
Hi everyone, After updating my Mac and Xcode to 26, I’m running into a consistent crash whenever I try to launch an app from Xcode. Environment: Mac: Apple Silicon M3 macOS: 26.0 (25A354) Xcode: 26.0.1 (17A400) Issue: When I press Run on any project (including new, empty projects), Xcode immediately crashes. This started only after updating to the latest macOS and Xcode. Crash details: The crash log shows: Application Specific Signatures: ___localError Thread 0 crashed inside -[IDEScheme _executionOperationForSchemeOperationParameters:...] from IDEFoundation/IDEKit. I also noticed background threads calling DVTPortal (developer portal requests) right before the crash. What I’ve tried so far: Cleared DerivedData, ModuleCache.noindex, and Xcode caches. Signed out/in of my Apple ID in Xcode. Recreated project schemes. Verified provisioning profiles. Reinstalled Xcode 26. Unfortunately, the crash still happens. Question: Is this a known issue with Xcode 26 on Apple Silicon (M3)? Has anyone seen a workaro
6
0
492
3w
Canvas Preview: Cannot preview in this file
Hi, I want to follow the SwiftUI tutorials from Apple Developer. After creating the “Landmarks” app and clicking on ContentView, the preview shows: Cannot preview in this file Failed to launch net.bayerthomas.Landmarks with the Diagnostics: == PREVIEW UPDATE ERROR: FailedToLaunchAppError: Failed to launch net.bayerthomas.Landmarks ================================== | [Remote] JITError | | ================================== | | | [Remote] CouldNotLoadInputObjectFile: Could not load object file during preview: /Users/thomas/Library/Developer/Xcode/DerivedData/Landmarks-gpfsfizlhntsahandeumxmhwbjfj/Build/Intermediates.noindex/Landmarks.build/Debug-iphonesimulator/Landmarks.build/Objects-normal/arm64/ContentView.1.preview-thunk-launch.o | | | | path: /Users/thomas/Library/Developer/Xcode/DerivedData/Landmarks-gpfsfizlhntsahandeumxmhwbjfj/Build/Intermediates.noindex/Landmarks.build/Debug-iphonesimulator/Landmarks.build/Objects-normal/arm64/ContentView.1.preview-thunk-launch.o | | | | ============
Topic: UI Frameworks SubTopic: SwiftUI
2
0
119
3w
Reply to Canvas Preview: Cannot preview in this file
On my Mac mini M4 Pro, I’ve installed macOS Tahoe 26.0 and Xcode 26.0.1. The error message still appears, even when testing with the iPhone 17 Pro and iPad Pro 11-inch M4 simulators. The FB numer is: FB20362054 == PREVIEW UPDATE ERROR: GroupRecordingError Error encountered during update group #19 ================================== | FailedToLaunchAppError: Failed to launch net.thomasbayer.ChatPrototype | | ================================== | | | [Remote] JITError | | | | ================================== | | | | | [Remote] CouldNotLoadInputObjectFile: Could not load object file during preview: /Users/thomas/Library/Developer/Xcode/DerivedData/ChatPrototype-ebbbmisjgapzykawaadxudtxyjmg/Build/Intermediates.noindex/ChatPrototype.build/Debug-iphonesimulator/ChatPrototype.build/Objects-normal/arm64/ChatPrototypeApp.o | | | | | | path: /Users/thomas/Library/Developer/Xcode/DerivedData/ChatPrototype-ebbbmisjgapzykawaadxudtxyjmg/Build/Intermediates.noindex/ChatPrototype.build/Debug-iphonesimulator/ChatProt
Topic: UI Frameworks SubTopic: SwiftUI
3w
Reply to Blocking USB Devices on macOS – DriverKit or Other Recommended Approach
So, my first suggestion here is that you get I/O Registry Explorer from our Additional Tools for Xcode download so you can actually see what's going on. The same information in text from is in the sysdiagnose (that's how I know what happened), but in my experience, I/O Registry Explorer makes the data much easier to understand. For reference, you'll almost always want to look at the IOService plane (the default), and you change planes using the pop-up button in the top left. Also, over time, registry activity has increased to the point where the app can laggy or have other interface glitches. For general exploration, you can avoid those issues by saving the ioreg file, then opening the file again so you're working with static data. Moving to the specific issue: We have test ES_EVENT_TYPE_AUTH_IOKIT_OPEN on 26, and it does not block anything. We report the same issue in FB19420236. I can see AUTH requests coming from system stats and airportd processes, I can deny them, yet when I plug a keyb
Topic: App & System Services SubTopic: Drivers Tags:
3w