Search results for

“xcode github”

96,040 results found

Post

Replies

Boosts

Views

Activity

Unable to Control Optical Zoom via USB (UVC) in Custom Swift App, While Prebuilt App Works
I’m currently working on a macOS application to control a USB camera’s optical zoom via a direct USB connection. My situation: I am using a USB camera that supports optical zoom. I downloaded an open-source project, CameraController. The prebuilt binary provided on GitHub works perfectly, and I can successfully control the camera’s optical zoom. However, when I build and run the same project from source in Xcode, the zoom control UI appears disabled (grayed out). The project compiles without errors. Additionally, I attempted to implement zoom control myself using the UVC protocol in Swift . However, it seems that the zoom control commands are not successfully sent or recognized by the camera. Questions: Why would the prebuilt app work, but the same source code built locally results in disabled zoom controls? Are there known limitations on sending zoom control requests via USB on macOS? Is there a recommended modern approach for controlling optical zoom programmatically via Swift? Any insight
1
0
35
Apr ’26
Reply to How to recreate Apple Music mini player transition in SwiftUI
Hello @sheikhbayazid This is a great start! While we are unable to share exactly how Apple achieved this in the Music app, you might still find the following helpful: [quote='820932021, sheikhbayazid, /thread/820932, /profile/sheikhbayazid'] Should this be a custom container instead of fullScreenCover? [/quote] You might be looking for a sheet. Users can swipe down to dismiss a sheet interactively by default. .fullScreenCover has no built-in-swipe-to-dismiss, you must provide an explicit mechanism, like a dismiss button. For more information on Sheets see https://developer.apple.com/design/human-interface-guidelines/sheets [quote='820932021, sheikhbayazid, /thread/820932, /profile/sheikhbayazid'] How would you support both new and older iOS versions? [/quote] Configure the Xcode project to support the intended lowest OS version, then use conditionals to handle differences between iOS versions with availability checks such as #available if #available(iOS 18.0, *) { // Content in iOS 18.0 and later } e
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’26
Reply to Xcode 26.4: Regressions in Intelligence features
Regarding the OAuth issue, I believe I need to sign in again if I switch Xcode versions. For example, I signed in with Xcode 26.4 to use Claude agent, but when I switched to Xcode 26.5 and tried to use the agent again. Xcode will show the authentication failure message. Failed to authenticate. API Error: 401 {type:error,error:{type:authentication_error,message:OAuth token has expired. Please obtain a new token or refresh your existing token.},request_id:req_011hoAXioU8pMsLnmS3c}
Apr ’26
Reply to Entitlement values for the Enhanced Security and the Additional Runtime Platform Restrictions
I have the same issue now after Xcode 26.4 has been released and changed these entitlements. My apps have been rejected with the following: Entitlement com.apple.security.hardened-process.enhanced-security-version-string value must be boolean and true. Entitlement com.apple.security.hardened-process.platform-restrictions-string value must be boolean and true. It seems to be the same problem where the App Review automated system hasn't been updated to accept the new entitlements even though Xcode 26.4 has been out for more than a week now. I've raised FB22387339 for this.
Topic: Privacy & Security SubTopic: General Tags:
Apr ’26
Reply to NEAppProxyUDPFlow.writeDatagrams fails with "The datagram was too large" on macOS 15.x, macOS 26.x
Hi Quinn, I have an additional clarification about the logs from the target Mac, now that I’ve instrumented the code more precisely. On this machine I actually see two different behaviours for NEAppProxyUDPFlow.writeDatagrams: In the main DNS path (NEDNSProxyProvider → NEAppProxyUDPFlow → TCP upstream via SwiftNIO), writeDatagrams always fails with The datagram was too large, even for very small responses (for example 33, 50, 66, 67, 147, 193 bytes). The only writeDatagrams OK entries I see in the logs come from a separate passthrough handler that talks directly to a fallback DNS server (8.8.8.8) and uses a different code path. So, for the specific flow we are discussing (the proxy that forwards DNS over TCP to our upstream and then sends the response back to the client), writeDatagrams never succeeds on this Mac: every attempt ends with The datagram was too large, regardless of the actual payload size. This seems to match what you described about the subtle differences between endpoint type
Apr ’26
Network Extension "Signature check failed" after archive with Developer ID — works in Xcode debug
I have a macOS VPN app with a Network Extension (packet tunnel provider) distributed outside the App Store via Developer ID. Everything works perfectly when running from Xcode. After archiving and exporting for Developer ID distribution, the extension launches but immediately gets killed by nesessionmanager. The error: Signature check failed: code failed to satisfy specified code requirement(s) followed by: started with PID 0 status changed to disconnected, last stop reason Plugin failed What makes this interesting: the extension process does launch. AMFI approves it, taskgated-helper validates the provisioning profile and says allowing entitlement(s) due to provisioning profile, the sandbox is applied, PacketTunnelProvider is created — but then Apple's Security framework internally fails the designated requirement check and nesessionmanager kills the session. Key log sequence: taskgated-helper: Checking profile: Developer ID - MacOS WireGuardExtension taskgated-helper: allowing entitlement(s) for co
3
0
228
Apr ’26
Reply to App Crash with mxSignpost function not found
[quote='882538022, AlexPan19920718, /thread/820969?answerId=882538022#882538022, /profile/AlexPan19920718'] FB: FB22384135 [/quote] Thanks for filing that. I took a look at Xcode 26.5b1 and it still seems to have the problem )-: Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: General Tags:
Apr ’26
Xcode 26.4 is missing the documentation for Foundation
Upgraded to Tahoe 26.4 and Xcode 26.4 and realized Xcode is missing the documentation for Foundation. Occasionally, if other (not yet missing) documentation references a Foundation entity, such as a type, clicking on it may open in a web browser pointing to the externally hosted Apple documentation. Anyone else experiencing this or have a workaround (perhaps the documentation files are on disk but were somehow lost / disconnected from the Xcode doc browser)? I checked the release notes for 26.4 and for 26.3 but did not find a mention of anything like that. Filed an issue with Apple, please do too if you are affected so hopefully it will see some love and lead to restoring the documentation. Edited: found some possibly related files in my ~/Library and the newer version v302 (26.4 related, I think, is considerably smaller): du -sh ~/Library/Developer/Xcode/DocumentationCache/* | awk -F/ '{print $NF t $1}' v296 1.0G v302 507M
5
0
397
Apr ’26
IPhone fails to connect with Xcode in presence of multiple WebContentFilters
I am facing an intermittent problem where iPhones are failing to pair/connect with Xcode under Xcode -> Windows -> Devices and Simulators. This happens when more than one web content filters are present, for instance, I have my web content filter (FilterSockets true, FilterGrade Firewall) and there is also Sentinel One web content filter with same configuration. Note: We are not blocking any flow from remoted / remotepairingd / core device service / MDRemoteServiceSupport etc processes. But they do get paused and resumed at times for our internal traffic verification logic. So, we are trying to understand what impact our content filter may be having on this iPhone Pairing?? If we stop either one of the filters the problem goes away. I have tracked the network traffic to the phone, and it seems to be using a ethernet interface (en5/en10) over the USB-C cable. I can see endpoints like this: localEndpoint = fe80::7:afff:fea1:edb8%en5.54442 remoteEndpoint = fe80::7:afff:fea1:ed47%en5.49813
1
0
117
Apr ’26
Reply to IPhone fails to connect with Xcode in presence of multiple WebContentFilters
I want to start by pointing you at TN3158 Resolving Xcode 15 device connection issues. This provides general background and one critical data point, namely, it shows how to identify the direct link interfaces used by Xcode. [quote='821229021, tathac, /thread/821229, /profile/tathac'] I have my web content filter … and there is also SentinelOne web content filter with same configuration. [/quote] I’m presuming that this SentinelOne filter isn’t something you have direct control over. Given that, my advice is that you remove it from the equation and replace it with a placeholder content filter that you do control. This gives you full control over the (non-Apple) bits of the stack. That’ll tell you whether this issue is fundamental to having two content filters installed, or whether there’s something specific about the SentinelOne filter that’s triggering the issue. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Apr ’26
Unable to Control Optical Zoom via USB (UVC) in Custom Swift App, While Prebuilt App Works
I’m currently working on a macOS application to control a USB camera’s optical zoom via a direct USB connection. My situation: I am using a USB camera that supports optical zoom. I downloaded an open-source project, CameraController. The prebuilt binary provided on GitHub works perfectly, and I can successfully control the camera’s optical zoom. However, when I build and run the same project from source in Xcode, the zoom control UI appears disabled (grayed out). The project compiles without errors. Additionally, I attempted to implement zoom control myself using the UVC protocol in Swift . However, it seems that the zoom control commands are not successfully sent or recognized by the camera. Questions: Why would the prebuilt app work, but the same source code built locally results in disabled zoom controls? Are there known limitations on sending zoom control requests via USB on macOS? Is there a recommended modern approach for controlling optical zoom programmatically via Swift? Any insight
Replies
1
Boosts
0
Views
35
Activity
Apr ’26
Reply to How to recreate Apple Music mini player transition in SwiftUI
Hello @sheikhbayazid This is a great start! While we are unable to share exactly how Apple achieved this in the Music app, you might still find the following helpful: [quote='820932021, sheikhbayazid, /thread/820932, /profile/sheikhbayazid'] Should this be a custom container instead of fullScreenCover? [/quote] You might be looking for a sheet. Users can swipe down to dismiss a sheet interactively by default. .fullScreenCover has no built-in-swipe-to-dismiss, you must provide an explicit mechanism, like a dismiss button. For more information on Sheets see https://developer.apple.com/design/human-interface-guidelines/sheets [quote='820932021, sheikhbayazid, /thread/820932, /profile/sheikhbayazid'] How would you support both new and older iOS versions? [/quote] Configure the Xcode project to support the intended lowest OS version, then use conditionals to handle differences between iOS versions with availability checks such as #available if #available(iOS 18.0, *) { // Content in iOS 18.0 and later } e
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’26
Reply to Clipboard issues with simulators
@Jaanus Thanks for providing this. Do you have a FB open? Would you be able to upload the sysdiagnose as you said you have a macOS 26.4 with Xcode 26.5 and running a 26.5 simulator? Thanks for this!! Albert Pascual
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
Apr ’26
Reply to Xcode 26.4: Regressions in Intelligence features
Regarding the OAuth issue, I believe I need to sign in again if I switch Xcode versions. For example, I signed in with Xcode 26.4 to use Claude agent, but when I switched to Xcode 26.5 and tried to use the agent again. Xcode will show the authentication failure message. Failed to authenticate. API Error: 401 {type:error,error:{type:authentication_error,message:OAuth token has expired. Please obtain a new token or refresh your existing token.},request_id:req_011hoAXioU8pMsLnmS3c}
Replies
Boosts
Views
Activity
Apr ’26
Reply to Xcode now hangs; SDKs are "status unavailable"
The latest Xcode Beta does not work either. Hangs almost immediately.
Replies
Boosts
Views
Activity
Apr ’26
Reply to Xcode 26.4: Regressions in Intelligence features
I started testing with 26.5 beta 1 and now the outputs are more 'friendly', but the Claude authentication problem is still there. My guess is that when updating the Claude SDK something changed and Xcode didn't keep up, because with Xcode 26.3 on an older version of the SDK everything was fine.
Replies
Boosts
Views
Activity
Apr ’26
Reply to Entitlement values for the Enhanced Security and the Additional Runtime Platform Restrictions
I have the same issue now after Xcode 26.4 has been released and changed these entitlements. My apps have been rejected with the following: Entitlement com.apple.security.hardened-process.enhanced-security-version-string value must be boolean and true. Entitlement com.apple.security.hardened-process.platform-restrictions-string value must be boolean and true. It seems to be the same problem where the App Review automated system hasn't been updated to accept the new entitlements even though Xcode 26.4 has been out for more than a week now. I've raised FB22387339 for this.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’26
Reply to NEAppProxyUDPFlow.writeDatagrams fails with "The datagram was too large" on macOS 15.x, macOS 26.x
Hi Quinn, I have an additional clarification about the logs from the target Mac, now that I’ve instrumented the code more precisely. On this machine I actually see two different behaviours for NEAppProxyUDPFlow.writeDatagrams: In the main DNS path (NEDNSProxyProvider → NEAppProxyUDPFlow → TCP upstream via SwiftNIO), writeDatagrams always fails with The datagram was too large, even for very small responses (for example 33, 50, 66, 67, 147, 193 bytes). The only writeDatagrams OK entries I see in the logs come from a separate passthrough handler that talks directly to a fallback DNS server (8.8.8.8) and uses a different code path. So, for the specific flow we are discussing (the proxy that forwards DNS over TCP to our upstream and then sends the response back to the client), writeDatagrams never succeeds on this Mac: every attempt ends with The datagram was too large, regardless of the actual payload size. This seems to match what you described about the subtle differences between endpoint type
Replies
Boosts
Views
Activity
Apr ’26
Network Extension "Signature check failed" after archive with Developer ID — works in Xcode debug
I have a macOS VPN app with a Network Extension (packet tunnel provider) distributed outside the App Store via Developer ID. Everything works perfectly when running from Xcode. After archiving and exporting for Developer ID distribution, the extension launches but immediately gets killed by nesessionmanager. The error: Signature check failed: code failed to satisfy specified code requirement(s) followed by: started with PID 0 status changed to disconnected, last stop reason Plugin failed What makes this interesting: the extension process does launch. AMFI approves it, taskgated-helper validates the provisioning profile and says allowing entitlement(s) due to provisioning profile, the sandbox is applied, PacketTunnelProvider is created — but then Apple's Security framework internally fails the designated requirement check and nesessionmanager kills the session. Key log sequence: taskgated-helper: Checking profile: Developer ID - MacOS WireGuardExtension taskgated-helper: allowing entitlement(s) for co
Replies
3
Boosts
0
Views
228
Activity
Apr ’26
Reply to App Crash with mxSignpost function not found
[quote='882538022, AlexPan19920718, /thread/820969?answerId=882538022#882538022, /profile/AlexPan19920718'] FB: FB22384135 [/quote] Thanks for filing that. I took a look at Xcode 26.5b1 and it still seems to have the problem )-: Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’26
Xcode 26.4 is missing the documentation for Foundation
Upgraded to Tahoe 26.4 and Xcode 26.4 and realized Xcode is missing the documentation for Foundation. Occasionally, if other (not yet missing) documentation references a Foundation entity, such as a type, clicking on it may open in a web browser pointing to the externally hosted Apple documentation. Anyone else experiencing this or have a workaround (perhaps the documentation files are on disk but were somehow lost / disconnected from the Xcode doc browser)? I checked the release notes for 26.4 and for 26.3 but did not find a mention of anything like that. Filed an issue with Apple, please do too if you are affected so hopefully it will see some love and lead to restoring the documentation. Edited: found some possibly related files in my ~/Library and the newer version v302 (26.4 related, I think, is considerably smaller): du -sh ~/Library/Developer/Xcode/DocumentationCache/* | awk -F/ '{print $NF t $1}' v296 1.0G v302 507M
Replies
5
Boosts
0
Views
397
Activity
Apr ’26
Reply to Xcode 26.4 is missing the documentation for Foundation
[quote='882565022, nckh, /thread/820929?answerId=882565022#882565022, /profile/nckh'] Seems to be fixed in Xcode 26.5 beta 1 :) [/quote] Yay! Thanks for the heads up, and also for testing with Apple’s beta seeds. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Apr ’26
IPhone fails to connect with Xcode in presence of multiple WebContentFilters
I am facing an intermittent problem where iPhones are failing to pair/connect with Xcode under Xcode -> Windows -> Devices and Simulators. This happens when more than one web content filters are present, for instance, I have my web content filter (FilterSockets true, FilterGrade Firewall) and there is also Sentinel One web content filter with same configuration. Note: We are not blocking any flow from remoted / remotepairingd / core device service / MDRemoteServiceSupport etc processes. But they do get paused and resumed at times for our internal traffic verification logic. So, we are trying to understand what impact our content filter may be having on this iPhone Pairing?? If we stop either one of the filters the problem goes away. I have tracked the network traffic to the phone, and it seems to be using a ethernet interface (en5/en10) over the USB-C cable. I can see endpoints like this: localEndpoint = fe80::7:afff:fea1:edb8%en5.54442 remoteEndpoint = fe80::7:afff:fea1:ed47%en5.49813
Replies
1
Boosts
0
Views
117
Activity
Apr ’26
Reply to IPhone fails to connect with Xcode in presence of multiple WebContentFilters
I want to start by pointing you at TN3158 Resolving Xcode 15 device connection issues. This provides general background and one critical data point, namely, it shows how to identify the direct link interfaces used by Xcode. [quote='821229021, tathac, /thread/821229, /profile/tathac'] I have my web content filter … and there is also SentinelOne web content filter with same configuration. [/quote] I’m presuming that this SentinelOne filter isn’t something you have direct control over. Given that, my advice is that you remove it from the equation and replace it with a placeholder content filter that you do control. This gives you full control over the (non-Apple) bits of the stack. That’ll tell you whether this issue is fundamental to having two content filters installed, or whether there’s something specific about the SentinelOne filter that’s triggering the issue. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Apr ’26
Reply to Clipboard issues with simulators
For me, the issue is NOT resolved in Xcode 26.5 beta. I downloaded it and created a 26.5 simulator, but I can NOT paste into it from macOS 26.4 host.
Replies
Boosts
Views
Activity
Apr ’26