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

Posts under Xcode tag

200 Posts

Post

Replies

Boosts

Views

Activity

Can't add apps for review when using Xcode Beta, and I can't use the old version.
I got macOS Golden Gate developer beta, so Xcode stopped working. Then, I got Xcode 27 Beta because I was super excited about it, but then after adding my build, App Store Connect says that I can't add builds made with Xcode beta for review, and since I have macOS Golden Gate, I can't use non-beta Xcode. How do I either archive as non-beta or downgrade in some way (since I can't go back to macOS Tahoe)? I would like to add my app for review soon.
1
0
381
Jun ’26
Distribute errors for new version of existing app
We have an app which was removed in 2025. We want to update it with a new version of the app, which was made in Unity. I have the app in Xcode, with the same bundle ID and SKU, using a new version number. I get App Record Creation errors: The SKU you entered is already being used The App Name you entered is already being used for another app in your account. this is the point of updates, isn't it? To have the same name, SKU and BundleID? Any idea what is going on? None of the resources I am finding resolve this.
0
0
302
Jun ’26
ARKit object tracking performance
I'm trying to track identified objects in realtime with bounding rects, with no 3D integration, but still has poor update performance. I'm trying to understand how to optimize frame updates. (I'm a new programmer) Using: Foundation, AVFoundation, ARKit, CoreVideo, Vision, CoreImage, CoreVideo with YOLOE-11s object detection currently throttled to 2fps. (target iOS, testing on 16pro) YOLOE-11S CoreML model detects objects with class labels + bounding boxes Labels are matched against ObjectCatalog.json for relevance Matched objects are promoted from blue (detected) to green (identified) Log warnings: ARSession <0x110afdb80>: The delegate of ARSession is retaining 13 ARFrames. The camera will stop delivering camera images if the delegate keeps holding on to too many ARFrames. This could be a threading or memory management issue in the delegate and should be fixed. Skipping integration due to poor slam at time: 619447.208339 vio_initialized(1) map_size(0) tracking_state_is_nominal(0) is_3dof(0) reinitialize_attempts(6) slam_mode(RegularSLAM)
2
0
695
Jun ’26
Device Hub Issue on MacOS 26
Hey, anyone figured out how Device Hub will work? I have a Mac OS 26.5.1 (25F80) version. It's not working with my device configurations. I have downloaded Xcode components of Xcode 27 and iOS 27 simulators, but device help seems to be not working. If anyone has a similar problem or has a fix, kindly let me know.
3
0
458
Jun ’26
SPM packages fail for watchOS Xcode 27
Xcode 27 refuses to build common Swift Packages for watchOS, such as swift-algorithms or swift-collections. ... 'WATCHOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 27.0.x. The error disappears by explicitly declaring in the SPM manifest "platforms: [.watchOS(.v9)]". (Patching the "SwiftStdlib" availabilities in swift-collections is insufficient.) Is there a better workaround than mirroring our whole SPM graph to declare the platform minimum? Our projects' minimums are correctly set at 11 or 26. (Also happens in the hello world Xcode 27 watchOS only project.) FB23037701 ref: https://developer.apple.com/forums/thread/829540
2
3
721
Jun ’26
UIRequiredDeviceCapabilities key issue in App Review
I am getting rejection from apple review team for UIRequiredDeviceCapabilities. Here is the rejection message -- The UIRequiredDeviceCapabilities key in the Info.plist is set in such a way that the app will not install on iPad or iPhone . Next Steps To resolve this issue, check the UIRequiredDeviceCapabilities key to verify that it contains only the attributes required for the app features or the attributes that must not be present on the device. Attributes specified by a dictionary should be set to true if they are required and false if they must not be present on the device. In our case we don't have UIRequiredDeviceCapabilities key in info.plist. Even if you create new project in Xcode 15.4 then it doesn't have this key. I tried to add that key forcefully with armv7 or camera details. But app is keep getting rejected. Anyone faced the issue for this?
4
2
1.5k
Jun ’26
App crashes when compiled with Xcode 27
When compiling the codebase with Xcode 27 and running it on a simulator or real device (with iOS 27 or iOS 26.x) the app keeps crashing in certain situations with the error "Thread 1: EXC_BAD_ACCESS (code=257, address=0x80000001097a409e)". The exact same codebase is working just fine on Xcode 26.5. I’ve tested changing the Xcode 27 toolchain to a custom one (6.3.2) but it still crashes. I’ve also tried to usual steps to delete the derived data folder and clear the cache. Nothing worked. Here's the Feedback ID I've opened: FB23035297. Is this happening to anyone else? Any idea?
0
0
211
Jun ’26
Suggestions for improving Xcode relative line numbers
Is it possible for Xcode to show the relative number after the code is folded? Instead of showing the relative line number before code is folded. For example, in the case below, for the line with "}", 2 should be displayed instead of 45. It really bothers me when jumping to the target line in vim mode. The number I key in doesn't match the number show in the left side of editor. My point is, at least make the number used in jumping command in vim mode matches the number show in the left side of the editor.
0
0
89
Jun ’26
Xcode 27: Markdown files look great!!! Thank you!!
Hi, Xcode 27 markdown rendering look fantastic, a big thanks to everyone who contributed to it. Truly such a delight seeing rendered beautifully!! I didn't see it explained in any of the Xcode sessions, if there are WWDC sessions or documentation on this please let me know. Questions Tables get rendered really well, how can I add or remove columns in a table? For links I noticed that I needed to add the link first and then title for the link later, or are there alternate ways?
0
0
280
Jun ’26
Xcode 27 - Use last entered Bundle ID and development team
Hi, On Xcode 27, whenever I create a new Project and select App, an untitled project is created. What is good: When I go on to save the project, the project name uses it to update target name which is nice. Problem: Every time it uses a placeholder team ID, I have to go and manually update the bundle ID and team. This could also lead to unnecessary provisioning profiles created with placeholder IDs. Proposal FB23033844 Xcode to use the last used Bundle ID and Team. This will be similar to how things were in Xcode 26
0
0
182
Jun ’26
Xcode 27 Device Hub, no option to view Point Accurate and Pixel Accurate window sizes
Hi, On Xcode 27, Device Hub, how to view the simulator with Point Accurate and Pixel Accurate window sizes? These are existing options on Xcode 26 Simulator, so would be nice to have them in Xcode 27 Device Hub. This would be needed sometimes to quickly measure things using a on screen ruler. Feedback FB23033231 If there is no option currently can you please provide options to provide to view Point Accurate and Pixel Accurate window sizes
0
1
352
Jun ’26
I have an iOS app that now cannot connet to websocket servers when building with new SDKs
I have an iOS app that now cannot connet to websocket servers when building with new SDKs. The app that i have deployed in appstore can connect to the existing websocket servers we use but when i build the same code with the new SDKs (Nex XCode) the app connects to the websocket server and then disconnect right after that so no messages are received and no messages are sent. What has changed and what do i need to change in the app? Or do i need to change somehing else somewhere else?
1
0
464
Jun ’26
Unable to use, install, or delete the iOS 27 runtime
I'm unable to use the iOS 27 runtime in Xcode 27 beta 1. It appears uninstalled, but has no Get button, so I can't delete it, nor uninstall it. Using the Get button in the toolbar results in "Fetching download information..." forever. When I click info and copy information, it says "iOS 27.0 beta (24A5355p) SDK + Simulator (Components absent)." It doesn't show up in any of the xcrun simctl commands for listing devices or runtimes. It doesn't show up in the Add Platforms modal. I was unable to debug this issue with an Apple engineer in person, so they suggested I post here! Update: xcodebuild -downloadPlatform doesn't work either, even though it does for watchOS
3
0
461
Jun ’26
Is there a book or webpage that teaches Xcode step by step
I would like to learn Xcode programming on MacOS. I was wondering if anyone knows of a step by step method. Where I can learn one command at a time but also all the nuances and syntax and instances for that command (function). I see a lot of tutorials for iOS programming but I would rather start and end with MacOS, but anything helps. I would like immersive instruction like what you would find in a cad classroom.
4
0
2.0k
Jun ’26
Xcode's Vim Mode - further development?
It was fantastic news to hear, last year, that Xcode was getting a Vim mode. Apple's implementation of it was a great first step, but it was missing a bunch of key features. Most importantly the dot command (and by, extension, macros) and creating marks in files, which are functions that I use/rely on on a daily basis. I thought I would finally be able to stop having to self-sign Xcode (which causes problems) in order to use XVim2 plugin, but no such luck. Will these features get added in for Xcode 14 (they don't seem to be in the beta) or are they far out on the roadmap?
12
13
10k
Jun ’26
PacketLogger not logging packets on a MacBook.
I am a developer working on macOS Sonoma version 14.5 using a MacBook Pro with an M3 Pro chip. I have been trying to utilize PacketLogger, included with Xcode 15.4 extensions, to monitor Bluetooth traffic between my MacBook and my Sony WH-1000XM4 headphones. Issue Description: Despite my device being correctly paired and connected, PacketLogger does not display any Bluetooth packet data. The expected Bluetooth packets are not shown in the PacketLogger interface, even when no filters are applied, and PacketLogger settings are configured to capture all traffic. Troubleshooting Steps Taken: • I have ensured all PacketLogger filters are deactivated to capture all types of Bluetooth traffic. • I have started the PacketLogger before connecting my Bluetooth devices to capture the initial exchanges. • Reinstallation of PacketLogger and verification of Bluetooth module functionality have been performed, with no resolution to the issue. Request for Assistance: Could you provide guidance or troubleshooting steps that might address this issue? Are there known compatibility issues with PacketLogger on macOS Sonoma or with the MacBook Pro M3 Pro model that might affect its functionality? Any specific settings or configurations that I might be overlooking would also be greatly appreciated. I can provide additional information, including screenshots of my PacketLogger settings and logs, upon request. Your assistance in resolving this issue would be invaluable.
3
6
2.7k
Jun ’26
Code Coverage Not Accurate in Xcode 26
Description: I’m noticing that the code coverage metrics in Xcode 26 are not accurate compared to earlier versions. In Xcode 15, the same set of unit tests shows around 38% coverage, but in Xcode 26, even though all the tests are running successfully (for example, the SegmentedUI test cases), the code coverage is displayed as 0%. Has anyone else observed this behavior in Xcode 26? Is there any known issue, workaround, or configuration change required to get the correct coverage report? Environment: Xcode 26 iOS 18 SDK Unit tests running under XCTest Any insights or suggestions would be appreciated.
4
6
619
Jun ’26
React Native IAP: getProducts returns empty array in TestFlight despite complete configuration
Hi everyone, I’m currently developing an iOS app using React Native and implementing consumable In-App Purchases (IAP). I'm facing an issue where getProducts returns an empty array without any error messages when testing on a TestFlight build. I have already completed the following setup: Agreements, Tax, and Banking: All forms are signed and the status is "Active" in App Store Connect. Product Configuration: The Consumable product is created in App Store Connect with the status "Ready to Submit". App Store Connect Integration: The product is correctly linked under the "In-App Purchases and Subscriptions" section of the App version. Xcode Capability: The "In-App Purchase" capability has been added to the project. Implementation: The Product ID in my React Native code (using react-native-iap) matches the ID in App Store Connect exactly. Despite these steps, the product list remains empty. Are there any hidden requirements or specific configurations for TestFlight that I might have missed? Any guidance would be greatly appreciated. Thanks!
1
0
831
Jun ’26
Can't add apps for review when using Xcode Beta, and I can't use the old version.
I got macOS Golden Gate developer beta, so Xcode stopped working. Then, I got Xcode 27 Beta because I was super excited about it, but then after adding my build, App Store Connect says that I can't add builds made with Xcode beta for review, and since I have macOS Golden Gate, I can't use non-beta Xcode. How do I either archive as non-beta or downgrade in some way (since I can't go back to macOS Tahoe)? I would like to add my app for review soon.
Replies
1
Boosts
0
Views
381
Activity
Jun ’26
Distribute errors for new version of existing app
We have an app which was removed in 2025. We want to update it with a new version of the app, which was made in Unity. I have the app in Xcode, with the same bundle ID and SKU, using a new version number. I get App Record Creation errors: The SKU you entered is already being used The App Name you entered is already being used for another app in your account. this is the point of updates, isn't it? To have the same name, SKU and BundleID? Any idea what is going on? None of the resources I am finding resolve this.
Replies
0
Boosts
0
Views
302
Activity
Jun ’26
ARKit object tracking performance
I'm trying to track identified objects in realtime with bounding rects, with no 3D integration, but still has poor update performance. I'm trying to understand how to optimize frame updates. (I'm a new programmer) Using: Foundation, AVFoundation, ARKit, CoreVideo, Vision, CoreImage, CoreVideo with YOLOE-11s object detection currently throttled to 2fps. (target iOS, testing on 16pro) YOLOE-11S CoreML model detects objects with class labels + bounding boxes Labels are matched against ObjectCatalog.json for relevance Matched objects are promoted from blue (detected) to green (identified) Log warnings: ARSession <0x110afdb80>: The delegate of ARSession is retaining 13 ARFrames. The camera will stop delivering camera images if the delegate keeps holding on to too many ARFrames. This could be a threading or memory management issue in the delegate and should be fixed. Skipping integration due to poor slam at time: 619447.208339 vio_initialized(1) map_size(0) tracking_state_is_nominal(0) is_3dof(0) reinitialize_attempts(6) slam_mode(RegularSLAM)
Replies
2
Boosts
0
Views
695
Activity
Jun ’26
Device Hub Issue on MacOS 26
Hey, anyone figured out how Device Hub will work? I have a Mac OS 26.5.1 (25F80) version. It's not working with my device configurations. I have downloaded Xcode components of Xcode 27 and iOS 27 simulators, but device help seems to be not working. If anyone has a similar problem or has a fix, kindly let me know.
Replies
3
Boosts
0
Views
458
Activity
Jun ’26
SPM packages fail for watchOS Xcode 27
Xcode 27 refuses to build common Swift Packages for watchOS, such as swift-algorithms or swift-collections. ... 'WATCHOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 27.0.x. The error disappears by explicitly declaring in the SPM manifest "platforms: [.watchOS(.v9)]". (Patching the "SwiftStdlib" availabilities in swift-collections is insufficient.) Is there a better workaround than mirroring our whole SPM graph to declare the platform minimum? Our projects' minimums are correctly set at 11 or 26. (Also happens in the hello world Xcode 27 watchOS only project.) FB23037701 ref: https://developer.apple.com/forums/thread/829540
Replies
2
Boosts
3
Views
721
Activity
Jun ’26
UIRequiredDeviceCapabilities key issue in App Review
I am getting rejection from apple review team for UIRequiredDeviceCapabilities. Here is the rejection message -- The UIRequiredDeviceCapabilities key in the Info.plist is set in such a way that the app will not install on iPad or iPhone . Next Steps To resolve this issue, check the UIRequiredDeviceCapabilities key to verify that it contains only the attributes required for the app features or the attributes that must not be present on the device. Attributes specified by a dictionary should be set to true if they are required and false if they must not be present on the device. In our case we don't have UIRequiredDeviceCapabilities key in info.plist. Even if you create new project in Xcode 15.4 then it doesn't have this key. I tried to add that key forcefully with armv7 or camera details. But app is keep getting rejected. Anyone faced the issue for this?
Replies
4
Boosts
2
Views
1.5k
Activity
Jun ’26
App crashes when compiled with Xcode 27
When compiling the codebase with Xcode 27 and running it on a simulator or real device (with iOS 27 or iOS 26.x) the app keeps crashing in certain situations with the error "Thread 1: EXC_BAD_ACCESS (code=257, address=0x80000001097a409e)". The exact same codebase is working just fine on Xcode 26.5. I’ve tested changing the Xcode 27 toolchain to a custom one (6.3.2) but it still crashes. I’ve also tried to usual steps to delete the derived data folder and clear the cache. Nothing worked. Here's the Feedback ID I've opened: FB23035297. Is this happening to anyone else? Any idea?
Replies
0
Boosts
0
Views
211
Activity
Jun ’26
Suggestions for improving Xcode relative line numbers
Is it possible for Xcode to show the relative number after the code is folded? Instead of showing the relative line number before code is folded. For example, in the case below, for the line with "}", 2 should be displayed instead of 45. It really bothers me when jumping to the target line in vim mode. The number I key in doesn't match the number show in the left side of editor. My point is, at least make the number used in jumping command in vim mode matches the number show in the left side of the editor.
Replies
0
Boosts
0
Views
89
Activity
Jun ’26
Xcode 27: Markdown files look great!!! Thank you!!
Hi, Xcode 27 markdown rendering look fantastic, a big thanks to everyone who contributed to it. Truly such a delight seeing rendered beautifully!! I didn't see it explained in any of the Xcode sessions, if there are WWDC sessions or documentation on this please let me know. Questions Tables get rendered really well, how can I add or remove columns in a table? For links I noticed that I needed to add the link first and then title for the link later, or are there alternate ways?
Replies
0
Boosts
0
Views
280
Activity
Jun ’26
Xcode 27 - Use last entered Bundle ID and development team
Hi, On Xcode 27, whenever I create a new Project and select App, an untitled project is created. What is good: When I go on to save the project, the project name uses it to update target name which is nice. Problem: Every time it uses a placeholder team ID, I have to go and manually update the bundle ID and team. This could also lead to unnecessary provisioning profiles created with placeholder IDs. Proposal FB23033844 Xcode to use the last used Bundle ID and Team. This will be similar to how things were in Xcode 26
Replies
0
Boosts
0
Views
182
Activity
Jun ’26
Xcode 27 Device Hub, no option to view Point Accurate and Pixel Accurate window sizes
Hi, On Xcode 27, Device Hub, how to view the simulator with Point Accurate and Pixel Accurate window sizes? These are existing options on Xcode 26 Simulator, so would be nice to have them in Xcode 27 Device Hub. This would be needed sometimes to quickly measure things using a on screen ruler. Feedback FB23033231 If there is no option currently can you please provide options to provide to view Point Accurate and Pixel Accurate window sizes
Replies
0
Boosts
1
Views
352
Activity
Jun ’26
I have an iOS app that now cannot connet to websocket servers when building with new SDKs
I have an iOS app that now cannot connet to websocket servers when building with new SDKs. The app that i have deployed in appstore can connect to the existing websocket servers we use but when i build the same code with the new SDKs (Nex XCode) the app connects to the websocket server and then disconnect right after that so no messages are received and no messages are sent. What has changed and what do i need to change in the app? Or do i need to change somehing else somewhere else?
Replies
1
Boosts
0
Views
464
Activity
Jun ’26
Agree not working for Xcode 27 license agreement
I downloaded Xcode 27 beta and it presents a license agreement, but tapping the Agree button is not working. It will ask for my computer password but after that, the window is not dismissed. Repeated taps on the Agree button do nothing. I've even tried sudo xcodebuild -license to no avail.
Replies
1
Boosts
0
Views
340
Activity
Jun ’26
Unable to use, install, or delete the iOS 27 runtime
I'm unable to use the iOS 27 runtime in Xcode 27 beta 1. It appears uninstalled, but has no Get button, so I can't delete it, nor uninstall it. Using the Get button in the toolbar results in "Fetching download information..." forever. When I click info and copy information, it says "iOS 27.0 beta (24A5355p) SDK + Simulator (Components absent)." It doesn't show up in any of the xcrun simctl commands for listing devices or runtimes. It doesn't show up in the Add Platforms modal. I was unable to debug this issue with an Apple engineer in person, so they suggested I post here! Update: xcodebuild -downloadPlatform doesn't work either, even though it does for watchOS
Replies
3
Boosts
0
Views
461
Activity
Jun ’26
Xcode 27: Can build any project with WatchOS target and SPM packages
I get this error for every APM package that targets WatchOS, but the package did not set any versions: The watchOS Simulator deployment target 'WATCHOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 27.0.x.
Replies
0
Boosts
1
Views
275
Activity
Jun ’26
Is there a book or webpage that teaches Xcode step by step
I would like to learn Xcode programming on MacOS. I was wondering if anyone knows of a step by step method. Where I can learn one command at a time but also all the nuances and syntax and instances for that command (function). I see a lot of tutorials for iOS programming but I would rather start and end with MacOS, but anything helps. I would like immersive instruction like what you would find in a cad classroom.
Replies
4
Boosts
0
Views
2.0k
Activity
Jun ’26
Xcode's Vim Mode - further development?
It was fantastic news to hear, last year, that Xcode was getting a Vim mode. Apple's implementation of it was a great first step, but it was missing a bunch of key features. Most importantly the dot command (and by, extension, macros) and creating marks in files, which are functions that I use/rely on on a daily basis. I thought I would finally be able to stop having to self-sign Xcode (which causes problems) in order to use XVim2 plugin, but no such luck. Will these features get added in for Xcode 14 (they don't seem to be in the beta) or are they far out on the roadmap?
Replies
12
Boosts
13
Views
10k
Activity
Jun ’26
PacketLogger not logging packets on a MacBook.
I am a developer working on macOS Sonoma version 14.5 using a MacBook Pro with an M3 Pro chip. I have been trying to utilize PacketLogger, included with Xcode 15.4 extensions, to monitor Bluetooth traffic between my MacBook and my Sony WH-1000XM4 headphones. Issue Description: Despite my device being correctly paired and connected, PacketLogger does not display any Bluetooth packet data. The expected Bluetooth packets are not shown in the PacketLogger interface, even when no filters are applied, and PacketLogger settings are configured to capture all traffic. Troubleshooting Steps Taken: • I have ensured all PacketLogger filters are deactivated to capture all types of Bluetooth traffic. • I have started the PacketLogger before connecting my Bluetooth devices to capture the initial exchanges. • Reinstallation of PacketLogger and verification of Bluetooth module functionality have been performed, with no resolution to the issue. Request for Assistance: Could you provide guidance or troubleshooting steps that might address this issue? Are there known compatibility issues with PacketLogger on macOS Sonoma or with the MacBook Pro M3 Pro model that might affect its functionality? Any specific settings or configurations that I might be overlooking would also be greatly appreciated. I can provide additional information, including screenshots of my PacketLogger settings and logs, upon request. Your assistance in resolving this issue would be invaluable.
Replies
3
Boosts
6
Views
2.7k
Activity
Jun ’26
Code Coverage Not Accurate in Xcode 26
Description: I’m noticing that the code coverage metrics in Xcode 26 are not accurate compared to earlier versions. In Xcode 15, the same set of unit tests shows around 38% coverage, but in Xcode 26, even though all the tests are running successfully (for example, the SegmentedUI test cases), the code coverage is displayed as 0%. Has anyone else observed this behavior in Xcode 26? Is there any known issue, workaround, or configuration change required to get the correct coverage report? Environment: Xcode 26 iOS 18 SDK Unit tests running under XCTest Any insights or suggestions would be appreciated.
Replies
4
Boosts
6
Views
619
Activity
Jun ’26
React Native IAP: getProducts returns empty array in TestFlight despite complete configuration
Hi everyone, I’m currently developing an iOS app using React Native and implementing consumable In-App Purchases (IAP). I'm facing an issue where getProducts returns an empty array without any error messages when testing on a TestFlight build. I have already completed the following setup: Agreements, Tax, and Banking: All forms are signed and the status is "Active" in App Store Connect. Product Configuration: The Consumable product is created in App Store Connect with the status "Ready to Submit". App Store Connect Integration: The product is correctly linked under the "In-App Purchases and Subscriptions" section of the App version. Xcode Capability: The "In-App Purchase" capability has been added to the project. Implementation: The Product ID in my React Native code (using react-native-iap) matches the ID in App Store Connect exactly. Despite these steps, the product list remains empty. Are there any hidden requirements or specific configurations for TestFlight that I might have missed? Any guidance would be greatly appreciated. Thanks!
Replies
1
Boosts
0
Views
831
Activity
Jun ’26