Search results for

“swiftui”

17,489 results found

Post

Replies

Boosts

Views

Activity

Runtime crash from SwiftUI.State and variadic types from Xcode 27 Beta 3
I am seeing a weird crash from Xcode 27 Beta 3 when building a variadic type DynamicProperty that also needs SwiftUI.State. This does not crash from Xcode 26. Here is a repro: import SwiftUI struct Repeater: DynamicProperty { @State private var storage = Storage() private var input: (repeat each Input) init(_ input: repeat each Input) { self.input = (repeat each input) } } extension Repeater { final class Storage { } } @main struct CrashDemoApp: App { private var repeater = Repeater(1) var body: some Scene { WindowGroup { EmptyView() } } } Here is the crash: Thread 1 Queue : com.apple.main-thread (serial) #0 0x000000019a93aec0 in swift::TargetMetadata::isCanonicalStaticallySpecializedGenericMetadata () #1 0x000000019a946b38 in performOnMetadataCache () #2 0x000000019a8c85f0 in swift_checkMetadataState () #3 0x00000001004a2c78 in type metadata completion function for Repeater () #4 0x000000019a94cfe4 in swift::GenericCacheEntry::tryInitialize () #5 0x000000019a94c870 in swift::MetadataCacheEntryBase::
Topic: UI Frameworks SubTopic: SwiftUI
7
0
899
Jul ’26
SwiftUI.State macro overreleasing object from Xcode 27 Beta 3?
Here is a simple class that implements a timer: import AsyncAlgorithms final class Timer { private var task: Task? init() { let id = ObjectIdentifier(self) print(id, init) } deinit { let id = ObjectIdentifier(self) print(id, deinit) self.task?.cancel() } func start() { if let _ = self.task { return } let id = ObjectIdentifier(self) self.task = Task.immediate { print(id, start) defer { print(id, stop) } for await _ in AsyncTimerSequence.repeating(every: .seconds(1.0)) { let now = Date.now print( id, now.formatted( date: .omitted, time: .standard ) ) } } } } And here is a simple SwiftUI app to start a timer: import SwiftUI @main struct StateDemoApp: App { @State private var timer = Timer() init() { self.timer.start() } var body: some Scene { WindowGroup { EmptyView() } } } Launching the app from Xcode 26.6 runs correctly: ObjectIdentifier(0x0000000c0c96c020) init ObjectIdentifier(0x0000000c0c96c020) start ObjectIdentifier(0x0000000c0c96c020) 10:40:19 PM ObjectIdentifier(0x0000000c0c96c020) 10:
Topic: UI Frameworks SubTopic: SwiftUI
6
0
291
Jul ’26
Reply to SwiftUI instrument in iOS27 betas "Failed to stop recording session: Data Providers emitted errors: Required"
I also tried on iPadOS 26.5.2 with Xcode 26.6 and hit the same issue (SwiftUI instrument causes all instruments to report nothing on stop). On-device logs show swiftuitraced never launches (launchd reports com.apple.swiftuitracingsupport.xpc doesn't exist), and DTServiceHub crashes in SwiftUITracingSupport at recording stop while draining the session, which is why other instruments' lanes come up empty too. Filed as FB23807146 with traces, crash reports, and a sysdiagnose; see also thread 812557. (That feedback is from a different account; sorry, didn't realize I was logged in on a separate Apple ID.)
Jul ’26
Reply to Xcode builds hang forever at "Planning"/clang feature-detection on macOS 26.5 — root cause is a pipe-buffer leak
Confirming this on macOS 26.5.2 — and I may have found what was actually eating the pipe budget on my machine: a third-party background agent (Logitech's, in my case), not (only) the kernel itself. Full story below, because the diagnostic path might help others here. Environment MacBook Pro (M1 Pro), macOS 26.5.2, Xcode 26.6 (17F113) Symptom identical to OP: xcodebuild (and the IDE) hangs at CreateBuildDescription → ExecuteExternalTool clang. Process samples showed the clang feature-detection probe blocked in write() at 0% CPU, SWBBuildService idle in mach_msg, never draining the probe's stdout. The same clang command finished instantly when run standalone in a terminal. What we ruled out first (several weeks of isolation before finding this thread) Project source: reproduced on a fresh Xcode-generated SwiftUI project and on a completely different repository. Not project-bound. User profile: created a brand-new Standard user (no iCloud, no prior DerivedData, no signing identities). swift test passed
Jul ’26
AVRoutePickerView's presented route list is automatically dismissed when CXProvider reports the call as connected (`reportOutgoingCall(with:connectedAt:)`)
Hi, I want my user to be able to change their audio output device while calling someone, even before the call is established. But I've run into an issue combining CallKit and AVRoutePickerView. On iOS 26 (Xcode 26.5, tested on iPhone 13 Mini): when my AVRoutePickerView's route list is presented while my call is still connecting (not yet established), the presented list is automatically dismissed the moment the app reports the call as connected via CXProvider.reportOutgoingCall(with:connectedAt:). That doesn't seem natural to me — it should stay open, since the user is actively interacting with unrelated system UI at that moment. This happens even when nothing about the AVAudioSession itself changes: no category change, no route change, no didActivate/didDeactivate callback fires around that time. The dismissal is caused by the CallKit connected state transition itself, but I don't know why, or whether it's intentional. Steps to reproduce (sample project below): Tap Start Fake Call. Within 5 seconds, tap the s
1
0
664
Jul ’26
Reply to Sandboxed Mac app denied mach-lookup com.apple.cloudd when signed with Mac Team Store Provisioning Profile on macOS 26
Those are some interesting results you’ve got there! Still, I’m pretty sure linking is part of the story. I just looked at how App Sandbox mediates access to the com.apple.cloudd Mach service and it’s definitely based on the presence of the CloudKit framework. I’m gonna ask you to run two tests. The first is super easy: Disable the Enable Debug Dylib Support build setting for your target. Does that fix the ‘running outside of Xcode’ case? If that doesn’t fix it, add an explicit link to a CloudKit symbol. If you’re using SwiftUI for your app’s main, you can write this: import SwiftUI import CloudKit @main struct MyApp: App { init() { print(CKRecord.self) } … } If you’re using AppKit, just add the same print(…) call to main or your applicationDidFinishLaunching(_:) method (if you’re using @main). You should then see in the imported library list: % otool -L MyApp.app/Contents/MacOS/MyApp MyApp.app/Contents/MacOS/MyApp: … /System/Library/Frameworks/CloudKit.framework/Versions/A/CloudKit … … Does
Topic: App & System Services SubTopic: iCloud Tags:
Jul ’26
Reply to OS debug logs not visible in console when macOS is closed
I’d like to clarify the actual problem here. Lemme explain how I tested this, and you can then highlight where I went wrong. Here’s what I did today: Using Xcode 26.6 on macOS 26.5.2, I created a new project from the macOS > App template. I updated ContentView.swift to log some stuff at the .debug level. I’ve included the full code below. I built the app using Xcode. I launched Console and started a search for the com.example.apple-samplecode.Test838090 subsystem. I launched my app from the Finder. I clicked the Test button twice. In Console I see the two log entries. I then quit the app. I still see the log entries. I launched the app again. I clicked the Test button five times. This causes the app to log and then immediately terminate. In Console I see all five log entries. This all seems pretty reasonable to me, so I’m curious how this is different from your setup. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com import SwiftUI
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’26
Reply to Xcode MTL Validation Crashes App
Happened again. (lldb) bt * thread #1, queue = 'CGImageProviderCallbackQueue', stop reason = signal SIGABRT frame #0: 0x00007ff80d9a0fce libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x00000001091549b3 libsystem_pthread.dylib`pthread_kill + 263 frame #2: 0x00007ff80d922d14 libsystem_c.dylib`abort + 123 frame #3: 0x00007ff80d9220bb libsystem_c.dylib`__assert_rtn + 314 frame #4: 0x00007ff816460864 Metal`MTLReportFailure.cold.1 + 43 frame #5: 0x00007ff81644abc5 Metal`MTLReportFailure + 529 frame #6: 0x00007ff80e1e6ab1 MetalTools`validateComputeFunctionArguments(id, NSString*, NSString, NSArray*, MTLDebugFunctionArgument*, unsigned long, MTLDebugFunctionArgument, unsigned long, MTLDebugFunctionArgument, unsigned long, unsigned long long, MTLDebugFunctionArgument, unsigned long, unsigned long, unsigned long, signed char) + 4525 frame #7: 0x00007ff80e1e51d5 MetalTools`-[MTLDebugComputeCommandEncoder dispatchThreadgroups:threadsPerThreadgroup:] + 609 frame #8: 0x00007ff816ccf7b4 CoreImage`CIMetalRenderToTextu
Jul ’26
SwiftUI instrument in iOS27 betas "Failed to stop recording session: Data Providers emitted errors: Required"
i've been struggling to get the SwiftUI instrument to work during the betas. It never produces any results on simulator, while on device it throws an error which prevents any results from other instruments from appearing. the error is: Failed to stop recording session: Data Providers emitted errors: Required I've tried on my iPad Pro 11-inch (M4) (iPadOS27 beta 3), and iPhone 17 Pro Max (iPadOS27 beta 2). And I get the same result running from my mac studio & MacBook air. Is this a known thing? cheers, Mike
5
0
890
Jul ’26
Reply to Sandboxed Mac app denied mach-lookup com.apple.cloudd when signed with Mac Team Store Provisioning Profile on macOS 26
. 3. Release Config + Debug Executable Un-Checked ❯ otool -L /Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Release/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator/Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Release/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 5026.5.4) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2685.60.104) /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth (compatibility version 1.0.0, current version 195.7.0) /System/Library/Frameworks/CoreFoundation.framework/Ver
Topic: App & System Services SubTopic: iCloud Tags:
Jul ’26
Reply to Sandboxed Mac app denied mach-lookup com.apple.cloudd when signed with Mac Team Store Provisioning Profile on macOS 26
[quote='897632022, Reishandy, /thread/835400?answerId=897632022#897632022, /profile/Reishandy'] Full otool output below. [/quote] . 1. Debug Config + Debug Executable Checked ❯ otool -L /Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Debug/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator/Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Debug/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator: @rpath/YouriBeaconSimulator.debug.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0) . 2. Release Config + Debug Executable Checked ❯ otool -L /Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Release/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator/Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimu
Topic: App & System Services SubTopic: iCloud Tags:
Jul ’26
Reply to Sandboxed Mac app denied mach-lookup com.apple.cloudd when signed with Mac Team Store Provisioning Profile on macOS 26
@DTS Engineer Went through your suggested test and found something worth narrowing down further. Following your steps, running the Release scheme from Xcode with the debugger attached does work, no denial. So I ran a few more controlled variants to isolate exactly what flips it: Debug config, debugger attached → works Release config, debugger attached → works Release config, debugger detached (Debug executable unchecked) → denied, full deny(1) mach-lookup com.apple.cloudd cascade, matches the App Store and External Distribution failures exactly The first two share identical build settings with the third except for one thing: whether Xcode's debugger is attached at launch. That's the actual variable that flips the result in my case, not build configuration and not signing identity. To check your CloudKit linking theory, I ran otool -L on all three: The Debug build's output only shows YouriBeaconSimulator.debug.dylib and libSystem.B.dylib nothing else. This turned out to be a red herring rather than a real comp
Topic: App & System Services SubTopic: iCloud Tags:
Jul ’26
Reply to An odd blur using inline searchbar iOS 26
Thank you for providing the screenshots and post. To assist you further in reproducing the issue, please provide the SwiftUI code you are using, or is UIKit? Along with the Xcode version and iOS version you are using. Is your List sitting behind a search bar? Where else can we see in the SwiftUI View? Posting it will be good to see the controls and what’s behind that. When the keyboard visually finishes rising, so you see it pop or flash into the end state first? What’s the background set at? .background(.ultraThinMaterial)? Or are you using UIKit? Is the blur your own view or the system's search bar background? If you could provide all that information, including a focused and simple sample demonstrating the issue, more developers would be able to investigate and identify the cause. Albert  WWDR
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’26
SwiftUI: safeAreaInset/safeAreaBar modifier used on a NavigationStack should automatically update the content inset (margins) of Views in the NavigationStack
[Submitted as FB23732628] Hello, In my app, I want a content to be always visible at the bottom of the UI such as a button (onboarding) or a mini player (Apple Music or Apple Podcasts). It should be visible even if I navigate to a destination view (using a NavigationLink or updating the NavigationStack path). And I don't use a TabView so I can't use the tabViewBottomAccessory. If I use the safeAreaInset/safeAreaBar modifier on the NavigationStack in SwiftUI, the content insets (margins) is not automatically updated for the Views within the stack. Expected behaviour: if I use the safeAreaInset/safeAreaBar, the Views in the NavigationStack should have their content inset (margins) updated like if the safeAreaInset/safeAreaBar is applied on the NavigationStack content directly. Steps to reproduce: check the attached project, scroll at the bottom of the first List, notice the content is hidden below the button. Navigate to the detail view, scroll at the bottom and notice the content is hidden below the b
0
0
172
Jul ’26
Reply to Indentation in SwiftUI?
SwiftUI Text ignores paragraph-style indentation — attributes like headIndent and firstLineHeadIndent are silently dropped, so what you see is kind of expected. To achieve the text layout you described, I'd consider laying out the text with Core Text, and then rendering the lines with SwiftUI. The following code example shows how to do that. You can give it a try and share if it works for you: import SwiftUI import CoreText private let kFontSize: CGFloat = 16 private func poem() -> NSAttributedString { let p1 = NSMutableParagraphStyle(); p1.firstLineHeadIndent = 0; p1.headIndent = 36 let p2 = NSMutableParagraphStyle(); p2.firstLineHeadIndent = 18; p2.headIndent = 36 let font = UIFont.systemFont(ofSize: kFontSize) func a(_ p: NSParagraphStyle) -> [NSAttributedString.Key: Any] { [.paragraphStyle: p, .font: font] } let ns = NSMutableAttributedString() ns.append(NSAttributedString(string: He had forty-two boxes, all carefully packed,n, attributes: a(p1))) ns.append(NSAttributedStr
Topic: UI Frameworks SubTopic: SwiftUI
Jul ’26
Runtime crash from SwiftUI.State and variadic types from Xcode 27 Beta 3
I am seeing a weird crash from Xcode 27 Beta 3 when building a variadic type DynamicProperty that also needs SwiftUI.State. This does not crash from Xcode 26. Here is a repro: import SwiftUI struct Repeater: DynamicProperty { @State private var storage = Storage() private var input: (repeat each Input) init(_ input: repeat each Input) { self.input = (repeat each input) } } extension Repeater { final class Storage { } } @main struct CrashDemoApp: App { private var repeater = Repeater(1) var body: some Scene { WindowGroup { EmptyView() } } } Here is the crash: Thread 1 Queue : com.apple.main-thread (serial) #0 0x000000019a93aec0 in swift::TargetMetadata::isCanonicalStaticallySpecializedGenericMetadata () #1 0x000000019a946b38 in performOnMetadataCache () #2 0x000000019a8c85f0 in swift_checkMetadataState () #3 0x00000001004a2c78 in type metadata completion function for Repeater () #4 0x000000019a94cfe4 in swift::GenericCacheEntry::tryInitialize () #5 0x000000019a94c870 in swift::MetadataCacheEntryBase::
Topic: UI Frameworks SubTopic: SwiftUI
Replies
7
Boosts
0
Views
899
Activity
Jul ’26
SwiftUI.State macro overreleasing object from Xcode 27 Beta 3?
Here is a simple class that implements a timer: import AsyncAlgorithms final class Timer { private var task: Task? init() { let id = ObjectIdentifier(self) print(id, init) } deinit { let id = ObjectIdentifier(self) print(id, deinit) self.task?.cancel() } func start() { if let _ = self.task { return } let id = ObjectIdentifier(self) self.task = Task.immediate { print(id, start) defer { print(id, stop) } for await _ in AsyncTimerSequence.repeating(every: .seconds(1.0)) { let now = Date.now print( id, now.formatted( date: .omitted, time: .standard ) ) } } } } And here is a simple SwiftUI app to start a timer: import SwiftUI @main struct StateDemoApp: App { @State private var timer = Timer() init() { self.timer.start() } var body: some Scene { WindowGroup { EmptyView() } } } Launching the app from Xcode 26.6 runs correctly: ObjectIdentifier(0x0000000c0c96c020) init ObjectIdentifier(0x0000000c0c96c020) start ObjectIdentifier(0x0000000c0c96c020) 10:40:19 PM ObjectIdentifier(0x0000000c0c96c020) 10:
Topic: UI Frameworks SubTopic: SwiftUI
Replies
6
Boosts
0
Views
291
Activity
Jul ’26
Reply to SwiftUI instrument in iOS27 betas "Failed to stop recording session: Data Providers emitted errors: Required"
I also tried on iPadOS 26.5.2 with Xcode 26.6 and hit the same issue (SwiftUI instrument causes all instruments to report nothing on stop). On-device logs show swiftuitraced never launches (launchd reports com.apple.swiftuitracingsupport.xpc doesn't exist), and DTServiceHub crashes in SwiftUITracingSupport at recording stop while draining the session, which is why other instruments' lanes come up empty too. Filed as FB23807146 with traces, crash reports, and a sysdiagnose; see also thread 812557. (That feedback is from a different account; sorry, didn't realize I was logged in on a separate Apple ID.)
Replies
Boosts
Views
Activity
Jul ’26
Reply to Xcode builds hang forever at "Planning"/clang feature-detection on macOS 26.5 — root cause is a pipe-buffer leak
Confirming this on macOS 26.5.2 — and I may have found what was actually eating the pipe budget on my machine: a third-party background agent (Logitech's, in my case), not (only) the kernel itself. Full story below, because the diagnostic path might help others here. Environment MacBook Pro (M1 Pro), macOS 26.5.2, Xcode 26.6 (17F113) Symptom identical to OP: xcodebuild (and the IDE) hangs at CreateBuildDescription → ExecuteExternalTool clang. Process samples showed the clang feature-detection probe blocked in write() at 0% CPU, SWBBuildService idle in mach_msg, never draining the probe's stdout. The same clang command finished instantly when run standalone in a terminal. What we ruled out first (several weeks of isolation before finding this thread) Project source: reproduced on a fresh Xcode-generated SwiftUI project and on a completely different repository. Not project-bound. User profile: created a brand-new Standard user (no iCloud, no prior DerivedData, no signing identities). swift test passed
Replies
Boosts
Views
Activity
Jul ’26
AVRoutePickerView's presented route list is automatically dismissed when CXProvider reports the call as connected (`reportOutgoingCall(with:connectedAt:)`)
Hi, I want my user to be able to change their audio output device while calling someone, even before the call is established. But I've run into an issue combining CallKit and AVRoutePickerView. On iOS 26 (Xcode 26.5, tested on iPhone 13 Mini): when my AVRoutePickerView's route list is presented while my call is still connecting (not yet established), the presented list is automatically dismissed the moment the app reports the call as connected via CXProvider.reportOutgoingCall(with:connectedAt:). That doesn't seem natural to me — it should stay open, since the user is actively interacting with unrelated system UI at that moment. This happens even when nothing about the AVAudioSession itself changes: no category change, no route change, no didActivate/didDeactivate callback fires around that time. The dismissal is caused by the CallKit connected state transition itself, but I don't know why, or whether it's intentional. Steps to reproduce (sample project below): Tap Start Fake Call. Within 5 seconds, tap the s
Replies
1
Boosts
0
Views
664
Activity
Jul ’26
Reply to Sandboxed Mac app denied mach-lookup com.apple.cloudd when signed with Mac Team Store Provisioning Profile on macOS 26
Those are some interesting results you’ve got there! Still, I’m pretty sure linking is part of the story. I just looked at how App Sandbox mediates access to the com.apple.cloudd Mach service and it’s definitely based on the presence of the CloudKit framework. I’m gonna ask you to run two tests. The first is super easy: Disable the Enable Debug Dylib Support build setting for your target. Does that fix the ‘running outside of Xcode’ case? If that doesn’t fix it, add an explicit link to a CloudKit symbol. If you’re using SwiftUI for your app’s main, you can write this: import SwiftUI import CloudKit @main struct MyApp: App { init() { print(CKRecord.self) } … } If you’re using AppKit, just add the same print(…) call to main or your applicationDidFinishLaunching(_:) method (if you’re using @main). You should then see in the imported library list: % otool -L MyApp.app/Contents/MacOS/MyApp MyApp.app/Contents/MacOS/MyApp: … /System/Library/Frameworks/CloudKit.framework/Versions/A/CloudKit … … Does
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to OS debug logs not visible in console when macOS is closed
I’d like to clarify the actual problem here. Lemme explain how I tested this, and you can then highlight where I went wrong. Here’s what I did today: Using Xcode 26.6 on macOS 26.5.2, I created a new project from the macOS > App template. I updated ContentView.swift to log some stuff at the .debug level. I’ve included the full code below. I built the app using Xcode. I launched Console and started a search for the com.example.apple-samplecode.Test838090 subsystem. I launched my app from the Finder. I clicked the Test button twice. In Console I see the two log entries. I then quit the app. I still see the log entries. I launched the app again. I clicked the Test button five times. This causes the app to log and then immediately terminate. In Console I see all five log entries. This all seems pretty reasonable to me, so I’m curious how this is different from your setup. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com import SwiftUI
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to Xcode MTL Validation Crashes App
Happened again. (lldb) bt * thread #1, queue = 'CGImageProviderCallbackQueue', stop reason = signal SIGABRT frame #0: 0x00007ff80d9a0fce libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x00000001091549b3 libsystem_pthread.dylib`pthread_kill + 263 frame #2: 0x00007ff80d922d14 libsystem_c.dylib`abort + 123 frame #3: 0x00007ff80d9220bb libsystem_c.dylib`__assert_rtn + 314 frame #4: 0x00007ff816460864 Metal`MTLReportFailure.cold.1 + 43 frame #5: 0x00007ff81644abc5 Metal`MTLReportFailure + 529 frame #6: 0x00007ff80e1e6ab1 MetalTools`validateComputeFunctionArguments(id, NSString*, NSString, NSArray*, MTLDebugFunctionArgument*, unsigned long, MTLDebugFunctionArgument, unsigned long, MTLDebugFunctionArgument, unsigned long, unsigned long long, MTLDebugFunctionArgument, unsigned long, unsigned long, unsigned long, signed char) + 4525 frame #7: 0x00007ff80e1e51d5 MetalTools`-[MTLDebugComputeCommandEncoder dispatchThreadgroups:threadsPerThreadgroup:] + 609 frame #8: 0x00007ff816ccf7b4 CoreImage`CIMetalRenderToTextu
Replies
Boosts
Views
Activity
Jul ’26
SwiftUI instrument in iOS27 betas "Failed to stop recording session: Data Providers emitted errors: Required"
i've been struggling to get the SwiftUI instrument to work during the betas. It never produces any results on simulator, while on device it throws an error which prevents any results from other instruments from appearing. the error is: Failed to stop recording session: Data Providers emitted errors: Required I've tried on my iPad Pro 11-inch (M4) (iPadOS27 beta 3), and iPhone 17 Pro Max (iPadOS27 beta 2). And I get the same result running from my mac studio & MacBook air. Is this a known thing? cheers, Mike
Replies
5
Boosts
0
Views
890
Activity
Jul ’26
Reply to Sandboxed Mac app denied mach-lookup com.apple.cloudd when signed with Mac Team Store Provisioning Profile on macOS 26
. 3. Release Config + Debug Executable Un-Checked ❯ otool -L /Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Release/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator/Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Release/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 5026.5.4) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2685.60.104) /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth (compatibility version 1.0.0, current version 195.7.0) /System/Library/Frameworks/CoreFoundation.framework/Ver
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to Sandboxed Mac app denied mach-lookup com.apple.cloudd when signed with Mac Team Store Provisioning Profile on macOS 26
[quote='897632022, Reishandy, /thread/835400?answerId=897632022#897632022, /profile/Reishandy'] Full otool output below. [/quote] . 1. Debug Config + Debug Executable Checked ❯ otool -L /Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Debug/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator/Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Debug/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator: @rpath/YouriBeaconSimulator.debug.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0) . 2. Release Config + Debug Executable Checked ❯ otool -L /Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimulator-cfzqkuyqxpjvnmghijiizycofmjk/Build/Products/Release/YouriBeaconSimulator.app/Contents/MacOS/YouriBeaconSimulator/Users/user/Library/Developer/Xcode/DerivedData/YouriBeaconSimu
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to Sandboxed Mac app denied mach-lookup com.apple.cloudd when signed with Mac Team Store Provisioning Profile on macOS 26
@DTS Engineer Went through your suggested test and found something worth narrowing down further. Following your steps, running the Release scheme from Xcode with the debugger attached does work, no denial. So I ran a few more controlled variants to isolate exactly what flips it: Debug config, debugger attached → works Release config, debugger attached → works Release config, debugger detached (Debug executable unchecked) → denied, full deny(1) mach-lookup com.apple.cloudd cascade, matches the App Store and External Distribution failures exactly The first two share identical build settings with the third except for one thing: whether Xcode's debugger is attached at launch. That's the actual variable that flips the result in my case, not build configuration and not signing identity. To check your CloudKit linking theory, I ran otool -L on all three: The Debug build's output only shows YouriBeaconSimulator.debug.dylib and libSystem.B.dylib nothing else. This turned out to be a red herring rather than a real comp
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to An odd blur using inline searchbar iOS 26
Thank you for providing the screenshots and post. To assist you further in reproducing the issue, please provide the SwiftUI code you are using, or is UIKit? Along with the Xcode version and iOS version you are using. Is your List sitting behind a search bar? Where else can we see in the SwiftUI View? Posting it will be good to see the controls and what’s behind that. When the keyboard visually finishes rising, so you see it pop or flash into the end state first? What’s the background set at? .background(.ultraThinMaterial)? Or are you using UIKit? Is the blur your own view or the system's search bar background? If you could provide all that information, including a focused and simple sample demonstrating the issue, more developers would be able to investigate and identify the cause. Albert  WWDR
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’26
SwiftUI: safeAreaInset/safeAreaBar modifier used on a NavigationStack should automatically update the content inset (margins) of Views in the NavigationStack
[Submitted as FB23732628] Hello, In my app, I want a content to be always visible at the bottom of the UI such as a button (onboarding) or a mini player (Apple Music or Apple Podcasts). It should be visible even if I navigate to a destination view (using a NavigationLink or updating the NavigationStack path). And I don't use a TabView so I can't use the tabViewBottomAccessory. If I use the safeAreaInset/safeAreaBar modifier on the NavigationStack in SwiftUI, the content insets (margins) is not automatically updated for the Views within the stack. Expected behaviour: if I use the safeAreaInset/safeAreaBar, the Views in the NavigationStack should have their content inset (margins) updated like if the safeAreaInset/safeAreaBar is applied on the NavigationStack content directly. Steps to reproduce: check the attached project, scroll at the bottom of the first List, notice the content is hidden below the button. Navigate to the detail view, scroll at the bottom and notice the content is hidden below the b
Replies
0
Boosts
0
Views
172
Activity
Jul ’26
Reply to Indentation in SwiftUI?
SwiftUI Text ignores paragraph-style indentation — attributes like headIndent and firstLineHeadIndent are silently dropped, so what you see is kind of expected. To achieve the text layout you described, I'd consider laying out the text with Core Text, and then rendering the lines with SwiftUI. The following code example shows how to do that. You can give it a try and share if it works for you: import SwiftUI import CoreText private let kFontSize: CGFloat = 16 private func poem() -> NSAttributedString { let p1 = NSMutableParagraphStyle(); p1.firstLineHeadIndent = 0; p1.headIndent = 36 let p2 = NSMutableParagraphStyle(); p2.firstLineHeadIndent = 18; p2.headIndent = 36 let font = UIFont.systemFont(ofSize: kFontSize) func a(_ p: NSParagraphStyle) -> [NSAttributedString.Key: Any] { [.paragraphStyle: p, .font: font] } let ns = NSMutableAttributedString() ns.append(NSAttributedString(string: He had forty-two boxes, all carefully packed,n, attributes: a(p1))) ns.append(NSAttributedStr
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jul ’26