Search results for

“show when run”

115,110 results found

Post

Replies

Boosts

Views

Activity

CKRecordZone deleted when second user accepts zone-wide CKShare
I'm seeing a critical issue where a custom CKRecordZone is consistently deleted server-side when a second iCloud account interacts with a zone-wide CKShare. I've reproduced this 20+ times across two days and have exhausted every client-side fix I can think of. Looking for guidance on what might be going wrong. Setup Container: iCloud.com.cohencooks (production app on App Store) Custom CKRecordZone in owner's private database Zone-wide CKShare(recordZoneID:) (iOS 15+ zone sharing) SwiftData with ModelConfiguration(cloudKitDatabase: .none) — no automatic CloudKit mirroring Acceptance via CKFetchShareMetadataOperation → CKContainer.accept(metadata) (no UICloudSharingController) Minimal reproduction // 1. Owner creates zone + share let zone = CKRecordZone(zoneName: MyZone) try await privateDB.save(zone) let share = CKShare(recordZoneID: zone.zoneID) share[CKShare.SystemFieldKey.title] = My Share as CKRecordValue share.publicPermission = .readWrite let (results, _) = try await privateDB.modifyRecords(saving: [shar
1
0
128
2w
Does using HIDVirtualDevice rule out Mac App Store distribution?
Hi, I’m looking for clarification from folks familiar with CoreHID rather than App Review, as the guys there have not responded to my post (https://developer.apple.com/forums/thread/820676) We have a sandboxed macOS app that creates a virtual HID device (HIDVirtualDevice) as described in Creating virtual devices https://developer.apple.com/documentation/corehid/creatingvirtualdevices To work at all, the app requires the entitlement: com.apple.developer.hid.virtual.device With this entitlement present, macOS shows the system prompt requesting Accessibility permission App would like to control this computer using accessibility features. Grant access to this application in Security and Privacy preferences located in System Preferences. when HIDVirtualDevice(properties:) is called. There is no mention of Accessibility in the HIDVirtualDevice documentation, but the behavior is reproducible and seems unavoidable. My question is therefore: Is creating a virtual HID device from userspace via HIDVirtualDevice
6
0
181
2w
Blending walk and run animations in RealityKit
Hi everybody, I have 2 separate animations run.usdz and walk.usdz animation files which are loaded perfectly in Reality Composer Pro and in the RealityKit application. I want to gradually increase the speed of my player by switching blending weight values from 0.0 (walking) to 1.0 (full speed running). let rabbit = await RabbitBuilder.loadWalkingRabbit() let runningRabbit = await RabbitBuilder.loadRunningRabbit() rabbit.scale = SIMD3(0.05, 0.05, 0.05) runningRabbit.scale = SIMD3(0.05, 0.05, 0.05) let walkAnimation = rabbit.availableAnimations let runAnimation = runningRabbit.availableAnimations RabbitWalker.walkAnim = walkAnimation.first! RabbitWalker.runAnim = runAnimation.first! guard let walk = RabbitWalker.walkAnim, let run = RabbitWalker.runAnim else { return } let blendTree = BlendTreeAnimation( BlendTreeBlendNode(sources: [ BlendTreeSourceNode(source: walk.definition, name: walk, weight: .value(1 - weight)), BlendTreeSourceNode(source: run.definition, name: run, weight: .valu
4
0
322
2w
Reply to Blending walk and run animations in RealityKit
Hi Michael, Thank you for the tips. Today I tried your last recommendation but it didn't work. Let me list my process. I have got both walk and run animations as one animation in .fbx file. Then imported it to Blender. First I exported T-Pose of the entity and then exported animation in .usdz format. Started using T-Pose rabbit entity in RCP Then import that usdz animation in RCP's AnimationLibraryComponent . On the code side (as you suggested) I did clipping the timeline into two small animations as walkClip and runClip. And pass those clips in order to construct a BlendTreeeAnimation. if let rabbit = await RabbitBuilder.loadRabbit() { rabbit.components.set(RabbitWalkerComponent(elapsed: 0, speed: rabbitSpeed)) RabbitWalker.entity = rabbit content.add(rabbit) let anims = rabbit.availableAnimations // ── Slice a single combined clip into walk and run ───────────── // Walk = keyframes 0–18, Run = keyframes 19–29. // trimStart / trimEnd are in seconds, so we need the frame rate. // Re
Topic: Graphics & Games SubTopic: RealityKit Tags:
2w
Reply to Embedded Collection View in SwiftUI offset issue
Your layout computes the content offset adjustment during invalidation using stale bounds, which causes the offset problem during rotation. Two issues contribute to this. 1. Stale bounds in invalidateLayout(with:) Your invalidateLayout(with:) override computes the content offset adjustment using collectionView.bounds.width: let delta = (CGFloat(currentPage) * collectionView.bounds.width) - collectionView.contentOffset.x customContext.contentOffsetAdjustment.x += delta The problem is that when this runs during a bounds change (rotation), collectionView.bounds.width may still reflect the pre-rotation width. The delta calculation snaps the offset back to where it already was, rather than adjusting for the new width. Override invalidationContext(forBoundsChange:) instead — it receives the new bounds as a parameter: override func invalidationContext(forBoundsChange newBounds: CGRect) -> UICollectionViewLayoutInvalidationContext { let context = super.invalidationContext(forBoundsChange: newBounds) if le
Topic: UI Frameworks SubTopic: General Tags:
2w
iOS: Issues getting beginBackgroundTaskWithName working reliably
We have tried using background tasks for file saving via (UIBackgroundTaskIdentifier) beginBackgroundTaskWithName:(NSString *) taskName expirationHandler:(void (^)(void)) handler; when our app goes into the background and/or is closed by the user. But we cannot make it work the way the documentation tells us it should. While task creation never reports an issue (in fact it never calls our expiration handler at all) and the returned task id is always valid, when we ask for how much time we have left via backgroundTimeRemaining we always get 6s instead of the specified 30s. We tried to create the task when the app state goes to inactive or when our delegate is called via applicationDidEnterBackground but it makes no difference, besides the fact that the remaining time reported is basically max double, when the app is not in background yet which is by design as far we understand. But we don't even get the 6s for saving when a user closes the app. Because almost immediately after applicationDidEnterBackground our
4
0
169
2w
Reply to iOS 26 UITabBar Layout Glitch: Custom Appearance vs. Liquid Glass Effects during Rotation
[quote='822878021, jimmy520, /thread/822878, /profile/jimmy520'] Does this guidance also apply to UITabBar? [/quote] Yes, TN3106 applies broadly to navigation elements including UITabBar. Custom backgrounds, colors and appearances can interfere with how the system manages Liquid Glass. People use Apple products in all sorts of ways, to avoid any unexpected results, it's best to stick to recommended best practices. Consider how the system handles accessibility automatically. There's a chance going against a recommendation can make some content harder to see for some of your users. [quote='822878021, jimmy520, /thread/822878, /profile/jimmy520'] could setting a custom background color via UITabBarAppearance interfere with internal layout constraints required for the Liquid Glass effect to adapt correctly during orientation changes? [/quote] That sounds odd to me. If it's behaving differently depending on orientation. I'd be interested in taking a look and sharing that report with the relevant engineering team.
Topic: UI Frameworks SubTopic: UIKit Tags:
2w
VoiceOver is interrupted/disabled when running XCUITest (WDA). Request guidance for accessibility research automation on iOS.
Hello, I am working on a research project focused on creating accessible interactions for visually impaired users. I need to verify some automated assistance processes in a real-world usage environment where VoiceOver is enabled. However, I have encountered a blocking issue: When I connect the device through Xcode UI Test / WebDriverAgent (or Appium + WDA) and perform operations, VoiceOver gets interrupted (sometimes it is even directly turned off), preventing blind users from continuing to use the narrator. Replication steps (stable replication) On iPhone, enable VoiceOver (Settings → Accessibility → Narrator), and keep the device unlocked and the screen on. On Mac, start [Xcode UI Test / WebDriverAgentRunner / Appium+WDA] and establish a session with the device (XCTest session). Perform any operation: read the accessibility tree (/source), take screenshots, or click/slide. Observe the phenomenon: VoiceOver will [automatically turn off / reading interruption / focus jumping / unable to continue reading the n
1
0
1.3k
2w
Xcode 26.4: xcodebuild test crashes on iOS 15.2 Simulators before XCTest bootstrap due to ResultDataPublisher missing Foundation.URLRequest.httpMethod symbol
I’m seeing a crash when running XCTest on iOS 15.2 Simulators with Xcode 26.4. The test bundle never starts. xctest crashes before establishing the XCTest connection. This appears to be a regression from Xcode 26.2. The same test flow worked with Xcode 26.2, but crashes with Xcode 26.4. This does not appear to be caused by my app or package code. I can reproduce it with a minimal Swift Package that only imports Foundation and has one XCTest case using URLRequest.httpMethod. Environment: Xcode with failure: 26.4 Xcode that worked: 26.2 macOS: 26.2 Destinations tested: iPhone SE (2nd generation), iOS 15.2 Simulator iPad mini (6th generation), iOS 15.2 Simulator Test command: xcodebuild test Swift Package deployment target: iOS 15.2 Swift tools version: 6.1 Minimal reproduction package: Package.swift // swift-tools-version:6.1 import PackageDescription let package = Package( name: FoundationOnlyRepro, platforms: [.iOS(15.2)], products: [ .library( name: FoundationOnlyRepro, targets: [FoundationOnlyRepro
1
0
127
2w
Reply to Xcode 26.4: xcodebuild test crashes on iOS 15.2 Simulators before XCTest bootstrap due to ResultDataPublisher missing Foundation.URLRequest.httpMethod symbol
Hello, this issue should be resolved in Xcode 26.5 Beta 2. It was noted as a Known Issue in the release notes here: Testing Known Issues Tests fail to run on iOS 15 simulators (173337319) (FB22333623) However, despite being marked as a known issue, it should in fact be resolved in Beta 2, and we will update the release notes to reflect that. Please try the latest Xcode 26.5 release and file a Feedback if you continue to experience problems with testing on older simulators.
2w
StoreKit Config file Options Grayed Out
I have a question concerning Xcode version 26. Ever since I installed this version on my Mac, I have been experiencing issues with the StoreKit configuration file. The Simulated StoreKit Failures check boxes and selections are all grayed out. Once in a while, I see a pop-up stating The document 'TaConfig.storekit' could not be autosaved. The file has been changed by another application. The pop-up Save as... points to where my config file is located, but the config file is grayed out. I thought maybe the directory where the file is located is write protected, but I have been able to save other files to the same directory. The Edit Scheme... -> Run -> Options has the StoreKit Configuration set for my file TaConfig.storekit. It feels like there is an option somewhere that I'm missing.
3
0
454
2w
Reply to NSLocalizedDescription = \"Peer removed pairing information\";
Hi There, I am also facing this problem, but I am stuck because my device is not shown in the Bluetooth panel. It is unclear how to get it to show up in this panel, but I have an iOS app that uses CoreBluetooth that can see it advertising and can pair with it. nRFConnect from Nordic can also see it and connect/pair. But I have deleted the bond table on my device and now I am completely hosed because I cannot reconnect because I always get this error. I tried deleting the Network Settings and power cycling the phone but it doesn't help - it is permanently locked out now. So I have two questions: How can I recover in this situation? How can I get my device to show up in the Bluetooth settings (both showing scan results and as a previously paired/device) so in the future I can Forget it? Thanks, Mark
Topic: App & System Services SubTopic: Hardware Tags:
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
Is that a realistic user scenario that you’re trying to support? You are correct—this is exactly the scenario I am trying to implement. The primary challenge is that the network configuration cannot be modified while it is active. Currently, when a user attempts to change the network settings while it is in use, I prompt them either to restart the application or to stop any virtual machines using the network. This allows me to properly clean up and recreate the network with the updated configuration. At this stage, I have chosen to require an application restart for network modifications, as I have not found a reliable method to fully release the vmnet network. The documentation suggests using CFRelease, but this is not directly compatible with ARC. I did identify a workaround that appears to function correctly; however, the limitation remains that the network configuration cannot be changed while it is active. Additionally, it is not possible to hot-plug or remove network attachments from a running
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
OK. And sorry to keep asking questions, but I need to understand where you’re heading so that I can check if there’s a path forward. Consider this user scenario: The user creates a network in your app. They then create virtual machine A that uses that network. And set up a port forwarding for A. They then start A. Once A is up and running, they create a new virtual machine B. And configure it to use that same network. And set up a different port forwarding for B. Then, with A still running, they start B. Is that a realistic user scenario that you’re trying to support? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: Core OS Tags:
2w
CKRecordZone deleted when second user accepts zone-wide CKShare
I'm seeing a critical issue where a custom CKRecordZone is consistently deleted server-side when a second iCloud account interacts with a zone-wide CKShare. I've reproduced this 20+ times across two days and have exhausted every client-side fix I can think of. Looking for guidance on what might be going wrong. Setup Container: iCloud.com.cohencooks (production app on App Store) Custom CKRecordZone in owner's private database Zone-wide CKShare(recordZoneID:) (iOS 15+ zone sharing) SwiftData with ModelConfiguration(cloudKitDatabase: .none) — no automatic CloudKit mirroring Acceptance via CKFetchShareMetadataOperation → CKContainer.accept(metadata) (no UICloudSharingController) Minimal reproduction // 1. Owner creates zone + share let zone = CKRecordZone(zoneName: MyZone) try await privateDB.save(zone) let share = CKShare(recordZoneID: zone.zoneID) share[CKShare.SystemFieldKey.title] = My Share as CKRecordValue share.publicPermission = .readWrite let (results, _) = try await privateDB.modifyRecords(saving: [shar
Replies
1
Boosts
0
Views
128
Activity
2w
Does using HIDVirtualDevice rule out Mac App Store distribution?
Hi, I’m looking for clarification from folks familiar with CoreHID rather than App Review, as the guys there have not responded to my post (https://developer.apple.com/forums/thread/820676) We have a sandboxed macOS app that creates a virtual HID device (HIDVirtualDevice) as described in Creating virtual devices https://developer.apple.com/documentation/corehid/creatingvirtualdevices To work at all, the app requires the entitlement: com.apple.developer.hid.virtual.device With this entitlement present, macOS shows the system prompt requesting Accessibility permission App would like to control this computer using accessibility features. Grant access to this application in Security and Privacy preferences located in System Preferences. when HIDVirtualDevice(properties:) is called. There is no mention of Accessibility in the HIDVirtualDevice documentation, but the behavior is reproducible and seems unavoidable. My question is therefore: Is creating a virtual HID device from userspace via HIDVirtualDevice
Replies
6
Boosts
0
Views
181
Activity
2w
Blending walk and run animations in RealityKit
Hi everybody, I have 2 separate animations run.usdz and walk.usdz animation files which are loaded perfectly in Reality Composer Pro and in the RealityKit application. I want to gradually increase the speed of my player by switching blending weight values from 0.0 (walking) to 1.0 (full speed running). let rabbit = await RabbitBuilder.loadWalkingRabbit() let runningRabbit = await RabbitBuilder.loadRunningRabbit() rabbit.scale = SIMD3(0.05, 0.05, 0.05) runningRabbit.scale = SIMD3(0.05, 0.05, 0.05) let walkAnimation = rabbit.availableAnimations let runAnimation = runningRabbit.availableAnimations RabbitWalker.walkAnim = walkAnimation.first! RabbitWalker.runAnim = runAnimation.first! guard let walk = RabbitWalker.walkAnim, let run = RabbitWalker.runAnim else { return } let blendTree = BlendTreeAnimation( BlendTreeBlendNode(sources: [ BlendTreeSourceNode(source: walk.definition, name: walk, weight: .value(1 - weight)), BlendTreeSourceNode(source: run.definition, name: run, weight: .valu
Replies
4
Boosts
0
Views
322
Activity
2w
Reply to Blending walk and run animations in RealityKit
Hi Michael, Thank you for the tips. Today I tried your last recommendation but it didn't work. Let me list my process. I have got both walk and run animations as one animation in .fbx file. Then imported it to Blender. First I exported T-Pose of the entity and then exported animation in .usdz format. Started using T-Pose rabbit entity in RCP Then import that usdz animation in RCP's AnimationLibraryComponent . On the code side (as you suggested) I did clipping the timeline into two small animations as walkClip and runClip. And pass those clips in order to construct a BlendTreeeAnimation. if let rabbit = await RabbitBuilder.loadRabbit() { rabbit.components.set(RabbitWalkerComponent(elapsed: 0, speed: rabbitSpeed)) RabbitWalker.entity = rabbit content.add(rabbit) let anims = rabbit.availableAnimations // ── Slice a single combined clip into walk and run ───────────── // Walk = keyframes 0–18, Run = keyframes 19–29. // trimStart / trimEnd are in seconds, so we need the frame rate. // Re
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
2w
Reply to Embedded Collection View in SwiftUI offset issue
Your layout computes the content offset adjustment during invalidation using stale bounds, which causes the offset problem during rotation. Two issues contribute to this. 1. Stale bounds in invalidateLayout(with:) Your invalidateLayout(with:) override computes the content offset adjustment using collectionView.bounds.width: let delta = (CGFloat(currentPage) * collectionView.bounds.width) - collectionView.contentOffset.x customContext.contentOffsetAdjustment.x += delta The problem is that when this runs during a bounds change (rotation), collectionView.bounds.width may still reflect the pre-rotation width. The delta calculation snaps the offset back to where it already was, rather than adjusting for the new width. Override invalidationContext(forBoundsChange:) instead — it receives the new bounds as a parameter: override func invalidationContext(forBoundsChange newBounds: CGRect) -> UICollectionViewLayoutInvalidationContext { let context = super.invalidationContext(forBoundsChange: newBounds) if le
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
iOS: Issues getting beginBackgroundTaskWithName working reliably
We have tried using background tasks for file saving via (UIBackgroundTaskIdentifier) beginBackgroundTaskWithName:(NSString *) taskName expirationHandler:(void (^)(void)) handler; when our app goes into the background and/or is closed by the user. But we cannot make it work the way the documentation tells us it should. While task creation never reports an issue (in fact it never calls our expiration handler at all) and the returned task id is always valid, when we ask for how much time we have left via backgroundTimeRemaining we always get 6s instead of the specified 30s. We tried to create the task when the app state goes to inactive or when our delegate is called via applicationDidEnterBackground but it makes no difference, besides the fact that the remaining time reported is basically max double, when the app is not in background yet which is by design as far we understand. But we don't even get the 6s for saving when a user closes the app. Because almost immediately after applicationDidEnterBackground our
Replies
4
Boosts
0
Views
169
Activity
2w
Reply to iOS 26 UITabBar Layout Glitch: Custom Appearance vs. Liquid Glass Effects during Rotation
[quote='822878021, jimmy520, /thread/822878, /profile/jimmy520'] Does this guidance also apply to UITabBar? [/quote] Yes, TN3106 applies broadly to navigation elements including UITabBar. Custom backgrounds, colors and appearances can interfere with how the system manages Liquid Glass. People use Apple products in all sorts of ways, to avoid any unexpected results, it's best to stick to recommended best practices. Consider how the system handles accessibility automatically. There's a chance going against a recommendation can make some content harder to see for some of your users. [quote='822878021, jimmy520, /thread/822878, /profile/jimmy520'] could setting a custom background color via UITabBarAppearance interfere with internal layout constraints required for the Liquid Glass effect to adapt correctly during orientation changes? [/quote] That sounds odd to me. If it's behaving differently depending on orientation. I'd be interested in taking a look and sharing that report with the relevant engineering team.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
2w
VoiceOver is interrupted/disabled when running XCUITest (WDA). Request guidance for accessibility research automation on iOS.
Hello, I am working on a research project focused on creating accessible interactions for visually impaired users. I need to verify some automated assistance processes in a real-world usage environment where VoiceOver is enabled. However, I have encountered a blocking issue: When I connect the device through Xcode UI Test / WebDriverAgent (or Appium + WDA) and perform operations, VoiceOver gets interrupted (sometimes it is even directly turned off), preventing blind users from continuing to use the narrator. Replication steps (stable replication) On iPhone, enable VoiceOver (Settings → Accessibility → Narrator), and keep the device unlocked and the screen on. On Mac, start [Xcode UI Test / WebDriverAgentRunner / Appium+WDA] and establish a session with the device (XCTest session). Perform any operation: read the accessibility tree (/source), take screenshots, or click/slide. Observe the phenomenon: VoiceOver will [automatically turn off / reading interruption / focus jumping / unable to continue reading the n
Replies
1
Boosts
0
Views
1.3k
Activity
2w
Xcode 26.4: xcodebuild test crashes on iOS 15.2 Simulators before XCTest bootstrap due to ResultDataPublisher missing Foundation.URLRequest.httpMethod symbol
I’m seeing a crash when running XCTest on iOS 15.2 Simulators with Xcode 26.4. The test bundle never starts. xctest crashes before establishing the XCTest connection. This appears to be a regression from Xcode 26.2. The same test flow worked with Xcode 26.2, but crashes with Xcode 26.4. This does not appear to be caused by my app or package code. I can reproduce it with a minimal Swift Package that only imports Foundation and has one XCTest case using URLRequest.httpMethod. Environment: Xcode with failure: 26.4 Xcode that worked: 26.2 macOS: 26.2 Destinations tested: iPhone SE (2nd generation), iOS 15.2 Simulator iPad mini (6th generation), iOS 15.2 Simulator Test command: xcodebuild test Swift Package deployment target: iOS 15.2 Swift tools version: 6.1 Minimal reproduction package: Package.swift // swift-tools-version:6.1 import PackageDescription let package = Package( name: FoundationOnlyRepro, platforms: [.iOS(15.2)], products: [ .library( name: FoundationOnlyRepro, targets: [FoundationOnlyRepro
Replies
1
Boosts
0
Views
127
Activity
2w
Reply to Xcode 26.4: xcodebuild test crashes on iOS 15.2 Simulators before XCTest bootstrap due to ResultDataPublisher missing Foundation.URLRequest.httpMethod symbol
Hello, this issue should be resolved in Xcode 26.5 Beta 2. It was noted as a Known Issue in the release notes here: Testing Known Issues Tests fail to run on iOS 15 simulators (173337319) (FB22333623) However, despite being marked as a known issue, it should in fact be resolved in Beta 2, and we will update the release notes to reflect that. Please try the latest Xcode 26.5 release and file a Feedback if you continue to experience problems with testing on older simulators.
Replies
Boosts
Views
Activity
2w
StoreKit Config file Options Grayed Out
I have a question concerning Xcode version 26. Ever since I installed this version on my Mac, I have been experiencing issues with the StoreKit configuration file. The Simulated StoreKit Failures check boxes and selections are all grayed out. Once in a while, I see a pop-up stating The document 'TaConfig.storekit' could not be autosaved. The file has been changed by another application. The pop-up Save as... points to where my config file is located, but the config file is grayed out. I thought maybe the directory where the file is located is write protected, but I have been able to save other files to the same directory. The Edit Scheme... -> Run -> Options has the StoreKit Configuration set for my file TaConfig.storekit. It feels like there is an option somewhere that I'm missing.
Replies
3
Boosts
0
Views
454
Activity
2w
Reply to NSLocalizedDescription = \"Peer removed pairing information\";
Hi There, I am also facing this problem, but I am stuck because my device is not shown in the Bluetooth panel. It is unclear how to get it to show up in this panel, but I have an iOS app that uses CoreBluetooth that can see it advertising and can pair with it. nRFConnect from Nordic can also see it and connect/pair. But I have deleted the bond table on my device and now I am completely hosed because I cannot reconnect because I always get this error. I tried deleting the Network Settings and power cycling the phone but it doesn't help - it is permanently locked out now. So I have two questions: How can I recover in this situation? How can I get my device to show up in the Bluetooth settings (both showing scan results and as a previously paired/device) so in the future I can Forget it? Thanks, Mark
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
2w
Reply to autologin required inconsistent for virtualization
No log in to the GUI at all, then run the tests.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
Is that a realistic user scenario that you’re trying to support? You are correct—this is exactly the scenario I am trying to implement. The primary challenge is that the network configuration cannot be modified while it is active. Currently, when a user attempts to change the network settings while it is in use, I prompt them either to restart the application or to stop any virtual machines using the network. This allows me to properly clean up and recreate the network with the updated configuration. At this stage, I have chosen to require an application restart for network modifications, as I have not found a reliable method to fully release the vmnet network. The documentation suggests using CFRelease, but this is not directly compatible with ARC. I did identify a workaround that appears to function correctly; however, the limitation remains that the network configuration cannot be changed while it is active. Additionally, it is not possible to hot-plug or remove network attachments from a running
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w
Reply to Programmatic IP Discovery for VZVirtualMachine in an App Store Sandbox
OK. And sorry to keep asking questions, but I need to understand where you’re heading so that I can check if there’s a path forward. Consider this user scenario: The user creates a network in your app. They then create virtual machine A that uses that network. And set up a port forwarding for A. They then start A. Once A is up and running, they create a new virtual machine B. And configure it to use that same network. And set up a different port forwarding for B. Then, with A still running, they start B. Is that a realistic user scenario that you’re trying to support? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2w