Search results for

“show when run”

115,083 results found

Post

Replies

Boosts

Views

Activity

Can the same widget in an Xcode project support multiple targets?
Hello everyone, my app A now supports iOS Widget C under the same Xcode project. Now I have another app B under this project, and I hope it can also support this Widget C. What should be done? How should the app group be configured? I have found some solutions: for example, add this key under the info.plist corresponding to app B: NSExtension NSExtensionPointIdentifier com.apple.widgetkit-extension NSExtensionPrincipalClass $(PRODUCT_MODULE_NAME).WidgetEntryView However, when I configured it and started running, not only could I not see the support Widget C, but the screen also went black. Thank you all.
1
0
132
5d
RealityView content disappears when selecting Lock In Place on visionOS
I'm experiencing an issue where all RealityView content disappears when the user selects Lock In Place from the window management menu (long press on close button). Follow Me works correctly and this happens in Testflight builds only not reproducible when I run locally I have reproduced this with a minimal project containing nothing but a simple red cube — no custom anchors, no app state, no dependencies. Steps to Reproduce: Open an ImmersiveSpace A red cube is placed 1m in front of the user via RealityView Long press the X button on any floating window Select Lock In Place The cube disappears immediately Expected: Cube remains visible after window is locked Actual: Cube disappears. Note: Follow Me does NOT reproduce this issue. Minimal reproducible code: struct ImmersiveView: View { var body: some View { RealityView { content in let cube = ModelEntity( mesh: .generateBox(size: 0.3), materials: [SimpleMaterial(color: .red, isMetallic: false)] ) cube.setPosition(SIMD3(0, 1.5, -1), relativeTo: nil) con
1
0
1.1k
5d
Reply to RealityView content disappears when selecting Lock In Place on visionOS
Hi @Kunal07 Thanks for the focused repro, that's genuinely helpful. Could selecting Lock In Place be causing the ImmersiveSpace to be dismissed, which is why the RealityView content vanishes? I'm not yet sure why this only reproduces under TestFlight and not when running locally from Xcode. I'd greatly appreciate it if you could open a bug report. Please include a zipped copy of the minimal Xcode project that reproduces the issue and a reference to this forum post, and post the FB number back here once you do. Bug Reporting: How and Why? has tips on creating your bug report.
Topic: Spatial Computing SubTopic: General Tags:
5d
Bundle preferred languages mechanism
Hi there, I’m curious to understand how the system determines which language to use for an app. The system is currently set to en-IN (English - India). My app supports the following languages: en (the default development language) en-GB (United Kingdom) en-IE (Ireland) en-US (United States) When I run the app, the Bundle.main.preferredLanguages returns [„en-GB“, „en“], which causes the app to be set to en-GB. However, when the app doesn’t support the preferred system language, I would expect it to default to the en language. Surprisingly, this is not the case. This behavior is precisely described in Technical Note TN2418. Unfortunately, there’s no explanation provided. Is this behavior related to the CLDR Linguistic Distance? I also attempted to replace the default development language en with en-001 (English - world), but it had no effect.
3
0
113
5d
HKAnchoredObjectQuery ignores "no correlation" predicate in updateHandler
Hello, I'm seeing an inconsistency in how HKAnchoredObjectQuery applies predicates between its initial results handler and its update handler. Specifically, predicates that filter quantity samples by correlation membership - using either HKQuery.predicateForObjectsWithNoCorrelation() or NSPredicate(format: %K == nil, HKPredicateKeyPathCorrelation) - are respected in the resultsHandler but silently ignored in the updateHandler. Setup I have three long-running HKAnchoredObjectQuery instances: One for HKCorrelationType(.bloodPressure) - no predicate One for HKQuantityType(.bloodPressureSystolic) - predicate: HKQuery.predicateForObjectsWithNoCorrelation() One for HKQuantityType(.bloodPressureDiastolic) - predicate: HKQuery.predicateForObjectsWithNoCorrelation() The intent of the predicate on the systolic/diastolic queries is to capture only standalone quantity samples written directly by third-party apps - not the constituent sub-samples of an HKCorrelation. The correlation query handles correlated sampl
1
0
80
5d
Reply to Bundle preferred languages mechanism
When a trying into my device and I set to for example something I don’t have en-IE, the system's internal fallback resolution path looks like this: en-IEDoes the app have Ireland English? No. en-GB (Does the app have British English? Yes.) I have that one set. Because your app includes en-GB, the system stops at step 2. It determines that en-GB will provide a much better localized experience. This is exactly right. The system for choosing which language to show in the UI is somewhat complex, taking into account the user's preferred languages, the languages supported by the app itself, and language fallbacks. The language fallbacks also evolve as support for new languages is added to the operating system (and very occasionally over time, if feedback is given that specific fallback languages don't feel right).
Topic: App & System Services SubTopic: General Tags:
5d
Reply to Clarification on HealthKit Observer Delivery Frequency and BGTaskScheduler Behavior
How background tasks and HealthKit work on watchOS was somehow discussed here and here. You can check if they help. iOS has a similar background execution time budget, but isn't as strict as watchOS. In a normal situation (meaning that your app has background execution time budget, the device's battery level is high, and no many apps are competing the background execution time), I'd expect that the system wakes your app and runs the updateHandler of your observer query (HKObserverQuery) whenever a process saves or deletes samples of the specified type. The update frequency (HKUpdateFrequency) for sample types is another factor to consider. For example, stepCount samples have an hourly maximum frequency in iOS, and so the updateHandler will be triggered at most once per hour, even you use enableBackgroundDelivery + .immediate. This is documented in the Discussion section here. Now to your questions: Are HKObserverQuery delivery frequencies (.immediate, .hourly, .daily) strictly best-effort hints rathe
5d
Will the upcomming Mac Book Pro M6 Max has at least 256GB RAM
Hi Guys, I want to use the newest Mac Book Pro M6 (Max or Ultra) with at least 256GB RAM for AI development. Will my wish may come true? What do you think? One of Apples most advantage here is unified memory and with the privacy first approach, i want to run local modells and show it to my customer just on the macbook. That has much more magic then first plug the power supply for a sparc, connect a network cable and fiddling around. The perfect match would be a Max Book Pro, M6 Ultra, 512GB. But I guess this is just a dream :-(. Please let me know what you think abou that. Thanks
1
0
583
5d
visionOS: AVFoundation cannot deliver simultaneous video from two external (UVC) cameras; no public USB fallback exists
Area: visionOS 26.4 · AVFoundation · AVCapture · External/UVC video Classification: Suggestion / API Enhancement Request (also: Incorrect/Missing Documentation) Device / OS: Apple Vision Pro, visionOS 26.x. Xcode 26.4.1, XROS26.4.sdk. Summary On visionOS, a third-party app cannot display two UVC USB cameras (connected through a powered USB-C hub) at the same time. Every AVFoundation path that would enable this on iPadOS is either unavailable or fails at runtime on visionOS, and there is no public non-AVFoundation fallback (no IOUSBHost, no DriverKit, no usable CoreMediaIO, no MFi path for generic UVC devices). This is a real capability gap relative to iPadOS and macOS, and Camo Studio on iPadOS (App Store ID 6450313385) demonstrates the two-camera USB-hub use case is legitimate and valuable for spatial-video/hybrid-capture workflows on Vision Pro. Steps to reproduce Connect a powered USB-C hub to Apple Vision Pro with two UVC webcams attached. Build a visionOS app that uses AVCaptureDevice.DiscoverySession(de
1
0
966
5d
unable to create tasks to copy stub binary
Pulling my hair out here. After upgrading to Xcode Version 26.4.1 (17E202) I've started getting unable to create tasks to copy stub binary: can't determine architectures of binary: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub: Cannot open file handle for file at path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub: The file “MessagesApplicationStub” doesn’t exist. No matter what I do when trying to run the build (worked in previous versions). I've tried fresh install from App Store, direct package download, removing the SDKs, even previous versions and no matter what I get
1
0
146
5d
macOS Preview appears to hold MTP devices open indefinitely
I am developing a USB MTP device for use with macOS. When the device is connected while Preview is running, I observe the host send OpenSession, then GetDeviceInfo, and then no further MTP commands. I do not see a later CloseSession. Problem is that once this happens, exclusive access to the USB interface is retained, so another application cannot connect to the device. From the device side, there is no obvious way to recover except forcing a USB disconnect/reset or shutting down the USB interface. My questions are: Is this expected behavior for Preview, or for a Preview-related macOS helper? Is it expected on macOS that a client may open an MTP session and then leave it idle without sending CloseSession? I am mainly trying to understand whether this is expected macOS behavior, or whether this should be considered a bug.
3
0
54
5d
Membership renewal not reflected
Our Apple Developer Program membership renewal is facing an issue from Apple’s side. The membership section shows that the annual fee is marked as waived, but the developer portal still shows that our membership has expired. Even after multiple follow-ups with Apple support, the issue has not been resolved. Additionally, our apps have become unavailable on the App Store due to this issue. These applications are used for public service delivery / judicial stakeholders, and the outage is affecting users. This is a critical issue for us, and we would appreciate guidance or escalation support from Apple staff/community moderators.
1
0
60
5d
Reply to Reclaiming cached data from an `enumerateDirectory` call
Part 1... Disclaimer: Some of the information here may already be obvious or well understood to you. If it is, then thank you for your patience as I use this as an excuse to push out background information that other developers may find useful. Oh, I think I was a little unclear in what I wrote. What I was trying to say in a call to enumerateDirectory of this nature was that if I call enumerateDirectory with a non-minimal attribute set (i.e. include attributes that need more I/O to fetch), then I see that behavior. But you're right in that iterating over a directory with minimal attributes doesn't generally have additional lookupItem calls in my tests. Again, you have to be careful of the API you're using. The classic Unix directory iteration pattern[1] is to read the directory (readdir-> enumerateDirectory) and then retrieve metadata (stat-> lookupItemNamed). There are two problems with that: At a basic level, it generates a lot of syscalls, each of which nibble away at performance. From the file syste
Topic: App & System Services SubTopic: Core OS Tags:
5d
Xcode Command Line Tools update not wanted, but persists
I am running Tahoe 26.4.1 on a MacBook Air, M4, 2025. In System Settings, I have an item heading of Software Update Available. Clicking on that brings up Command Line Tools for Xcode 26.4. The only available choices are to Update Now or Cancel. In the past, I was developing a game, but have quit working on that, and deleted Xcode and Command Line Tools. Wanting the Command Line Tools ... line to disappear from System Settings, I called Apple Support, and at their request have followed the steps in https://developer.apple.com/documentation/xcode/installing-the-command-line-tools to delete this entry in System Settings, namely the 2 sudo's in that article under the section Uninstall the command line tools. This did not cause the Command Line Tools for Xcode 26.4 line in System Settings to disappear (as I was told by Apple support that it would, because I would be deleting the receipt). In Terminal, I did indeed receive a response of No receipt for 'com.apple.dt.commandlinetools' found at '/'.. I have c
12
0
168
5d
Can the same widget in an Xcode project support multiple targets?
Hello everyone, my app A now supports iOS Widget C under the same Xcode project. Now I have another app B under this project, and I hope it can also support this Widget C. What should be done? How should the app group be configured? I have found some solutions: for example, add this key under the info.plist corresponding to app B: NSExtension NSExtensionPointIdentifier com.apple.widgetkit-extension NSExtensionPrincipalClass $(PRODUCT_MODULE_NAME).WidgetEntryView However, when I configured it and started running, not only could I not see the support Widget C, but the screen also went black. Thank you all.
Replies
1
Boosts
0
Views
132
Activity
5d
RealityView content disappears when selecting Lock In Place on visionOS
I'm experiencing an issue where all RealityView content disappears when the user selects Lock In Place from the window management menu (long press on close button). Follow Me works correctly and this happens in Testflight builds only not reproducible when I run locally I have reproduced this with a minimal project containing nothing but a simple red cube — no custom anchors, no app state, no dependencies. Steps to Reproduce: Open an ImmersiveSpace A red cube is placed 1m in front of the user via RealityView Long press the X button on any floating window Select Lock In Place The cube disappears immediately Expected: Cube remains visible after window is locked Actual: Cube disappears. Note: Follow Me does NOT reproduce this issue. Minimal reproducible code: struct ImmersiveView: View { var body: some View { RealityView { content in let cube = ModelEntity( mesh: .generateBox(size: 0.3), materials: [SimpleMaterial(color: .red, isMetallic: false)] ) cube.setPosition(SIMD3(0, 1.5, -1), relativeTo: nil) con
Replies
1
Boosts
0
Views
1.1k
Activity
5d
Reply to RealityView content disappears when selecting Lock In Place on visionOS
Hi @Kunal07 Thanks for the focused repro, that's genuinely helpful. Could selecting Lock In Place be causing the ImmersiveSpace to be dismissed, which is why the RealityView content vanishes? I'm not yet sure why this only reproduces under TestFlight and not when running locally from Xcode. I'd greatly appreciate it if you could open a bug report. Please include a zipped copy of the minimal Xcode project that reproduces the issue and a reference to this forum post, and post the FB number back here once you do. Bug Reporting: How and Why? has tips on creating your bug report.
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
5d
Bundle preferred languages mechanism
Hi there, I’m curious to understand how the system determines which language to use for an app. The system is currently set to en-IN (English - India). My app supports the following languages: en (the default development language) en-GB (United Kingdom) en-IE (Ireland) en-US (United States) When I run the app, the Bundle.main.preferredLanguages returns [„en-GB“, „en“], which causes the app to be set to en-GB. However, when the app doesn’t support the preferred system language, I would expect it to default to the en language. Surprisingly, this is not the case. This behavior is precisely described in Technical Note TN2418. Unfortunately, there’s no explanation provided. Is this behavior related to the CLDR Linguistic Distance? I also attempted to replace the default development language en with en-001 (English - world), but it had no effect.
Replies
3
Boosts
0
Views
113
Activity
5d
HKAnchoredObjectQuery ignores "no correlation" predicate in updateHandler
Hello, I'm seeing an inconsistency in how HKAnchoredObjectQuery applies predicates between its initial results handler and its update handler. Specifically, predicates that filter quantity samples by correlation membership - using either HKQuery.predicateForObjectsWithNoCorrelation() or NSPredicate(format: %K == nil, HKPredicateKeyPathCorrelation) - are respected in the resultsHandler but silently ignored in the updateHandler. Setup I have three long-running HKAnchoredObjectQuery instances: One for HKCorrelationType(.bloodPressure) - no predicate One for HKQuantityType(.bloodPressureSystolic) - predicate: HKQuery.predicateForObjectsWithNoCorrelation() One for HKQuantityType(.bloodPressureDiastolic) - predicate: HKQuery.predicateForObjectsWithNoCorrelation() The intent of the predicate on the systolic/diastolic queries is to capture only standalone quantity samples written directly by third-party apps - not the constituent sub-samples of an HKCorrelation. The correlation query handles correlated sampl
Replies
1
Boosts
0
Views
80
Activity
5d
Reply to Bundle preferred languages mechanism
When a trying into my device and I set to for example something I don’t have en-IE, the system's internal fallback resolution path looks like this: en-IEDoes the app have Ireland English? No. en-GB (Does the app have British English? Yes.) I have that one set. Because your app includes en-GB, the system stops at step 2. It determines that en-GB will provide a much better localized experience. This is exactly right. The system for choosing which language to show in the UI is somewhat complex, taking into account the user's preferred languages, the languages supported by the app itself, and language fallbacks. The language fallbacks also evolve as support for new languages is added to the operating system (and very occasionally over time, if feedback is given that specific fallback languages don't feel right).
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
5d
Reply to Clarification on HealthKit Observer Delivery Frequency and BGTaskScheduler Behavior
How background tasks and HealthKit work on watchOS was somehow discussed here and here. You can check if they help. iOS has a similar background execution time budget, but isn't as strict as watchOS. In a normal situation (meaning that your app has background execution time budget, the device's battery level is high, and no many apps are competing the background execution time), I'd expect that the system wakes your app and runs the updateHandler of your observer query (HKObserverQuery) whenever a process saves or deletes samples of the specified type. The update frequency (HKUpdateFrequency) for sample types is another factor to consider. For example, stepCount samples have an hourly maximum frequency in iOS, and so the updateHandler will be triggered at most once per hour, even you use enableBackgroundDelivery + .immediate. This is documented in the Discussion section here. Now to your questions: Are HKObserverQuery delivery frequencies (.immediate, .hourly, .daily) strictly best-effort hints rathe
Replies
Boosts
Views
Activity
5d
Will the upcomming Mac Book Pro M6 Max has at least 256GB RAM
Hi Guys, I want to use the newest Mac Book Pro M6 (Max or Ultra) with at least 256GB RAM for AI development. Will my wish may come true? What do you think? One of Apples most advantage here is unified memory and with the privacy first approach, i want to run local modells and show it to my customer just on the macbook. That has much more magic then first plug the power supply for a sparc, connect a network cable and fiddling around. The perfect match would be a Max Book Pro, M6 Ultra, 512GB. But I guess this is just a dream :-(. Please let me know what you think abou that. Thanks
Replies
1
Boosts
0
Views
583
Activity
5d
visionOS: AVFoundation cannot deliver simultaneous video from two external (UVC) cameras; no public USB fallback exists
Area: visionOS 26.4 · AVFoundation · AVCapture · External/UVC video Classification: Suggestion / API Enhancement Request (also: Incorrect/Missing Documentation) Device / OS: Apple Vision Pro, visionOS 26.x. Xcode 26.4.1, XROS26.4.sdk. Summary On visionOS, a third-party app cannot display two UVC USB cameras (connected through a powered USB-C hub) at the same time. Every AVFoundation path that would enable this on iPadOS is either unavailable or fails at runtime on visionOS, and there is no public non-AVFoundation fallback (no IOUSBHost, no DriverKit, no usable CoreMediaIO, no MFi path for generic UVC devices). This is a real capability gap relative to iPadOS and macOS, and Camo Studio on iPadOS (App Store ID 6450313385) demonstrates the two-camera USB-hub use case is legitimate and valuable for spatial-video/hybrid-capture workflows on Vision Pro. Steps to reproduce Connect a powered USB-C hub to Apple Vision Pro with two UVC webcams attached. Build a visionOS app that uses AVCaptureDevice.DiscoverySession(de
Replies
1
Boosts
0
Views
966
Activity
5d
unable to create tasks to copy stub binary
Pulling my hair out here. After upgrading to Xcode Version 26.4.1 (17E202) I've started getting unable to create tasks to copy stub binary: can't determine architectures of binary: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub: Cannot open file handle for file at path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub: The file “MessagesApplicationStub” doesn’t exist. No matter what I do when trying to run the build (worked in previous versions). I've tried fresh install from App Store, direct package download, removing the SDKs, even previous versions and no matter what I get
Replies
1
Boosts
0
Views
146
Activity
5d
macOS Preview appears to hold MTP devices open indefinitely
I am developing a USB MTP device for use with macOS. When the device is connected while Preview is running, I observe the host send OpenSession, then GetDeviceInfo, and then no further MTP commands. I do not see a later CloseSession. Problem is that once this happens, exclusive access to the USB interface is retained, so another application cannot connect to the device. From the device side, there is no obvious way to recover except forcing a USB disconnect/reset or shutting down the USB interface. My questions are: Is this expected behavior for Preview, or for a Preview-related macOS helper? Is it expected on macOS that a client may open an MTP session and then leave it idle without sending CloseSession? I am mainly trying to understand whether this is expected macOS behavior, or whether this should be considered a bug.
Replies
3
Boosts
0
Views
54
Activity
5d
Membership renewal not reflected
Our Apple Developer Program membership renewal is facing an issue from Apple’s side. The membership section shows that the annual fee is marked as waived, but the developer portal still shows that our membership has expired. Even after multiple follow-ups with Apple support, the issue has not been resolved. Additionally, our apps have become unavailable on the App Store due to this issue. These applications are used for public service delivery / judicial stakeholders, and the outage is affecting users. This is a critical issue for us, and we would appreciate guidance or escalation support from Apple staff/community moderators.
Replies
1
Boosts
0
Views
60
Activity
5d
Reply to Reclaiming cached data from an `enumerateDirectory` call
Part 1... Disclaimer: Some of the information here may already be obvious or well understood to you. If it is, then thank you for your patience as I use this as an excuse to push out background information that other developers may find useful. Oh, I think I was a little unclear in what I wrote. What I was trying to say in a call to enumerateDirectory of this nature was that if I call enumerateDirectory with a non-minimal attribute set (i.e. include attributes that need more I/O to fetch), then I see that behavior. But you're right in that iterating over a directory with minimal attributes doesn't generally have additional lookupItem calls in my tests. Again, you have to be careful of the API you're using. The classic Unix directory iteration pattern[1] is to read the directory (readdir-> enumerateDirectory) and then retrieve metadata (stat-> lookupItemNamed). There are two problems with that: At a basic level, it generates a lot of syscalls, each of which nibble away at performance. From the file syste
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
5d
Xcode Command Line Tools update not wanted, but persists
I am running Tahoe 26.4.1 on a MacBook Air, M4, 2025. In System Settings, I have an item heading of Software Update Available. Clicking on that brings up Command Line Tools for Xcode 26.4. The only available choices are to Update Now or Cancel. In the past, I was developing a game, but have quit working on that, and deleted Xcode and Command Line Tools. Wanting the Command Line Tools ... line to disappear from System Settings, I called Apple Support, and at their request have followed the steps in https://developer.apple.com/documentation/xcode/installing-the-command-line-tools to delete this entry in System Settings, namely the 2 sudo's in that article under the section Uninstall the command line tools. This did not cause the Command Line Tools for Xcode 26.4 line in System Settings to disappear (as I was told by Apple support that it would, because I would be deleting the receipt). In Terminal, I did indeed receive a response of No receipt for 'com.apple.dt.commandlinetools' found at '/'.. I have c
Replies
12
Boosts
0
Views
168
Activity
5d
Language Translation
when we launch the application and change the language from german/french to english or any other language then in also it is changing app language, but bluetooth connection screen with pair or cancel alert is showing on previous selected language. Since that alert is system alert, is there any wayto debug/resolve that issue.
Replies
3
Boosts
0
Views
584
Activity
5d