Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Created

Storefront.current?.countryCode returns inconsistent values in TestFlight builds
Hi, We're experiencing inconsistent and unexpected values returned by Storefront.current?.countryCode when running our app via TestFlight. In our case: The device region and locale are set to Poland The App Store account (Media & Purchases) is also set to Poland However, when running a TestFlight build, Storefront.current?.countryCode sometimes returns a completely different value (e.g. "NO" for Norway), which does not match the current App Store account configuration. Here's the code we're using: if #available(iOS 15.0, *) { let code = await Storefront.current?.countryCode print("Storefront countryCode:", code ?? "nil") } What's particularly confusing: Across different devices logged into the same App Store account, we sometimes receive different countryCode values The returned value does not seem to reflect the current App Store region or device settings We understand that Storefront reflects the App Store storefront and not the device locale, but in this case the value appears stale or incorrect even with a properly configured App Store account. Questions: Is Storefront.current?.countryCode expected to behave differently in TestFlight vs. production builds? Are there known caching or propagation delays for storefront updates across devices? Can TestFlight builds return outdated or inconsistent storefront values? What is the recommended way to reliably determine the user's App Store region in this scenario? We rely on storefront to determine regional availability of features, so understanding this behavior is important for us. Thanks in advance for any clarification!
1
0
94
1w
Xcode 26 Is a Productivity Killer: Removes Option To Open Files in New Window Tab
FB19249805 Main: The option to open files in New Window Tab doesn't appear anywhere in either Preferences or the contextual menu on clicking the files in the project (unlike previous Xcode versions). Only the option to open in New Tab is available (which is useless). This BREAKS EXISTING WORKFLOWS that have been established through years for countless developers. I can only see the option to open in New Tab, which breaks all existing workflows and habits. This results in an astonishing blow to productivity. Dear Xcode team: Please restore this option immediately! Additional details: Several years ago (I've been using Xcode since version 2), Xcode renamed the normal tabs into "Window Tabs" and introduced new "Tabs". The new "Tabs" proved to be a useless and counterproductive option for the following reasons: -They cannot be used in Behaviors. (Only Window Tabs can be, and many workflows have been built around this.) -It takes much longer to load a file into a Tab than into a Window Tab (where files are loaded nearly instantly). -Navigators and Inspectors cannot be customized for individual Tabs (only for Window Tabs). -Using both Tabs and Window Tabs is not an option, as it adds another tab bar that eats an enormous part of screen real estate without providing any benefits. Fortunately, we didn't have to use Tabs and could just disable them into oblivion where they belong. Now, in Xcode 26, the option to open files in new Window Tabs is gone. Really, I can only classify it as intentional sabotage. Many years of my Xcode habits and workflows are based on opening files in New Window Tabs via the Preferences > Navigation > With Option option. Or via the contextual menu. Now this option is gone. I'm sure there are plenty of other developers in the same situation. Please reenable the option to open in New Window Tabs. Thank you for your attention to this matter!
0
1
102
1w
Xcode 26.4.1: Another blow to productivity: the update resets all windows and tabs
FB22576466 Another update - another blow to developers' productivity from the Xcode team, and more time wasted. Xcode 26.4.1 reset all windows and tabs in all projects. All carefully set up window tabs in multiple projects, as well as the ones that were previously open, are gone. Developers now have to set them up manually again. Ok there's nothing that can be done in 26.4.1 already; the damage has already been done. But dear Xcode development team... just DON'T. DO. THIS. AGAIN. Please! Tanks.
0
0
40
1w
Previews crash after making change to Swift Package version
Previews seemed to be working okay. However, I wanted to test out some changes inside of a package that I'm working on for work, but in a lighter project since in our main project (where I have the package pulled in locally for now) is just too big to have the previews render in a decent amount of time. So, I opened a small project that was already importing that package and was set to 'Up to Next Major', but I switched that to 'branch' and added my branch. This is the second time I've done that and it causes Xcode to freak out in terms of the previews. This is the code I have: import SwiftUI extension EnvironmentValues { @Entry var trailingDescriptionColorToken: Color = .secondary } extension View { func updateTrailingDescriptionColor(to colorToken: Color, when trigger: Bool) -> some View { environment(\.trailingDescriptionColorToken, trigger ? colorToken : .secondary) } } // MARK: - ListItemDescription public struct ListItemDescription: View { @Environment(\.trailingDescriptionColorToken) var trailingDescriptionColorToken let description: String init(_ description: String) { self.description = description } public var body: some View { Text(description) .font(.caption) .foregroundStyle(trailingDescriptionColorToken) } } struct ContentView: View { @State private var isError = false var body: some View { VStack { Button("Error Trigger") { isError.toggle() } ListItemDescription("Description") .updateTrailingDescriptionColor(to: .red, when: isError) } .padding() } } #Preview { ContentView() } As soon as I tap the button to toggle the isError state property, that causes the preview canvas to indefinitely load and spin eventually leading to a crash. This is infuriating as I've just wasted a ton of time at work trying to figure out what's going on. Xcode and SPM is so fragile and delicate that at this point I feel like if I breathe on it wrong it'll break. I'm not sure what fixed it last time. Nothing in Xcode makes sense anymore. How to I resolve this please?
0
0
23
1w
Module dependency error
Hi everyone, yesterday i installed some package in my ios app , but i had a lot of problems to compile , due to reset my branch and get started from 0. My project have pods with firebase, lottie, instana and truskit but now, when a i try to run my project, xcode show "Unable to resolve module dependency" into LOTTIE, INSTANA, TRUSKIT, FIREBASE . I visited a lot of forums and websites, and i tried the followings steps: Pod deintegrate pod repoupdate pod install Clean build folder Delete derived data but isnot working. Also,I reinstalled xcode , 2 versions , i "re"clone my repository and the issue persist. Sorry, my english is basic only
0
0
36
1w
Using Xcode with Claude Opus 4.7
Has anyone got Xcode working with Opus 4.7? I have Claude Code running 4.7, but Xcode insists on running 4.6. Even working with Claude to try to configure Xcode doesn't work. Apparently Xcode does something that prevents using Opus 4.7. Any reason for this? Xcode has a really nice integration, but I guess It's bak to Terminal and Claude Code if I want to use the better Model. Anyone else got this working?
2
0
152
1w
Drag on a Canvas with XCUICoordinate.press(...)
I am trying to create a test case in XCTest using the UI Test target. I have a use case where I use a SwiftUI Canvas to draw a network graph; and the user can drag the graph on the Canvas. After the drag, the user may click on a node. The application presents a popup with the information about the network node clicked. SwiftUI provides the information required for the application to translate the location of the tap into the original location prior to the drag; and so the logic behind the popup can determine which node the network graph was tapped by the user. It appears that the distance of the drag operation performed does not match distance that the image actually moved. The drag distance is always larger than the actual distance dragged. I can observe this during the test execution. The arrow starts at the correct spot but then goes further than the object being dragged. I also observe this when I am driving the application. Is there some standard and supported way to determine the distance that the image on the screen was moved given a specific distance of the "thenDragTo:" coordinate?
2
0
60
1w
2 iPhones connected to mac, XCode doesnt recognize them
Hello together. Since a few weeks I have the problem, that both of my iPhones (iPhone 15 with iOS 26.4.1 and an iPhone Xs with iOS 18.7.4) are NOT recognized by xcode, but are visible in Mac Finder this is what xcode shows: When I click on that I see this: and in finder: I tried everyhting I re-installed XCode 5 times and deleted ALL XCode folders manually I restarted all devices and today I completely reinstalled my mac My Macbook has iOS 26.4.1 as well and XCode is freshly installed from App Store
1
0
57
1w
macOS app icons with Icon Composer
Getting macOS app icons from Icon Composer working in Xcode 26.x appears to have caused widespread confusion. I've certainly had more than one headache from it. Here's what works for me: Drag the .icon file from Icon Composer into the Xcode Project Navigator, dropping it at the same level as Assets.xcassets — not inside it. In the Project Navigator, click the top-level project item to open the Project Editor. Select your app target and open the App Icons and Launch Screen section. Enter the icon name (without the .icon extension) in the App Icon field. In that same section, leave App Icons Source unchecked. Go to the Build Phases tab and expand Copy Bundle Resources. Delete the Assets.xcassets entry, leaving only the .icon file. Clean the build folder (⇧⌘K) and run. Your icon should now appear in the Dock. It appears that Icon Composer icons and even the presence of the Asset Catalog icons in Copy Bundle Resources are mutually exclusive right now. Including the Asset Catalog appears to suppress the Icon Composer icon. Removing it lets the Icon Composer icon through. Note: If your app depends on other assets in the Asset Catalog, this approach won't work for you. In that case, fall back to the traditional method — export all required sizes from Icon Composer and import them into the Asset Catalog. Hopefully Apple addresses this conflict soon.
0
0
133
1w
Xcode JSON-RPC global stream failed error when using chatgpt codex.
Whenever I try and talk to chatgpt codex in Xcode, I get the request could not be completed error with this tag: JSON-RPC global stream failed: The operation couldn’t be completed. (IDEIntelligenceAgents.JSONRPCElement.Error error 1.) Chatgpt chat still works inside of xcode, however codex does not work. I have not hit my limit for codex. This issue happened after the xcode update. (I belive 26.4.1)
0
0
248
2w
Cannot Export Mac app from Xcode 26.4
Took app and selected Archive. Selected Direct Distribution. Process completed. I selected export app. Could not elect the app to export since it was greyed out. Queried on both google and Claudie. Followed all the instructions and there is still no joy. Worked fine yesterday.
3
0
101
2w
Xcode 26.4.1 simulator 16.0 bugs.
I cannot get a Jiggle on an iPhone 15 using the iOS 17.0 simulator. I cannot drag icons or widget around, only have the option to remove them. On both the iOS 17.0 and iOS 26.4 (running on an iPhone 17 simulator) There is nothing in my drawer for adding a widget, no system widgets either (attached screenshots). Just the Search Widgets bar that does have widgets in it. The system widgets are in the screen to the left of the home screen. I can put widgets I find through the search on the home screen. Although on the iOS 17 emulator no jiggle means no repositioning. May computer is running MacOS 25.4.1 and the latest versions of everything. I have asked AI, I have tried wipes, locking, unlocking, reseting, re-installing, light mode/ dark mode to refresh any cached images, trying to drag system widgets from the left side of the home screen, "a widget kit development mode option" in settings > developer on the iPhone and something using the command line for chronosd that never worked. The iPhone 17 simulator has been like this for a couple of weeks as that was when I started widget development. The iPhone 15 simulator was only downloaded and installed today. I only know there should be images on the "Widget Gallery" or "Widget Picker" from my son's iPhone Any help or suggestions would be appreciated, Thank you. iPhone 15 simulator running iOS 17.0 iPhone 17 simulator running iOS 26.4.1
0
0
87
2w
Claude Agent Error: API Error (claude-opus-4-6): 400 The provided model identifier is invalid.
I have been using Claude Agent with an Anthropic API Key in Xcode 26.3 for a while now. Recently it stopped working, giving me this error message: API Error (claude-opus-4-6): 400 The provided model identifier is invalid. I have tried relaunching Xcode, signing out and signing back in, changing the default model in the Claude configuration UI and nothing works. I've had to fall back on using the Claude Code CLI and the MCP server, which loses a lot of the value of Xcode/Claude integration.
0
0
43
2w
Unable to upload build – “No App Store Connect access for the team
Hello, I am experiencing an issue when trying to upload my app to App Store Connect via Xcode. I am the Account Holder and Admin of my Apple Developer account, and I can successfully log in to App Store Connect. My account appears correctly under “Users and Access” with full permissions. However, when attempting to distribute my app from Xcode (Product → Archive → Distribute App → App Store Connect), I consistently receive the following error: “App Store Connect access for ‘[my name]’ is required. Add an account in Accounts settings.” “No App Store Connect access for the team” I have already tried the following steps: Verified that my account has Account Holder / Admin role in App Store Connect Logged out and back into Xcode multiple times Removed and re-added my Apple ID in Xcode Restarted Xcode and my Mac Confirmed that my Apple Developer membership is active Checked that all Agreements, Tax, and Banking sections are completed Verified that Apple Distribution and Development certificates are created and valid Ensured the correct Team is selected in Signing & Capabilities Despite all this, the issue persists. It seems like Xcode is not correctly recognizing my App Store Connect access for the team. Could you please help investigate this issue or advise on how to resolve it? Thank you very much in advance.
0
0
70
2w
Claude Agent reverts to earlier version in Xcode 26.4.1
My Claude Agent component version was 2.1.81, it prompted me for an update the other day from the original release version 2.1.59. But now that I've installed Xcode 26.4.1 it's back to thinking 2.1.59 is the newest version. With every Xcode release it feels like there's a new regression or weird surprise with coding intelligence (26.4 was Claude losing its OAuth token every 8 hours or so). It really feels like this stuff needs more eyes on it. Filed as FB22529202
2
1
153
2w
Store Kit 2 iOS system purchase confirmation dialog not consistent.
I'm running into an issue where it appears the product transaction is being cached and not showing a new iOS system popup dialog to confirm the purchase. This is affecting testing, and I need a solution to have iOS issue a new purchase transaction every time. Here's what happens, I call the following which always succeeds. try await product.purchase(options: [.appAccountToken(appToken)]) I'm signed into a developer sandbox account with a resubscribe every 5 minutes. After cancelling a subscription, I attempt to resubscribe using the same code as above. Frequently, the code executes without iOS showing the popup system dialog to confirm the purchaser. After waiting a period of time, iOS then resets itself and allows me to purchase again. What I want is an option the forces the iOS system confirm purchase dialog to show up every time the code executes. How do I fix this? iOs 26.4.1, iPhone 17 Pro.
0
0
78
2w
Xcode 26.4 won't install simulators, just spins the beachball
Something happened with my Xcode 26.4 install, I've never had this happen before. I get Xcode 26.4 installed, but the simulators aren't installed. And nothing pops up to "install required simulators". In Devices & Simulators I click the + to install a new simulator, and the beachball just spins and Xcode becomes unresponsive. I've tried quitting and restarting Xcode, reinstalling it (using both xcodes command line tool and the app store), removing Xcode and reinstalling, rebooting after removing Xcode and before reinstalling. Not sure what to try next. Feels like something is left over from uninstalling that's hanging it up. But I've no idea what. I could use some Apple Xcode team help here.
3
0
66
2w
Xcode to play a Sound when a fault is logged
Hi I have an Xcode project in which I am logging (os log) some faults when an error occurs. While developing I would like to notice it when the fault occurs. Questions Are there are better approaches to be alerted (sound or other means) when a fault occurs? My attempts so far: Add fault log and filter for faults Add breakpoint and play sound when breakpoint encountered Disadvantages with fault filtering: Though I can filter for faults sometimes I often need to look at debug messages. Having a lot of debug messages I am lost, yes I can filter but might forget to do it during every build Disadvantages with breakpoints: Sometimes I tend to delete breakpoints and might accidentally delete this breakpoint to play a sound
0
0
48
2w
Icon Composer app icon appears correctly in Xcode/Composer, but App Store shows it inside a square tile
Hello, I created my app icon with Icon Composer and use the .icon file directly in my Xcode project. The preview in Icon Composer looks as expected, but the icon on the App Store has a different appearance. For reference: .icon file is used directly no separate background image was added background was set with fill in Icon Composer the difference appears on the App Store side Has anyone seen this before? I’m trying to understand whether this is related to App Store processing, caching, or Icon Composer background setup. I’ve attached: Any guidance would be appreciated.
0
0
75
2w
Storefront.current?.countryCode returns inconsistent values in TestFlight builds
Hi, We're experiencing inconsistent and unexpected values returned by Storefront.current?.countryCode when running our app via TestFlight. In our case: The device region and locale are set to Poland The App Store account (Media & Purchases) is also set to Poland However, when running a TestFlight build, Storefront.current?.countryCode sometimes returns a completely different value (e.g. "NO" for Norway), which does not match the current App Store account configuration. Here's the code we're using: if #available(iOS 15.0, *) { let code = await Storefront.current?.countryCode print("Storefront countryCode:", code ?? "nil") } What's particularly confusing: Across different devices logged into the same App Store account, we sometimes receive different countryCode values The returned value does not seem to reflect the current App Store region or device settings We understand that Storefront reflects the App Store storefront and not the device locale, but in this case the value appears stale or incorrect even with a properly configured App Store account. Questions: Is Storefront.current?.countryCode expected to behave differently in TestFlight vs. production builds? Are there known caching or propagation delays for storefront updates across devices? Can TestFlight builds return outdated or inconsistent storefront values? What is the recommended way to reliably determine the user's App Store region in this scenario? We rely on storefront to determine regional availability of features, so understanding this behavior is important for us. Thanks in advance for any clarification!
Replies
1
Boosts
0
Views
94
Activity
1w
Xcode 26 Is a Productivity Killer: Removes Option To Open Files in New Window Tab
FB19249805 Main: The option to open files in New Window Tab doesn't appear anywhere in either Preferences or the contextual menu on clicking the files in the project (unlike previous Xcode versions). Only the option to open in New Tab is available (which is useless). This BREAKS EXISTING WORKFLOWS that have been established through years for countless developers. I can only see the option to open in New Tab, which breaks all existing workflows and habits. This results in an astonishing blow to productivity. Dear Xcode team: Please restore this option immediately! Additional details: Several years ago (I've been using Xcode since version 2), Xcode renamed the normal tabs into "Window Tabs" and introduced new "Tabs". The new "Tabs" proved to be a useless and counterproductive option for the following reasons: -They cannot be used in Behaviors. (Only Window Tabs can be, and many workflows have been built around this.) -It takes much longer to load a file into a Tab than into a Window Tab (where files are loaded nearly instantly). -Navigators and Inspectors cannot be customized for individual Tabs (only for Window Tabs). -Using both Tabs and Window Tabs is not an option, as it adds another tab bar that eats an enormous part of screen real estate without providing any benefits. Fortunately, we didn't have to use Tabs and could just disable them into oblivion where they belong. Now, in Xcode 26, the option to open files in new Window Tabs is gone. Really, I can only classify it as intentional sabotage. Many years of my Xcode habits and workflows are based on opening files in New Window Tabs via the Preferences > Navigation > With Option option. Or via the contextual menu. Now this option is gone. I'm sure there are plenty of other developers in the same situation. Please reenable the option to open in New Window Tabs. Thank you for your attention to this matter!
Replies
0
Boosts
1
Views
102
Activity
1w
Xcode 26.4.1: Another blow to productivity: the update resets all windows and tabs
FB22576466 Another update - another blow to developers' productivity from the Xcode team, and more time wasted. Xcode 26.4.1 reset all windows and tabs in all projects. All carefully set up window tabs in multiple projects, as well as the ones that were previously open, are gone. Developers now have to set them up manually again. Ok there's nothing that can be done in 26.4.1 already; the damage has already been done. But dear Xcode development team... just DON'T. DO. THIS. AGAIN. Please! Tanks.
Replies
0
Boosts
0
Views
40
Activity
1w
Previews crash after making change to Swift Package version
Previews seemed to be working okay. However, I wanted to test out some changes inside of a package that I'm working on for work, but in a lighter project since in our main project (where I have the package pulled in locally for now) is just too big to have the previews render in a decent amount of time. So, I opened a small project that was already importing that package and was set to 'Up to Next Major', but I switched that to 'branch' and added my branch. This is the second time I've done that and it causes Xcode to freak out in terms of the previews. This is the code I have: import SwiftUI extension EnvironmentValues { @Entry var trailingDescriptionColorToken: Color = .secondary } extension View { func updateTrailingDescriptionColor(to colorToken: Color, when trigger: Bool) -> some View { environment(\.trailingDescriptionColorToken, trigger ? colorToken : .secondary) } } // MARK: - ListItemDescription public struct ListItemDescription: View { @Environment(\.trailingDescriptionColorToken) var trailingDescriptionColorToken let description: String init(_ description: String) { self.description = description } public var body: some View { Text(description) .font(.caption) .foregroundStyle(trailingDescriptionColorToken) } } struct ContentView: View { @State private var isError = false var body: some View { VStack { Button("Error Trigger") { isError.toggle() } ListItemDescription("Description") .updateTrailingDescriptionColor(to: .red, when: isError) } .padding() } } #Preview { ContentView() } As soon as I tap the button to toggle the isError state property, that causes the preview canvas to indefinitely load and spin eventually leading to a crash. This is infuriating as I've just wasted a ton of time at work trying to figure out what's going on. Xcode and SPM is so fragile and delicate that at this point I feel like if I breathe on it wrong it'll break. I'm not sure what fixed it last time. Nothing in Xcode makes sense anymore. How to I resolve this please?
Replies
0
Boosts
0
Views
23
Activity
1w
Module dependency error
Hi everyone, yesterday i installed some package in my ios app , but i had a lot of problems to compile , due to reset my branch and get started from 0. My project have pods with firebase, lottie, instana and truskit but now, when a i try to run my project, xcode show "Unable to resolve module dependency" into LOTTIE, INSTANA, TRUSKIT, FIREBASE . I visited a lot of forums and websites, and i tried the followings steps: Pod deintegrate pod repoupdate pod install Clean build folder Delete derived data but isnot working. Also,I reinstalled xcode , 2 versions , i "re"clone my repository and the issue persist. Sorry, my english is basic only
Replies
0
Boosts
0
Views
36
Activity
1w
RN IOS APP & WatchOS Companion
I already have a working iOS React Native app and I’m planning to add a watchOS companion app. Is it possible to keep the iOS app and the watchOS app in separate repositories? If so, will WatchConnectivity still work properly between them? Or is it recommended to keep both in a single Xcode project/repository?
Replies
1
Boosts
0
Views
84
Activity
1w
Using Xcode with Claude Opus 4.7
Has anyone got Xcode working with Opus 4.7? I have Claude Code running 4.7, but Xcode insists on running 4.6. Even working with Claude to try to configure Xcode doesn't work. Apparently Xcode does something that prevents using Opus 4.7. Any reason for this? Xcode has a really nice integration, but I guess It's bak to Terminal and Claude Code if I want to use the better Model. Anyone else got this working?
Replies
2
Boosts
0
Views
152
Activity
1w
Drag on a Canvas with XCUICoordinate.press(...)
I am trying to create a test case in XCTest using the UI Test target. I have a use case where I use a SwiftUI Canvas to draw a network graph; and the user can drag the graph on the Canvas. After the drag, the user may click on a node. The application presents a popup with the information about the network node clicked. SwiftUI provides the information required for the application to translate the location of the tap into the original location prior to the drag; and so the logic behind the popup can determine which node the network graph was tapped by the user. It appears that the distance of the drag operation performed does not match distance that the image actually moved. The drag distance is always larger than the actual distance dragged. I can observe this during the test execution. The arrow starts at the correct spot but then goes further than the object being dragged. I also observe this when I am driving the application. Is there some standard and supported way to determine the distance that the image on the screen was moved given a specific distance of the "thenDragTo:" coordinate?
Replies
2
Boosts
0
Views
60
Activity
1w
2 iPhones connected to mac, XCode doesnt recognize them
Hello together. Since a few weeks I have the problem, that both of my iPhones (iPhone 15 with iOS 26.4.1 and an iPhone Xs with iOS 18.7.4) are NOT recognized by xcode, but are visible in Mac Finder this is what xcode shows: When I click on that I see this: and in finder: I tried everyhting I re-installed XCode 5 times and deleted ALL XCode folders manually I restarted all devices and today I completely reinstalled my mac My Macbook has iOS 26.4.1 as well and XCode is freshly installed from App Store
Replies
1
Boosts
0
Views
57
Activity
1w
macOS app icons with Icon Composer
Getting macOS app icons from Icon Composer working in Xcode 26.x appears to have caused widespread confusion. I've certainly had more than one headache from it. Here's what works for me: Drag the .icon file from Icon Composer into the Xcode Project Navigator, dropping it at the same level as Assets.xcassets — not inside it. In the Project Navigator, click the top-level project item to open the Project Editor. Select your app target and open the App Icons and Launch Screen section. Enter the icon name (without the .icon extension) in the App Icon field. In that same section, leave App Icons Source unchecked. Go to the Build Phases tab and expand Copy Bundle Resources. Delete the Assets.xcassets entry, leaving only the .icon file. Clean the build folder (⇧⌘K) and run. Your icon should now appear in the Dock. It appears that Icon Composer icons and even the presence of the Asset Catalog icons in Copy Bundle Resources are mutually exclusive right now. Including the Asset Catalog appears to suppress the Icon Composer icon. Removing it lets the Icon Composer icon through. Note: If your app depends on other assets in the Asset Catalog, this approach won't work for you. In that case, fall back to the traditional method — export all required sizes from Icon Composer and import them into the Asset Catalog. Hopefully Apple addresses this conflict soon.
Replies
0
Boosts
0
Views
133
Activity
1w
Xcode JSON-RPC global stream failed error when using chatgpt codex.
Whenever I try and talk to chatgpt codex in Xcode, I get the request could not be completed error with this tag: JSON-RPC global stream failed: The operation couldn’t be completed. (IDEIntelligenceAgents.JSONRPCElement.Error error 1.) Chatgpt chat still works inside of xcode, however codex does not work. I have not hit my limit for codex. This issue happened after the xcode update. (I belive 26.4.1)
Replies
0
Boosts
0
Views
248
Activity
2w
Cannot Export Mac app from Xcode 26.4
Took app and selected Archive. Selected Direct Distribution. Process completed. I selected export app. Could not elect the app to export since it was greyed out. Queried on both google and Claudie. Followed all the instructions and there is still no joy. Worked fine yesterday.
Replies
3
Boosts
0
Views
101
Activity
2w
Xcode 26.4.1 simulator 16.0 bugs.
I cannot get a Jiggle on an iPhone 15 using the iOS 17.0 simulator. I cannot drag icons or widget around, only have the option to remove them. On both the iOS 17.0 and iOS 26.4 (running on an iPhone 17 simulator) There is nothing in my drawer for adding a widget, no system widgets either (attached screenshots). Just the Search Widgets bar that does have widgets in it. The system widgets are in the screen to the left of the home screen. I can put widgets I find through the search on the home screen. Although on the iOS 17 emulator no jiggle means no repositioning. May computer is running MacOS 25.4.1 and the latest versions of everything. I have asked AI, I have tried wipes, locking, unlocking, reseting, re-installing, light mode/ dark mode to refresh any cached images, trying to drag system widgets from the left side of the home screen, "a widget kit development mode option" in settings > developer on the iPhone and something using the command line for chronosd that never worked. The iPhone 17 simulator has been like this for a couple of weeks as that was when I started widget development. The iPhone 15 simulator was only downloaded and installed today. I only know there should be images on the "Widget Gallery" or "Widget Picker" from my son's iPhone Any help or suggestions would be appreciated, Thank you. iPhone 15 simulator running iOS 17.0 iPhone 17 simulator running iOS 26.4.1
Replies
0
Boosts
0
Views
87
Activity
2w
Claude Agent Error: API Error (claude-opus-4-6): 400 The provided model identifier is invalid.
I have been using Claude Agent with an Anthropic API Key in Xcode 26.3 for a while now. Recently it stopped working, giving me this error message: API Error (claude-opus-4-6): 400 The provided model identifier is invalid. I have tried relaunching Xcode, signing out and signing back in, changing the default model in the Claude configuration UI and nothing works. I've had to fall back on using the Claude Code CLI and the MCP server, which loses a lot of the value of Xcode/Claude integration.
Replies
0
Boosts
0
Views
43
Activity
2w
Unable to upload build – “No App Store Connect access for the team
Hello, I am experiencing an issue when trying to upload my app to App Store Connect via Xcode. I am the Account Holder and Admin of my Apple Developer account, and I can successfully log in to App Store Connect. My account appears correctly under “Users and Access” with full permissions. However, when attempting to distribute my app from Xcode (Product → Archive → Distribute App → App Store Connect), I consistently receive the following error: “App Store Connect access for ‘[my name]’ is required. Add an account in Accounts settings.” “No App Store Connect access for the team” I have already tried the following steps: Verified that my account has Account Holder / Admin role in App Store Connect Logged out and back into Xcode multiple times Removed and re-added my Apple ID in Xcode Restarted Xcode and my Mac Confirmed that my Apple Developer membership is active Checked that all Agreements, Tax, and Banking sections are completed Verified that Apple Distribution and Development certificates are created and valid Ensured the correct Team is selected in Signing & Capabilities Despite all this, the issue persists. It seems like Xcode is not correctly recognizing my App Store Connect access for the team. Could you please help investigate this issue or advise on how to resolve it? Thank you very much in advance.
Replies
0
Boosts
0
Views
70
Activity
2w
Claude Agent reverts to earlier version in Xcode 26.4.1
My Claude Agent component version was 2.1.81, it prompted me for an update the other day from the original release version 2.1.59. But now that I've installed Xcode 26.4.1 it's back to thinking 2.1.59 is the newest version. With every Xcode release it feels like there's a new regression or weird surprise with coding intelligence (26.4 was Claude losing its OAuth token every 8 hours or so). It really feels like this stuff needs more eyes on it. Filed as FB22529202
Replies
2
Boosts
1
Views
153
Activity
2w
Store Kit 2 iOS system purchase confirmation dialog not consistent.
I'm running into an issue where it appears the product transaction is being cached and not showing a new iOS system popup dialog to confirm the purchase. This is affecting testing, and I need a solution to have iOS issue a new purchase transaction every time. Here's what happens, I call the following which always succeeds. try await product.purchase(options: [.appAccountToken(appToken)]) I'm signed into a developer sandbox account with a resubscribe every 5 minutes. After cancelling a subscription, I attempt to resubscribe using the same code as above. Frequently, the code executes without iOS showing the popup system dialog to confirm the purchaser. After waiting a period of time, iOS then resets itself and allows me to purchase again. What I want is an option the forces the iOS system confirm purchase dialog to show up every time the code executes. How do I fix this? iOs 26.4.1, iPhone 17 Pro.
Replies
0
Boosts
0
Views
78
Activity
2w
Xcode 26.4 won't install simulators, just spins the beachball
Something happened with my Xcode 26.4 install, I've never had this happen before. I get Xcode 26.4 installed, but the simulators aren't installed. And nothing pops up to "install required simulators". In Devices & Simulators I click the + to install a new simulator, and the beachball just spins and Xcode becomes unresponsive. I've tried quitting and restarting Xcode, reinstalling it (using both xcodes command line tool and the app store), removing Xcode and reinstalling, rebooting after removing Xcode and before reinstalling. Not sure what to try next. Feels like something is left over from uninstalling that's hanging it up. But I've no idea what. I could use some Apple Xcode team help here.
Replies
3
Boosts
0
Views
66
Activity
2w
Xcode to play a Sound when a fault is logged
Hi I have an Xcode project in which I am logging (os log) some faults when an error occurs. While developing I would like to notice it when the fault occurs. Questions Are there are better approaches to be alerted (sound or other means) when a fault occurs? My attempts so far: Add fault log and filter for faults Add breakpoint and play sound when breakpoint encountered Disadvantages with fault filtering: Though I can filter for faults sometimes I often need to look at debug messages. Having a lot of debug messages I am lost, yes I can filter but might forget to do it during every build Disadvantages with breakpoints: Sometimes I tend to delete breakpoints and might accidentally delete this breakpoint to play a sound
Replies
0
Boosts
0
Views
48
Activity
2w
Icon Composer app icon appears correctly in Xcode/Composer, but App Store shows it inside a square tile
Hello, I created my app icon with Icon Composer and use the .icon file directly in my Xcode project. The preview in Icon Composer looks as expected, but the icon on the App Store has a different appearance. For reference: .icon file is used directly no separate background image was added background was set with fill in Icon Composer the difference appears on the App Store side Has anyone seen this before? I’m trying to understand whether this is related to App Store processing, caching, or Icon Composer background setup. I’ve attached: Any guidance would be appreciated.
Replies
0
Boosts
0
Views
75
Activity
2w