Posts under Developer Tools & Services topic

Post

Replies

Boosts

Views

Activity

A Summary of the WWDC25 Group Lab - Developer Tools
At WWDC25 we launched a new type of Lab event for the developer community - Group Labs. A Group Lab is a panel Q&A designed for a large audience of developers. Group Labs are a unique opportunity for the community to submit questions directly to a panel of Apple engineers and designers. Here are the highlights from the WWDC25 Group Lab for Developer Tools. Will my project codebase be used for training when I use Xcode's intelligent assistant powered by cloud-based models? When using ChatGPT without logging in, your data will not be used to improve any models. If you log in to a ChatGPT account, this is based on your ChatGPT account settings, which allows you to opt-out (it defaults to on). When using Xcode with accounts for other model providers, you should check with the policies of your provider. And finally, at no point will any portion of your codebase be used to train or improve any Apple models. We'd love to make our SwiftUI Previews (and soon, Playgrounds) as snappy as possible. Is there any way to skip certain build steps, such as running linters? It seems the build environment is exactly the same (compared to a debug build), but maybe there's a trick. Starting with Xcode 16, SwiftUI previews use the exact same build artifacts as the regular build. The new Playgrounds support in Xcode 26 uses these build artifacts too. Shell script build phases are the most common thing that introduces extra build time, so as a first step, try turning off all shell script build phases (like linters) to get an idea if that’s the issue. If those build phases add significant time to your build, consider moving some of those phases into asynchronous steps, such as running linters before committing instead of on every build. If you do need a shell script build phase to run during your build, make sure to explicitly define the input and output files, as that is a huge way to improve your build performance. Are we able to provide additional context for the models, like coding standards? Documentation for third party dependencies? Documentation on your own codebase that explains things like architecture and more? In general, Xcode will automatically search for the right context based on the question and the evolving answer, as the model can interact multiple times with your project as it develops an answer. This will automatically pick up the coding style of the code it sees, and can include files that contain architecture comments, etc. Beyond automatic context, you can manually attach other documents, even if they aren't in your project. For example, you could make a file with rules and ideas and attach it, and it will influence the response. We are very aware of other kinds of automatic context like rule files, etc, though Xcode does not support these at this time. Once ChatGPT is enabled for Coding Intelligence in Xcode 26, and I sign into my existing ChatGPT account, will the ChatGPT Coding Intelligence model in Xcode know about chat conversations on Xcode development done previously in the ChatGPT Mac app? Xcode does not use information from other conversations, and conversations started in Xcode are not accessible in the web UI or ChatGPT app. Is there a plan to make SwiftUI views easier to locate and understand in the view hierarchy like UIKit views? SwiftUI uses a declarative paradigm to define your user interface. That allows you to specify what you want, with the system translating that into an efficient representation at runtime. Unlike traditional AppKit and UIKit, seeing the runtime representation of SwiftUI views isn't sufficient in order to understand why it's not doing what you want. This year, we introduced a SwiftUI Instrument that shows why things are happening, like view re-rendering. Is it possible to use the AI chat with ChatGPT Enterprise? My company doesn't allow us to use the general ChatGPT, only the enterprise version they have setup that prevents data from being leaked Yes, Xcode 26 supports logging into any existing ChatGPT account, including enterprise accounts. If that does not meet your needs, you can also setup a local server that implements the popular chat completions REST API to talk to your enterprise account how you need. Now that Icon Composer is here, how does it complement or replace existing vector design tools such as Sketch for icon design? Icon Composer complements your existing vector design tools. You should continue to create your shapes, gradients, and layers in another tool like Sketch, and compose the exported SVG layers in Icon Composer. Once you bring your layers into Icon Composer, you can then use it to influence the translucency, blur, and specular highlights for your icon. What’s one feature or improvement in the new Xcode that you personally think developers will love, but might not immediately discover? Maybe something tucked away or quietly powerful that’s flown under the radar so far? One feature we're particularly excited about is the new power profiler for iOS, which gives you further insights into the energy consumption of your app beyond what was possible with the energy instrument previously. You can learn more about how to use this instrument and how it can help you greatly reduce your apps battery usage in the documentation, as well as the session Profile and optimize power usage in your app. There were also improvements in accessibility this year with Voice Control, where you can naturally speak your Swift code to Xcode, and it understands the Swift syntax as you speak. To see it in action, take a look at the demonstration in What’s new in Xcode 26. We have a software advisory council that is very sensitive to having our private information going to the cloud in any form. What information do you have to help me guide Xcode and Apple Intelligence through the acceptance process? One thing you can do is configure a proxy for your enterprise that implementing the popular Chat Completions API endpoint protocol. When using a model provider via URL, you can use your proxy endpoint to inspect the network traffic for anything that you do not want sent outside of your enterprise, and then forward the traffic through the proxy to your chosen model provider. Are there list of recommended LLMs to use with Xcode via Intelligence/Local? I've tried Gemma3-12B, but.. I hope there are better options? Apple doesn't have a published list of recommended local models. This is a fast-moving space, and so a recommendation would become out of date very quickly as new models are released. We encourage you to try out the local model support in Xcode 26 with models that you find meet your needs, and let us and the community know! (continued below)
1
0
523
Jul ’25
Xcode 16 Error AppShortcut phrases may have at most one parameter
I suppose this is a bug in compiler. Xcode 16.0 (16A242d) - AppStore release version When building a project from Xcode 15 in Xcode 16, an error occurs: appintentsmetadataprocessor[12633:13677489] error: At least one halting error produced during export. No AppIntents metadata have been exported and this target is not usable with AppIntents until errors are resolved. AppShortcut phrases may have at most one parameter, but found phrase, "Set Dark Mode ${darkMode} for Widget ${widget}" with more than one parameter: darkMode, widget Apparently this is an Xcode bug because I have a production app with this AppShortcut and it works fine in Apple Shortcuts. Everything is made according to the official WWDC video about AppShortcuts https://developer.apple.com/videos/play/wwdc2022/10170
0
1
612
Sep ’24
Not able to inspect react native drop down element in iOS
Am trying to automate below drop down but iOS Accessibility inspector is unable to detect the element. Even we tried with Appium Inspector issue is same. Drop down: https://www.npmjs.com/package/react-native-element-dropdown We tried to debug the dropdown component. In that we can see the value is rendered properly from react. We have raised the issue with Appium, but they have given few suggestions in the Appium setting but it didn't solve. Now it's something that has to be done from XCTest Framework end. Appium issue git link: https://github.com/appium/appium/issues/14825
0
0
349
Sep ’24
Simple Xcode CLI/Swift project reflects nothing on change
Once I start a new project everything seems fine and the first commit is always successful. Once I change one of the parameters e.g. set TimeInterval = 6 any consequent run would do absolutely nothing, the only thing I can do is switch back to the old value or start a new project with the new values. I'm currently stuck, anything could help, thanks! import Foundation import CoreGraphics // A helper function to move the cursor smoothly from one coordinate to another. func moveCursor(from start: CGPoint, to end: CGPoint, duration: TimeInterval) { let steps = 100 // Number of steps for smoothness let delay = duration / TimeInterval(steps) // Time delay between each step for i in 0...steps { let progress = Double(i) / Double(steps) // Interpolating X and Y coordinates based on progress (linear interpolation) let newX = start.x + CGFloat(progress) * (end.x - start.x) let newY = start.y + CGFloat(progress) * (end.y - start.y) // Move the cursor let point = CGPoint(x: newX, y: newY) moveCursor(to: point) // Sleep for a short time to create a smooth movement usleep(useconds_t(delay * 1_000_000)) // usleep takes microseconds } } // Function to set the cursor position using CGEvent func moveCursor(to point: CGPoint) { let moveEvent = CGEvent(mouseEventSource: nil, mouseType: .mouseMoved, mouseCursorPosition: point, mouseButton: .left) moveEvent?.post(tap: .cghidEventTap) } // Main function to take multiple coordinates and move between them func moveCursorAlongPath(coords: [CGPoint], totalTime: TimeInterval) { guard coords.count > 1 else { return } let segmentTime = totalTime / TimeInterval(coords.count - 1) // Split time between segments for i in 0..<(coords.count - 1) { let start = coords[i] let end = coords[i + 1] moveCursor(from: start, to: end, duration: segmentTime) } } // Example usage: // Coordinates you want to move between let coordinates: [CGPoint] = [CGPoint(x: 100, y: 100), CGPoint(x: 400, y: 400), CGPoint(x: 800, y: 200)] let totalDuration: TimeInterval = 5 // Total duration in seconds // Move the cursor smoothly along the path moveCursorAlongPath(coords: coordinates, totalTime: totalDuration)``` ![]("https://developer.apple.com/forums/content/attachment/4482329e-42fd-423e-9f4c-860558eeef80" "title=Screenshot 2024-10-09 at 09.29.44.png;width=642;height=331")
0
0
164
Oct ’24
Unable to run Xcode on my iPhone
I have enabled Developer mode on the iPhone and paired my device. I see it as an option on Xcode, but I am unable to run any simulations on my device. When I go into Settings->General->VPN & Device Management, I only see an option for VPN, not for my Mac. What do I need to do to be able to run my app on my iPhone? Thank you
0
0
154
Oct ’24
No option for phone call
Hello, I'm trying to register my company on a developer account, we are a school and we made an app for our students. I went through several steps where I uploaded several documents regarding myself and my company. Now I'm stuck on the step where apple needs to contact my reference (CEO) in the company so they can approve I have authorization to legally bind my company to apple developer program. He wasn't contacted in any way by apple, and now it's asking me to use the phone call option to contact apple, but I don't have a phone call option, I have tried it from the account I'm trying to enroll during work hours. Do I maybe need to make a new apple account registered on my CEOs name and email since he doesn't have an apple account?
0
0
195
Oct ’24
Xcode | how to debug with iPhone in LAN
We're developing iOS apps on Xcode. Because of the rules, **our computers can't get online or connect to real devices through USB. ** But we can connect to the internal cloud real-device platform through the internal network. The cloud real-device platform is actually some centrally managed iPhones or iPads (not through simple Wi-Fi but a wired network). We can now remotely operate these phones for testing (though there's quite a lot of lag), but for development, we hope to be able to use these phones for debugging, like ADB. That would improve efficiency a lot. According to the feedback, the lower versions of Xcode and phones can achieve this function through USBMuxD, but for iOS 17, Xcode 15 and the newer versions, it can't be done for now. Here are two questions: Is there a management plan for iPhone cloud real devices? We hope to be able to use the cloud real devices smoothly in the local area network. Is there a plan for Xcode to debug real devices through the local area network instead of relying on Wi-Fi? Thanks
0
0
364
Oct ’24
Playgrounds issue: Has to reload the puzzle every time we test code
Hi! I have a remote student who's learning to code in Swift using Playgrounds - Learn to Code 2. It's frustrating to try to test his code when we think he as part of a solution to a puzzle because he can't run his code twice in the same puzzle without resetting the puzzle - when he tries, the page gives an error, and he has to reload the whole puzzle, which erases his code. As a workaround, he's been copying his code and reloading the puzzle whenever he wants to test out a partial solution. Is there an easier way to do this?
0
0
478
Sep ’24
Downloading Xcode 16.0 related runtimes on CI
I'm trying to get our CI working to build our own machine image AMI descriptions. Part of that is to download the correct runtime versions so that we can pre-create the simulators we use for testing on these machine image descriptions. When running the code like xcodebuild -downloadPlatform <platform> -exportPath "$<temp_folder_path>" Locally I get a result and download a runtime, but on CI I just get All available platforms are downloaded. Why is this message happening and how can I specify specific platforms to download over CI to configure our machine setup?
0
0
305
Oct ’24
MULTIPLE problems with XCode
I am encountering multiple problems deploying an app using Xcode. First, I could not install Xcode from the App Store. I tried multiple times, rebooting etc. Finally I found a link to download an xip file from the developer site and unzip it. That worked. It took 2 hours. Now I'm trying to build my app. I get a message saying IOS 18.1 not installed. I try clicking on it an select Manage Run Destinations. It brings me to the Devices popup screen but I am unable to select anything. I tried setting up a Simulator as well. Still unable to select a desitiation. So then I tried updating my IPAd to IOS 18.1 thinking that might help. Big mistake. First I got a message saying some library were incompatible. Now I have a message saying Unknown Error. Disconnect and reconnect cables which I have done multiple times. This of course includes multiple times of clicking trust this device, then entering device password, then entering the auth code. They don't make it easy. I tried clicking the Get for IOS 18.1. I really don't want to update my machine to this. I'm actually using a friend's MAC. When I did this it tells me it requires 8gb and I don't have enough disk space. But I do have 20gb available. So about 4 hours of trying and nothing works. Two hours to install Xcode, can't select a different destination, can't connect my IPAd anymore, can't download the update. Not even sure why the device or destination is necessary. It's not necessary to build the same app for Android. I had similar issues with XCode in my initial attempts just to get the app signed until I figured out that I needed to have a device attached for the provisioning to work. That took days including trying to find a UDID from ITunes(???) and other wild goose chases. That makes no sense whatsoever. Now I can't even do that. So I guess my question is/are: Do I have a new buggy version of XCode and if so, how do I get a previous one? How do I select a different destination? How do I get past the IOS 18.1 requirement? How do I download IOS 18.1 if that's what I decide to do? How do I connect my IPad? Can I go back to previous OS on IPad if 18.1 doesn't work with XCode? How do I do certificate provisioning if I can't connect my IPad? Other than that everything works great.
0
0
397
Oct ’24
The iPhone needs to be prepared for development, and development services need to be enabled.
I downloaded a program from Stanford University and am trying to get it to work on my iPhone. The program works on my computer, but when I try to upload it to the App Store, I get all sorts of errors. I am running Xcode 16 on a Max Studio. When I run the compiler, I get a message: “The iPhone needs to be prepared for development, and development services need to be enabled. Ensure that the device is unlocked.” I am confused by the term “unlocked.” Is the message referring to a lock by carrier or an on-device lock? How do I enable development services? -Merwyn
0
1
954
Sep ’24
Apple Developer Organisation Account
I did enrollment but when I get to purchasing it cannot proceed further, I wait up to 2 business days every time and nothing happens. I didn't get any help from support about this. My enrollment lasts about 30 days now. I'm not sure what is happening. Also there is no option to cancel it and to switch to individual account, because now I don't even matter about the type, because I need app to be published on App Store. Can someone please help? What I can do to resolve this?
0
0
202
Oct ’24