Hi Anyone had luck to make EnergyKit work yet? Using Xcode 26 (latest beta), physical iPhone with the latest iOS26 beta.
Search results for
xcode github
91,974 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
And isn't the whole point of the bindings, that all views get refreshed automatically? Yes, it is. Changing a binding triggers an update on the views that render with the binding. How is updating that value changing the result sets of my queries? Oh, I assumed that changing the transaction would impact the result set of your queries in some way. I can be wrong though, especially with another look into your predicates. You can check if your query does a fetch every time your SwiftUI view updates by adding -com.apple.CoreData.SQLDebug 1 to your launch argument list, as described here, and looking into the Xcode console log. If you can provide a runnable minimal project that demonstrates the issue, I'd interested in taking a look as well. Best, —— Ziqiao Chen Worldwide Developer Relations.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Using Xcode v26 Beta 6 on macOS v26 Beta 25a5349a When pressing on the home button of the visionOS simulator, I am not positioned in the middle of the room like would normally be. This occurred when moving a lot in the space to find an element added to an ImmersiveSpace. How to resolve: restart simulator device. See attached the pictures of the visionOSSimulatorCorrectHomePosition and the visionOSSimulatorMisallignedHomePosition.
I pasted what ends up being too much log into the coding assistant and now every time I open up xcode and go to the AI coding panel it just runs until there's no system ram left. Is there a way to clear the cache and get rid of all of the data in the coding assistance so I can open the project again and use the coding assistant. Thanks, Rob
Topic:
Developer Tools & Services
SubTopic:
Xcode
PLATFORM AND VERSION iOS Development environment: Xcode 16, macOS 15.0.1 Run-time configuration: iOS 18.1 DESCRIPTION OF THE PROBLEM I am experiencing inconsistent behaviour in SwiftUI when attempting to hide the status bar programmatically. Specifically, I want the status bar to be hidden only during the AreaQuizView, but the behaviour is not persistent across different views. On some views, the status bar hides correctly, while on others, it does not. I am using .statusBarHidden() to achieve this. STEPS TO REPRODUCE In AreasView, apply .statusBarHidden() to the outermost VStack. The status bar hides as expected. In AreaQuizView, apply the same .statusBarHidden() to the outermost stack. However, in this view, the status bar remains visible. In the Build Targets, if I set Status bar is initially hidden to YES in the info.plist, I lose control over the status bar entirely. EXPECTED BEHAVIOUR I would expect that .statusBarHidden() would behave consistently across all views, allowing me to programmatica
I'm getting this problem too. In settings, it's showing ChatGPT Plus, and I've tried logging off and on again as well as restarting Xcode. Still getting the error. Has anyone got around this?
Topic:
Developer Tools & Services
SubTopic:
Xcode
The home AppIcon appears as it should but in settings I get the generic icon. I tried: giving the extension its own assets and AppIcon asset. giving the main app assets 2 targets, itself AND the extension setting AppIcon appearances to none and iOS all sizes and providing 29pt and the other sizes. Adding to info.plist and specifying CFBundleIconFiles Yes, nuked derived data, switched off phone, everything. Starting with just the standard 1024×1024 AppIcon (expecting Xcode to auto-generate all slices, including 29pt for Settings). It didn’t — Settings still shows the generic gear. Question: What should I do to make the extension’s icon show up in Settings? Environment • Xcode: 16.4 (16F6) • iOS: 18.5 (device) • Targets: iOS app + Call Directory extension • App icon pipeline: asset catalog (single-size initially, now legacy grid)
Hi I'm using Xcode 16.4 on a Mac mini m4 so please let's not get in the weeds about latest this or that for software, etc... I'm trying to move one of the tab bar items in the controller, the home item, the the far left and I can grab it and drag it but it won't drop anywhere except where it exists. the other items won't move either. I've googled this and not finding anything stating you have to do a key combo, etc... which I've tried the command, option and control keys each with the dragging. Also the ability to actually select and item to drag it is extremely inconsistent, sometimes it grabs it and most of the time it doesn't. do I need to just delete the connectors and add them back in the proper order? is that really the solution here?
Sorry for omitting these details in my original post. PLATFORM AND VERSION iOS Development environment: Xcode Version 16.4 (16F6), macOS 15.5 (24F74) Run-time configuration: iOS 18.5 CURRENT BEHAVIOR When I tap Add Friends from my iOS app it generates a unique token and to be shares via Universal Link and displays the share sheet for me to select how I want to share this. https://www.strike-force.app/invite?token=781E1E89-BEAC-4C5C-B3F1-2EC916566D2C This is in dev when I build from XCode. If I perform this action from TestFlight, the button is unresponsive. I assume it's because of the errors below. Cannot issue sandbox extension for URL:https://www.strike-force.app/invite?token=781E1E89-BEAC-4C5C-B3F1-2EC916566D2C App is being debugged, do not track this hang Hang detected: 0.37s (debugger attached, not reporting) Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 Client not entitled UserInfo={RBSEntitlement=com.apple.runningboard.proc
Topic:
Code Signing
SubTopic:
Entitlements
Tags:
Overview of Issue My implementation of HealthKit is no longer able to read values due to authorization issues (ex. HealthKitService: Not authorized to read HKQuantityTypeIdentifierHeight. Status: 0). I have been through every conceivable debugging step including building a minimal project that just requests HealthKit data and the issue has persisted. I've tried my personal as well as Organizational developer teams. My MacOS and Mac Mini. Simulator and personal device. Rechecked entitlements, reprovisioned certificates. This makes no sense. And I have been unable to find anything similar in the Developer forums or documentation. The problem occurs during the onboarding flow when the app requests HealthKit permissions. Even when the user grants permission in the HealthKit authorization sheet, the authorizationStatus for characteristic data types (like Biological s3x and Date of Birth) and quantity data types (like Height and Weight) consistently returns as .sharingDenied. This prevents the app from pre-filling
I am trying to send an anonymous XPC listener endpoint to my daemon from user context in order to be able to do some bidirectional XPC. I was trying to use the new XPCListener and XPCSession objects and the easiest method I figured was using the Codable version of the send() methods, in which I wanted to send the XPCEndpoint object - alongside the name of the anonymous endpoint (because I want to have more XPCEndpoints sent over, so I want to be able to identify them. However, trying to manually encode XPCEndpoint throws an exception: ERROR: Missing CodingUserInfoKey CodingUserInfoKey(rawValue: _XPCCodable) Here is a simple command-line tool reproducing the issue: import Foundation import XPC let listener = try XPCListener(service: mach-service.xxx.yyy, incomingSessionHandler: { $0.accept(incomingMessageHandler: { (msg: XPCReceivedMessage) in return nil }) }) var endpoint = listener.endpoint do { let endpointData = try JSONEncoder().encode(endpoint) print(EndpointData object: (endpointData.count) bytes) } cat
problem fixed, I duplicated the directory the project was in and then added to the dir name. AI Helper must tag information with the directory so as to not confuse projects. Back and ready to break other things. Still can't open the original project and then open the AI tab but maybe someone from Xcode will let me know where their data is to clean up. Warp tried a number of things even watching file access to no avail. I did not try opening console and looking there but other ideas would be interesting to try.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello, I'm unable to run any test cases in Xcode 16 with the iOS 18 simulator. Steps to Reproduce: Create a new iOS project in Xcode 16 using the default iOS app template with the testing option checked. Run any test or UI test case by clicking the Play icon in the Test navigator. Xcode gets stuck at the Testing state indefinitely. Environment: macOS 15 beta 8 Xcode 16 beta 6 iOS 18 beta 7 simulator
RESOLVED: I used Realm database. After the app creates any FIFO file, the simulator can no longer be cloned. An error occurs during the simulator data copy process, indicating a lack of permission to copy FIFO files. This cloning failure prevents Xcode from launching tests properly. A simple way to reproduce this issue is to create a new iOS app, add a Realm database, and create any database file (since Realm creates FIFO files for interprocess communication). After that, the simulator can no longer be cloned. To work around this issue, I wrote a script that removes all pipe files from the simulator directory.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
[quote='856490022, MasterYourSelf, /thread/798872?answerId=856490022#856490022, /profile/MasterYourSelf'] I am thinking of the following kind of project/folder structure [/quote] The Xcode structure isn’t all that important. What matters is the on-disk structure. And in the second approach the on-disk structure is exactly what you get if you create an app from the macOS > App template and then add a macOS > System Extension > Network Extension target to it, that is: Test798872.app/ Contents/ Library/ SystemExtensions/ com.example.apple-samplecode.Test798872.MyNESysex.systemextension/ … standard sysex stuff … … standard app stuff … From the on-disk structure, the only indication that your sysex hosts multiple providers is: The com.apple.developer.networking.networkextension entitlement, on both the app and the sysex, must list each provider type. The contents of the NEProviderClasses property in the sysex’s Info.plist must list the classes for each provider type. [quote='856490022, MasterYour
Topic:
App & System Services
SubTopic:
Networking
Tags: