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

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Activity

Simulator Apple Account sign-in fails with GsService2/postdata 401 (-22411 / -42023) after 2FA, Xcode 27.1
On 25 October 2026, signing in to an Apple Account in the Simulator (Settings > Apple Account > Sign in Manually) fails on iOS 27.0 and iOS 26.5 runtimes (Xcode 27.1, macOS 27.0.1, Apple silicon), for a new account (SMS second factor) and for an established account (trusted-device second factor). The password and second-factor steps complete; then akd logs "Will check in with IDMS" and POST gsas.apple.com/grandslam/GsService2/postdata returns HTTP 401 with ec -22411, sec -42023 ("This action cannot be completed at this time"), followed by "Failed to check in with IDMS! ... AKAuthenticationError Code=-7026". Settings then says the account or password is incorrect. The host Mac checks in with IDMS successfully, and the account works on icloud.com. I need a second account in the Simulator to test CloudKit share acceptance. Is this a known issue, and is there a workaround? Feedback: FB25318712.
0
0
132
2w
New simulators do not show up in Device Hub
Xcode is completely broken since I installed Xcode 27.1 Beta for the first time. Since then every Xcode I installed is unable to properly install simulators. Even though the SDK appears as installed in settings: Device Hub doesn't show it: To fix it I have to manually add SDK image using "xcrun simctl runtime add" and then play with a couple more commands. I've just installed Xcode 27.2 with iOS 27.2 SDK and again the same problem: There is a problem with signature: Any idea how to fix it, so that I don't have to install it manually every time...?
1
0
563
2w
Storyboards stuck on "Loading iOS 27.1..." in Xcode 27.1, including new projects
SUMMARY In Xcode 27.1, opening any Main.storyboard never finishes loading. The editor shows "Loading iOS 27.1..." indefinitely. This happens in existing projects and in a brand-new iOS App project created with Interface: Storyboard. Before that, the editor showed "Failed to open Main.storyboard: iOS 27.1 Platform Not Installed." ENVIRONMENT Xcode 27.1 iOS SDK build: 24A94232 (from xcrun --sdk iphonesimulator --show-sdk-build-version) macOS: [YOUR macOS VERSION] Hardware: MacBook Air, Apple M1 Run destination: iPhone 17 Pro Max simulator STEPS TO REPRODUCE Open Xcode 27.1. Create a new project: iOS > App, Interface: Storyboard, Language: Swift. Click Main.storyboard in the Project Navigator. EXPECTED RESULT The storyboard renders in Interface Builder and the Objects library lists UI elements. ACTUAL RESULT The editor stays on "Loading iOS 27.1..." and the Objects library shows "No Matches." Opening the file as Source Code works, and the XML is valid (targetRuntime="iOS.CocoaTouch"), so the file itself is fine. RUNTIME STATE Initially the only iOS 27.1 runtime installed was build 24A94425, shown as Ready in xcrun simctl runtime list. Xcode reported "iOS 27.1 Platform Not Installed," and the runtime did not appear in Settings > Components. The Xcode SDK build is 24A94232, which does not match 24A94425. I ran xcodebuild -downloadPlatform iOS, which installed iOS 27.1 (24A94232). The error then changed to "Loading iOS 27.1..." and stayed there. Settings > Components then showed an "Update" button for iOS 27.1 (8.07 GB). Clicking it installed iOS 27.1 (24A94425) again, so both builds are now present and Ready. The storyboard is still stuck. WHAT I TRIED (none fixed it) Deleting ~/Library/Developer/Xcode/DerivedData sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService Removing and reinstalling the iOS 27.1 runtime Restarting the Mac Waiting several minutes on the first load (~/Library/Developer/Xcode/UserData/IB Support does not exist on this machine)
1
0
115
2w
built-in SwiftBuild temporary directory
Installed Xcode ProductBuildVersion 27A9275, SwiftBuild 25000.0.222. Synthetic static Swift framework and three arithmetic XCTest cases only. No real app, account, health data or code-signing identity is needed. A Seatbelt profile allows an exclusively owned child of the normal macOS per-user temporary directory, public SDK/toolchain reads and necessary build services, while denying private-home data and writes elsewhere. Network is denied. The process receives TMPDIR, TMP and TEMP set to that owned child. Fresh DerivedData and result-bundle paths also point inside it. A generic iOS Simulator build-for-testing stops at builtin-infoPlistUtility: mkdtemp tries to create swbuild.tmp.* directly in the per-user temporary parent and returns EPERM. The documented -userdefault=value argument syntax accepts -SWBBuildServiceEnvironmentOverrides='{ TMPDIR = "<owned-child>/"; TMP = "<owned-child>/"; TEMP = "<owned-child>/"; }' but a changed synthetic trial still selects the parent. Acceptance is not proof of the runtime dictionary type or transport adoption. A standalone process under the same profile, using installed Foundation, reports getenv("TMPDIR") as the owned child while both FileManager.default.temporaryDirectory and NSTemporaryDirectory return the parent. The installed SwiftBuild Path.temporaryDirectory implementation calls NSFileManager.defaultManager temporaryDirectory. The out-of-process initializer requires a string-to-string dictionary, then applies it to the child environment. Question for Apple: what supported per-invocation control makes built-in tasks use an explicitly owned temporary child on this version, and what supported no-build diagnostic proves its effective adoption? Is this Foundation behavior expected under Seatbelt? We cannot grant access to the shared parent or private home, change trust/keychain access, inject code, or modify installed libraries. CoreSimulator's separate runtime-availability error is not attributed to this temporary-path issue.
0
0
39
2w
iOS app installation fails with 0xe8008018 for company team, but succeeds with another Apple Account
iOS app installation fails with 0xe8008018 for company team, but succeeds with another Apple Account Hello Apple Developer Community, We are facing a persistent code-signing issue while installing iOS development builds on a physical iPhone. We have contacted Apple Developer Support multiple times, but we have not yet received a technical explanation for the root cause. Environment Xcode: 26.6 (Build 17F113) macOS: 26.5.2 (Build 25F84) Device: iPhone 12 Pro Max (iPhone12,5) iOS: 26.5 (Build 23F77) Company Team ID: T6MQ4RXG46 Development certificate: Apple Development: Muthoot Money Limited (3MH4U8W7M5) Error message When installing the app through Xcode, installation fails with: 0xe8008018 — The identity used to sign the executable is no longer valid. The full error also contains: MIInstallerErrorDomain Code=13 CoreDeviceError Code=3002 IXUserPresentableErrorDomain Code=14 ApplicationVerificationFailed Troubleshooting performed Verified that the development certificate is within its validity period. Checked the provisioning profile's expiration date and confirmed that the test device UDID is included. Verified the app signature locally using codesign --verify --deep --strict. Confirmed that the app's signing authority and TeamIdentifier match our company team. Tested both our existing application and a newly created minimal iOS project named SigningTest. Important finding The newly created SigningTest app also fails to install when signed using our company team. However, the same test app installs successfully on the same iPhone when signed using another Apple Account's team. This suggests that the issue may be related to the company team's signing configuration or another team-specific factor, although we have not identified the root cause. Questions What could cause iOS to reject a locally valid app signature with error 0xe8008018? How can we identify the specific certificate, provisioning, trust, or device-verification check that is failing during installation? Is there any additional diagnostic command or device log we should collect? Could this indicate a team-specific signing issue that requires investigation by Apple? We would appreciate any technical guidance from developers who have encountered and resolved the same error. Thank you.
1
0
233
2w
Unable to download iOS 27 simulator images on Xcode 27.1
Hello so i have been trying to download ios 27 simulator images in xcode but whenever i try to download it, it forever gets stuck in the state of preparing to download and never downloads it even after waiting for 2-3 hours, Can somebody please help me figure it out, i have tried uninstalling and reinstalling xcode but the issue isn't resolved please if someone has solution to this problem do share here!!
2
0
312
2w
Hosted test bundle links a second static copy of a package module already in a PackageProduct framework
I'm seeing Xcode link two copies of a Swift package module into one test process. The build succeeds without a warning or error, but at run time the app and its hosted unit tests each use their own copy of the module's globals and task-locals. Environment: Xcode 27.0 (27A266a), Swift 6.4, macOS 26.6.2, iPhone 17 Simulator (iOS 27.0, arm64). Sample project: <LINK TO HOSTED SAMPLE> Package graph Logging package Logging library target LoggingTesting → depends on the Logging *target* (same package) Content package Content → depends on the Logging *product* ContentTesting → depends on the Content target Repro (app) links products Logging, Content ReproTests (hosted unit test) links products LoggingTesting, ContentTesting TEST_HOST / BUNDLE_LOADER = Repro.appLoggingTesting depends on the Logging target rather than the product so it can use package-access API: a @TaskLocal package static var label on LoggingSystem. Libraries that ship a testing companion commonly use this layout. Steps to reproduce xcodebuild test -project Repro.xcodeproj -scheme Repro \ -destination 'platform=iOS Simulator,name=iPhone 17,OS=27.0' -derivedDataPath /tmp/repro-dd cd /tmp/repro-dd/Build/Products/Debug-iphonesimulator ls Repro.app/Frameworks nm Repro.app/PlugIns/ReproTests.xctest/ReproTests | xcrun swift-demangle | grep -v ' U ' | grep LoggingSystem otool -L Repro.app/PlugIns/ReproTests.xctest/ReproTestsExpected The test process contains one copy of Logging, so all three tests pass: Logger.shared is the same instance in the test bundle and the app, and a task-local bound through LoggingTesting is visible to app code and to Content. Actual All three tests fail: ✘ Test loggerShared_whenReadFromTestAndApp_isTheSameInstance() recorded an issue at ReproTests.swift:11:9: Expectation failed: ObjectIdentifier(Logger.shared) == appLoggerIdentity() ✘ Test taskLocal_whenBoundByLoggingTesting_isVisibleToApp() recorded an issue at ReproTests.swift:18:13: Expectation failed: appLoggingLabel() == "test" ✘ Test taskLocal_whenBoundByLoggingTesting_isVisibleToContent() recorded an issue at ReproTests.swift:26:13: Expectation failed: contentLoggingLabel() == "test"The built products explain it: Repro.app/Frameworks contains Content.framework and Logging_35C93DA702091ECE_PackageProduct.framework. The app and the test bundle both link Content, so Xcode builds it as a dynamic framework. That framework depends on the Logging product, so Xcode wraps the product in its own framework. ReproTests links the wrapper framework (otool -L lists @rpath/Logging_35C93DA702091ECE_PackageProduct.framework/…) and defines its own copy of the module: T static Logging.LoggingSystem.label.getter : Swift.String T Logging.LoggingSystem.$label.unsafeMutableAddressor : Swift.TaskLocal<Swift.String> S static Logging.LoggingSystem.$label : Swift.TaskLocal<Swift.String> T Logging.Logger.shared.unsafeMutableAddressor : Logging.Logger S static Logging.Logger.shared : Logging.Logger D type metadata for Logging.LoggerThis static copy comes from LoggingTesting's dependency on the Logging target. LoggingTesting binds $label in the test bundle's copy, while the app and Content read the wrapper framework's copy and still see "default". Control Removing ContentTesting from ReproTests (with its import and the third test) makes the problem go away. No second image links Content, so Xcode keeps it static and builds the Logging target as a single shared Logging.framework. The test bundle then only references the symbols (U Logging.LoggingSystem.$label…), and the remaining two tests pass. What I've tried Declaring the package products type: .static. Xcode still builds the target as a dynamic framework, and the duplicate remains. Moving the testing library into its own package that depends on the Logging product. This removes the duplicate, but package access can't cross package boundaries, so the task-local's binding API has to become public on Logging. Removing Content's dependency on Logging. This also removes the duplicate, but Content needs to log. Why it matters Our production app hit this when it adopted a new version of a package whose main library depends on our logging package's product and that ships its own testing companion. After the update, every unit test that asserted on logging through the logging package's testing library silently recorded nothing. Tests that inject mock loggers directly kept passing, so the update looked healthy. We found the cause only by inspecting symbols with nm. Questions Is it expected that Xcode links a second, static copy of a package module into a hosted test bundle that also links a framework Xcode generated for the same module? If not, I'll file a Feedback. If it is expected, why is there no diagnostic? What's the supported way to structure a library and its testing companion when the companion needs package access to the library, and an app and its hosted unit tests consume the library through another package? Is there a package declaration or build setting that makes Xcode use a single copy of Logging in this graph?
0
0
53
2w
Xcode 27.1 compilation error possibly due to swift versions discrepancy
Compiling my project using Xcode 27.1 ends with an error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/arm64e-apple-macos.swiftinterface:1:1: error: failed to build module 'SwiftUI'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.31.4 clang-2100.3.31.1)', while this compiler is 'Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)'). Please select a toolchain which matches the SDK. 1 | // swift-interface-format-version: 1.0 | `- error: failed to build module 'SwiftUI'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.31.4 clang-2100.3.31.1)', while this compiler is 'Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)'). Please select a toolchain which matches the SDK. 2 | // swift-compiler-version: Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.31.4 clang-2100.3.31.1) 3 | // swift-module-flags: -target arm64e-apple-macos27.0 -enable-objc-interop -target-arch-variant arm64e.x1 -enable-library-evolution -language-mode 5 -O -library-level api -enable-experimental-feature AnyAppleOSAvailability -enable-upcoming-feature InferSendableFromCaptures -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -user-module-version 8.0.84.1.406 -module-name SwiftUI -package-name SwiftUICompiling it with Xcode 27 ends without error. Do you see any other root cause than the one mentionned: Xcode 27.1 uses swiftlang-6.4.0.34.1 clang-2100.3.34.1 while internal sdk was compiled with swiftlang-6.4.0.31.4 clang-2100.3.31.1 ?
1
0
254
2w
Is it no longer possible in Xcode 27.1 to run/debug Apps on an iPhone X?
I've still an old iPhone X (running iOS 16.7.16) and like to also use this to test/debug my Apps, but it seems that XCode 27.1 does no longer support it. The device simply does not show up in the new Device Hub. I still have some App-specific data on this device, which I would like to use for the tests, but as XCode now ignores this device, I can't even copy the data over to the newer devices. Is it somhoe possible to add the device to the device Hub, or make it available to XCode so I can actually test on this device as well?
2
0
241
2w
Xcode 27.1 does not recognize iPhone 15 Pro — pairingState: unsupported
Hello, I am a beginner learning to develop iOS apps with SwiftUI. My setup: MacBook running macOS 27.0.1 Xcode 27.1 iPhone 15 Pro running iOS 27.0.1 Developer Mode enabled on the iPhone My iPhone is connected via USB-C and is recognized by Finder and macOS System Information. However, my iPhone does not appear as a run destination in Xcode. Only simulators are available. The command xcrun devicectl list devices detects the physical iPhone, but its connection information shows: pairingState: unsupported tunnelState: unavailable I have already restarted both devices, tried different USB ports, checked my Apple account in Xcode, and confirmed that Developer Mode is enabled. A simple SwiftUI test app runs correctly in the simulator, but I cannot install it on my physical iPhone. What could cause this pairing problem, and how can I resolve it? Thank you for your help.
8
0
212
2w
Network connections made by Xcode's MCP tool service when mcpbridge connects (Xcode 27.0)
On Xcode 27.0 (27A266a) / macOS 27.2, I ran xcrun mcpbridge from a scripted stdio MCP client and captured traffic system-wide, with a curl control visible in the same captures. Findings: mcpbridge itself opened no network sockets (online or offline, and under a deny-network sandbox). The "Xcode Service" process it connects to made about 2 KB of outbound TLS to an Apple edge address at startup, plus a certificate check via trustd and a request to devimages-cdn.apple.com. When a workspace was opened through XcodeOpenWorkspace, Xcode Service also made two TLS connections to appstoreconnect.apple.com (about 5 KB upstream). This did not occur without a workspace open, and XcodeListWorkspaces itself caused no traffic. mcpbridge sends a CoreAnalytics event to analyticsd (strings: "MCPBridgeTelemetry: Submitted CoreAnalytics event" / "Telemetry off; skipped"), payload <private>. Questions: What is sent to App Store Connect when a workspace is opened this way, and is it the same as opening the project in Xcode directly? What does the MCPBridgeTelemetry event contain, is it sent off-device, and what setting controls it? Is any MCP tool input or output (file contents, paths, build output) sent to Apple?
0
0
129
3w
CarPlay Simulator ignores Light appearance setting after sunset
When I set the Appearance in the CarPlay Simulator to Light, the setting is only respected during daytime. After sunset, CarPlay switches to and stays in Dark mode, regardless of the Light setting. This makes it difficult to test Light and Dark mode during evening development sessions, since Light mode is unavailable until the next sunrise. Expected behavior: When Appearance is explicitly set to Light, the CarPlay Simulator should stay in Light mode at any time of day, so both appearances can be tested whenever needed. Actual behavior: After sunset, the CarPlay Simulator remains in Dark mode even though Light is selected. This issue has been present for quite a while. A fix would be much appreciated. Thank you!
2
0
83
2w
iOS 17 Simulator Unresponsive in Xcode 27.1 — Unable to Type or Interact with the Screen
Hello, I am experiencing an issue when running an iOS application on an iOS 17.x Simulator using Xcode 27.1. The simulator becomes completely unresponsive to user input, whether my application is running or not. I cannot type anything or interact with the screen, including tapping UI elements. However, I can still switch between Light and Dark Mode, and the appearance changes accordingly. This makes it impossible to test my application on iOS 17.x using the simulator. Has anyone experienced a similar issue with Xcode 27.1 and the iOS 17.x Simulator? Is there a known workaround or configuration that could resolve this? Any help or suggestions would be appreciated. Thank you.
4
0
167
2w
Supported network isolation for app-hosted iOS Simulator tests
What is Apple’s supported way to prevent outbound network access during app-hosted iOS Simulator unit tests, without disabling system services or modifying system tunnel routes? Environment: Apple silicon Mac, macOS 26.6.2 Xcode 27.0, iOS 27.0 Simulator Separate, newly created Simulator Xcode-managed local ad-hoc build 17 fictional-data tests using XCTest and Swift Testing We intend to use xcodebuild test-without-building. The test bodies exercise models and request construction without sending requests, but the app host’s startup behavior is also within our isolation requirement. Tests have not been run. During an authorized Wi-Fi-off diagnostic, we waited ten seconds and collected three samples, checking Wi-Fi power before and after each sample. All showed: Wi-Fi Off No effective network interface reported by scutil --nwi No route selected by ordinary local lookups for IPv4 and IPv6 documentation addresses Remaining interface-scoped IPv6 default entries through utun interfaces Routes selected when IPv6 lookups explicitly specified those tunnel interfaces These were routing-table queries only; no diagnostic packets were sent. Wi-Fi was restored afterward. We have not established whether the scoped routes could carry external traffic. Please advise on a supported isolation mechanism and how to validate it for the Simulator test host, including startup. We want to preserve normal macOS security/system services and avoid relying on either route-table presence or absence as proof of isolation. No real user data or credentials are needed. We can provide a redacted diagnostic summary if useful.
0
0
113
3w
Xcode Coding Assistant closes connection with AI server automatically after 5 minutes
I'm trying to use Xcode Coding Assistant connected to local AI server, but the chat fails after 5 minutes with error: The request timed out. Detail: No Data/Bytes for request: http://localhost... AI server gives me info that client disconnected: 2026-10-19 22:24:23 [INFO] [nvidia/nemotron-3.5-super-vl] Prompt processing progress: 88.3% 2026-10-19 22:24:30 [INFO] [LM STUDIO SERVER] Client disconnected. Stopping generation... (If the model is busy processing the prompt, it will finish first.) 2026-10-19 22:24:30 [INFO] [nvidia/nemotron-3.5-super-vl] Finished streaming response 2026-10-19 22:24:31 [DEBUG] 17.12.133.523 W srv stop: cancel task, id_task = 0 2026-10-19 22:24:37 [DEBUG] 17.18.441.198 I slot release: id 0 | task 0 | stop processing: n_tokens = 47985, truncated = 0 It looks like http/tcp default timeout. AI suggests that it should be possible to set Xcode Coding Assistant timeout, but I cannot find it anywhere. How is Xcode Coding Assistant supposed to work if it shuts down on default network protocol timeout? I haven't tried yet on nVidia hardware, which should be faster, but it could still be a problem when working on multiple files in project with inference running on one Blackwell chip. I do not have nVidia rack with 72 chips, it wouldn't fit to my home office. How do I change the network timeout for Coding Assistant? Configuration: MacOS 27.0.1 (26A434) Xcode 27.0
1
0
100
3w
Xcode 26.3 actool does not compile watchOS longLook icon role, but App Store Connect validator demands it
I'm hitting a toolchain inconsistency between Xcode 26.3's asset compiler (actool) and App Store Connect's upload validator, and I have build logs proving both sides. The builder side (actool in Xcode 26.3): When compiling the asset catalog for our watchOS target, actool reports "unassigned children" for the watchOS longLook icon role - specifically [watch][44x44][longLook][42mm][2x] - and does NOT compile it into Assets.car. The 42mm longLook icon simply cannot be produced by the toolchain. The checker side (App Store Connect): Uploading the resulting archive is REJECTED by the App Store Connect validator with a "Missing Icon" error for a 44x44 at 2x image (Long Look 42mm). So the builder cannot produce the exact icon the checker demands. This is an Apple toolchain inconsistency - either: actool should compile the longLook 42mm role into Assets.car, or the App Store Connect validator should not demand an icon the toolchain cannot emit. Environment: Xcode 26.3 watchOS app target with an App Icon asset catalog containing the longLook role configured for 42mm 2x Question: Is this a known issue, and is there a workaround to produce an upload that passes validation? I can provide build logs for both sides on request.
0
0
103
3w
Importing Base44 project into Xcode
Hello everyone, I am currently building an app using Base44 and want to bring my project code over into Xcode so I can implement StoreKit in my app for IAPs. Since I am new to moving a web/external project setup into Xcode's native environment, I was hoping to get some guidance on the best workflow. What is the recommended way to structure or import a Base44 project into Xcode? Are there any specific configuration steps or file adjustments required so that Xcode recognizes the source files properly? Once imported, are there any "gotchas" to keep in mind when setting up StoreKit configurations within the new Xcode project? Any advice, tips, or step-by-step pointers would be greatly appreciated! Thanks in advance.
0
0
93
3w
How to get the iOS 27.1 APIs in the Xcode 27.1 Developer Documentation window?
I have Xcode 27.1. When I open the Developer Documentation window, it only has the 27.0 APIs. While running Xcode 27.1 if I go to Xcode -> Settings -> Components -> Developer Documentation -> Info, the info window shows the Xcode version as 27.0 and the Developer Documentation Version as 10M13950. Xcode -> About Xcode definitely shows version 27.1. It's very difficult trying to work on iPhone Duo support when the developer documentation doesn't show any of the iOS 27.1 APIs. Is there any way to get the proper documentation loaded?
1
0
682
3w
Simulator Apple Account sign-in fails with GsService2/postdata 401 (-22411 / -42023) after 2FA, Xcode 27.1
On 25 October 2026, signing in to an Apple Account in the Simulator (Settings > Apple Account > Sign in Manually) fails on iOS 27.0 and iOS 26.5 runtimes (Xcode 27.1, macOS 27.0.1, Apple silicon), for a new account (SMS second factor) and for an established account (trusted-device second factor). The password and second-factor steps complete; then akd logs "Will check in with IDMS" and POST gsas.apple.com/grandslam/GsService2/postdata returns HTTP 401 with ec -22411, sec -42023 ("This action cannot be completed at this time"), followed by "Failed to check in with IDMS! ... AKAuthenticationError Code=-7026". Settings then says the account or password is incorrect. The host Mac checks in with IDMS successfully, and the account works on icloud.com. I need a second account in the Simulator to test CloudKit share acceptance. Is this a known issue, and is there a workaround? Feedback: FB25318712.
Replies
0
Boosts
0
Views
132
Activity
2w
New simulators do not show up in Device Hub
Xcode is completely broken since I installed Xcode 27.1 Beta for the first time. Since then every Xcode I installed is unable to properly install simulators. Even though the SDK appears as installed in settings: Device Hub doesn't show it: To fix it I have to manually add SDK image using "xcrun simctl runtime add" and then play with a couple more commands. I've just installed Xcode 27.2 with iOS 27.2 SDK and again the same problem: There is a problem with signature: Any idea how to fix it, so that I don't have to install it manually every time...?
Replies
1
Boosts
0
Views
563
Activity
2w
Storyboards stuck on "Loading iOS 27.1..." in Xcode 27.1, including new projects
SUMMARY In Xcode 27.1, opening any Main.storyboard never finishes loading. The editor shows "Loading iOS 27.1..." indefinitely. This happens in existing projects and in a brand-new iOS App project created with Interface: Storyboard. Before that, the editor showed "Failed to open Main.storyboard: iOS 27.1 Platform Not Installed." ENVIRONMENT Xcode 27.1 iOS SDK build: 24A94232 (from xcrun --sdk iphonesimulator --show-sdk-build-version) macOS: [YOUR macOS VERSION] Hardware: MacBook Air, Apple M1 Run destination: iPhone 17 Pro Max simulator STEPS TO REPRODUCE Open Xcode 27.1. Create a new project: iOS > App, Interface: Storyboard, Language: Swift. Click Main.storyboard in the Project Navigator. EXPECTED RESULT The storyboard renders in Interface Builder and the Objects library lists UI elements. ACTUAL RESULT The editor stays on "Loading iOS 27.1..." and the Objects library shows "No Matches." Opening the file as Source Code works, and the XML is valid (targetRuntime="iOS.CocoaTouch"), so the file itself is fine. RUNTIME STATE Initially the only iOS 27.1 runtime installed was build 24A94425, shown as Ready in xcrun simctl runtime list. Xcode reported "iOS 27.1 Platform Not Installed," and the runtime did not appear in Settings > Components. The Xcode SDK build is 24A94232, which does not match 24A94425. I ran xcodebuild -downloadPlatform iOS, which installed iOS 27.1 (24A94232). The error then changed to "Loading iOS 27.1..." and stayed there. Settings > Components then showed an "Update" button for iOS 27.1 (8.07 GB). Clicking it installed iOS 27.1 (24A94425) again, so both builds are now present and Ready. The storyboard is still stuck. WHAT I TRIED (none fixed it) Deleting ~/Library/Developer/Xcode/DerivedData sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService Removing and reinstalling the iOS 27.1 runtime Restarting the Mac Waiting several minutes on the first load (~/Library/Developer/Xcode/UserData/IB Support does not exist on this machine)
Replies
1
Boosts
0
Views
115
Activity
2w
built-in SwiftBuild temporary directory
Installed Xcode ProductBuildVersion 27A9275, SwiftBuild 25000.0.222. Synthetic static Swift framework and three arithmetic XCTest cases only. No real app, account, health data or code-signing identity is needed. A Seatbelt profile allows an exclusively owned child of the normal macOS per-user temporary directory, public SDK/toolchain reads and necessary build services, while denying private-home data and writes elsewhere. Network is denied. The process receives TMPDIR, TMP and TEMP set to that owned child. Fresh DerivedData and result-bundle paths also point inside it. A generic iOS Simulator build-for-testing stops at builtin-infoPlistUtility: mkdtemp tries to create swbuild.tmp.* directly in the per-user temporary parent and returns EPERM. The documented -userdefault=value argument syntax accepts -SWBBuildServiceEnvironmentOverrides='{ TMPDIR = "<owned-child>/"; TMP = "<owned-child>/"; TEMP = "<owned-child>/"; }' but a changed synthetic trial still selects the parent. Acceptance is not proof of the runtime dictionary type or transport adoption. A standalone process under the same profile, using installed Foundation, reports getenv("TMPDIR") as the owned child while both FileManager.default.temporaryDirectory and NSTemporaryDirectory return the parent. The installed SwiftBuild Path.temporaryDirectory implementation calls NSFileManager.defaultManager temporaryDirectory. The out-of-process initializer requires a string-to-string dictionary, then applies it to the child environment. Question for Apple: what supported per-invocation control makes built-in tasks use an explicitly owned temporary child on this version, and what supported no-build diagnostic proves its effective adoption? Is this Foundation behavior expected under Seatbelt? We cannot grant access to the shared parent or private home, change trust/keychain access, inject code, or modify installed libraries. CoreSimulator's separate runtime-availability error is not attributed to this temporary-path issue.
Replies
0
Boosts
0
Views
39
Activity
2w
iOS app installation fails with 0xe8008018 for company team, but succeeds with another Apple Account
iOS app installation fails with 0xe8008018 for company team, but succeeds with another Apple Account Hello Apple Developer Community, We are facing a persistent code-signing issue while installing iOS development builds on a physical iPhone. We have contacted Apple Developer Support multiple times, but we have not yet received a technical explanation for the root cause. Environment Xcode: 26.6 (Build 17F113) macOS: 26.5.2 (Build 25F84) Device: iPhone 12 Pro Max (iPhone12,5) iOS: 26.5 (Build 23F77) Company Team ID: T6MQ4RXG46 Development certificate: Apple Development: Muthoot Money Limited (3MH4U8W7M5) Error message When installing the app through Xcode, installation fails with: 0xe8008018 — The identity used to sign the executable is no longer valid. The full error also contains: MIInstallerErrorDomain Code=13 CoreDeviceError Code=3002 IXUserPresentableErrorDomain Code=14 ApplicationVerificationFailed Troubleshooting performed Verified that the development certificate is within its validity period. Checked the provisioning profile's expiration date and confirmed that the test device UDID is included. Verified the app signature locally using codesign --verify --deep --strict. Confirmed that the app's signing authority and TeamIdentifier match our company team. Tested both our existing application and a newly created minimal iOS project named SigningTest. Important finding The newly created SigningTest app also fails to install when signed using our company team. However, the same test app installs successfully on the same iPhone when signed using another Apple Account's team. This suggests that the issue may be related to the company team's signing configuration or another team-specific factor, although we have not identified the root cause. Questions What could cause iOS to reject a locally valid app signature with error 0xe8008018? How can we identify the specific certificate, provisioning, trust, or device-verification check that is failing during installation? Is there any additional diagnostic command or device log we should collect? Could this indicate a team-specific signing issue that requires investigation by Apple? We would appreciate any technical guidance from developers who have encountered and resolved the same error. Thank you.
Replies
1
Boosts
0
Views
233
Activity
2w
Unable to download iOS 27 simulator images on Xcode 27.1
Hello so i have been trying to download ios 27 simulator images in xcode but whenever i try to download it, it forever gets stuck in the state of preparing to download and never downloads it even after waiting for 2-3 hours, Can somebody please help me figure it out, i have tried uninstalling and reinstalling xcode but the issue isn't resolved please if someone has solution to this problem do share here!!
Replies
2
Boosts
0
Views
312
Activity
2w
Hosted test bundle links a second static copy of a package module already in a PackageProduct framework
I'm seeing Xcode link two copies of a Swift package module into one test process. The build succeeds without a warning or error, but at run time the app and its hosted unit tests each use their own copy of the module's globals and task-locals. Environment: Xcode 27.0 (27A266a), Swift 6.4, macOS 26.6.2, iPhone 17 Simulator (iOS 27.0, arm64). Sample project: <LINK TO HOSTED SAMPLE> Package graph Logging package Logging library target LoggingTesting → depends on the Logging *target* (same package) Content package Content → depends on the Logging *product* ContentTesting → depends on the Content target Repro (app) links products Logging, Content ReproTests (hosted unit test) links products LoggingTesting, ContentTesting TEST_HOST / BUNDLE_LOADER = Repro.appLoggingTesting depends on the Logging target rather than the product so it can use package-access API: a @TaskLocal package static var label on LoggingSystem. Libraries that ship a testing companion commonly use this layout. Steps to reproduce xcodebuild test -project Repro.xcodeproj -scheme Repro \ -destination 'platform=iOS Simulator,name=iPhone 17,OS=27.0' -derivedDataPath /tmp/repro-dd cd /tmp/repro-dd/Build/Products/Debug-iphonesimulator ls Repro.app/Frameworks nm Repro.app/PlugIns/ReproTests.xctest/ReproTests | xcrun swift-demangle | grep -v ' U ' | grep LoggingSystem otool -L Repro.app/PlugIns/ReproTests.xctest/ReproTestsExpected The test process contains one copy of Logging, so all three tests pass: Logger.shared is the same instance in the test bundle and the app, and a task-local bound through LoggingTesting is visible to app code and to Content. Actual All three tests fail: ✘ Test loggerShared_whenReadFromTestAndApp_isTheSameInstance() recorded an issue at ReproTests.swift:11:9: Expectation failed: ObjectIdentifier(Logger.shared) == appLoggerIdentity() ✘ Test taskLocal_whenBoundByLoggingTesting_isVisibleToApp() recorded an issue at ReproTests.swift:18:13: Expectation failed: appLoggingLabel() == "test" ✘ Test taskLocal_whenBoundByLoggingTesting_isVisibleToContent() recorded an issue at ReproTests.swift:26:13: Expectation failed: contentLoggingLabel() == "test"The built products explain it: Repro.app/Frameworks contains Content.framework and Logging_35C93DA702091ECE_PackageProduct.framework. The app and the test bundle both link Content, so Xcode builds it as a dynamic framework. That framework depends on the Logging product, so Xcode wraps the product in its own framework. ReproTests links the wrapper framework (otool -L lists @rpath/Logging_35C93DA702091ECE_PackageProduct.framework/…) and defines its own copy of the module: T static Logging.LoggingSystem.label.getter : Swift.String T Logging.LoggingSystem.$label.unsafeMutableAddressor : Swift.TaskLocal<Swift.String> S static Logging.LoggingSystem.$label : Swift.TaskLocal<Swift.String> T Logging.Logger.shared.unsafeMutableAddressor : Logging.Logger S static Logging.Logger.shared : Logging.Logger D type metadata for Logging.LoggerThis static copy comes from LoggingTesting's dependency on the Logging target. LoggingTesting binds $label in the test bundle's copy, while the app and Content read the wrapper framework's copy and still see "default". Control Removing ContentTesting from ReproTests (with its import and the third test) makes the problem go away. No second image links Content, so Xcode keeps it static and builds the Logging target as a single shared Logging.framework. The test bundle then only references the symbols (U Logging.LoggingSystem.$label…), and the remaining two tests pass. What I've tried Declaring the package products type: .static. Xcode still builds the target as a dynamic framework, and the duplicate remains. Moving the testing library into its own package that depends on the Logging product. This removes the duplicate, but package access can't cross package boundaries, so the task-local's binding API has to become public on Logging. Removing Content's dependency on Logging. This also removes the duplicate, but Content needs to log. Why it matters Our production app hit this when it adopted a new version of a package whose main library depends on our logging package's product and that ships its own testing companion. After the update, every unit test that asserted on logging through the logging package's testing library silently recorded nothing. Tests that inject mock loggers directly kept passing, so the update looked healthy. We found the cause only by inspecting symbols with nm. Questions Is it expected that Xcode links a second, static copy of a package module into a hosted test bundle that also links a framework Xcode generated for the same module? If not, I'll file a Feedback. If it is expected, why is there no diagnostic? What's the supported way to structure a library and its testing companion when the companion needs package access to the library, and an app and its hosted unit tests consume the library through another package? Is there a package declaration or build setting that makes Xcode use a single copy of Logging in this graph?
Replies
0
Boosts
0
Views
53
Activity
2w
Xcode 27.1 compilation error possibly due to swift versions discrepancy
Compiling my project using Xcode 27.1 ends with an error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/arm64e-apple-macos.swiftinterface:1:1: error: failed to build module 'SwiftUI'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.31.4 clang-2100.3.31.1)', while this compiler is 'Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)'). Please select a toolchain which matches the SDK. 1 | // swift-interface-format-version: 1.0 | `- error: failed to build module 'SwiftUI'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.31.4 clang-2100.3.31.1)', while this compiler is 'Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)'). Please select a toolchain which matches the SDK. 2 | // swift-compiler-version: Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.31.4 clang-2100.3.31.1) 3 | // swift-module-flags: -target arm64e-apple-macos27.0 -enable-objc-interop -target-arch-variant arm64e.x1 -enable-library-evolution -language-mode 5 -O -library-level api -enable-experimental-feature AnyAppleOSAvailability -enable-upcoming-feature InferSendableFromCaptures -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -user-module-version 8.0.84.1.406 -module-name SwiftUI -package-name SwiftUICompiling it with Xcode 27 ends without error. Do you see any other root cause than the one mentionned: Xcode 27.1 uses swiftlang-6.4.0.34.1 clang-2100.3.34.1 while internal sdk was compiled with swiftlang-6.4.0.31.4 clang-2100.3.31.1 ?
Replies
1
Boosts
0
Views
254
Activity
2w
Is it no longer possible in Xcode 27.1 to run/debug Apps on an iPhone X?
I've still an old iPhone X (running iOS 16.7.16) and like to also use this to test/debug my Apps, but it seems that XCode 27.1 does no longer support it. The device simply does not show up in the new Device Hub. I still have some App-specific data on this device, which I would like to use for the tests, but as XCode now ignores this device, I can't even copy the data over to the newer devices. Is it somhoe possible to add the device to the device Hub, or make it available to XCode so I can actually test on this device as well?
Replies
2
Boosts
0
Views
241
Activity
2w
Xcode 27.1 does not recognize iPhone 15 Pro — pairingState: unsupported
Hello, I am a beginner learning to develop iOS apps with SwiftUI. My setup: MacBook running macOS 27.0.1 Xcode 27.1 iPhone 15 Pro running iOS 27.0.1 Developer Mode enabled on the iPhone My iPhone is connected via USB-C and is recognized by Finder and macOS System Information. However, my iPhone does not appear as a run destination in Xcode. Only simulators are available. The command xcrun devicectl list devices detects the physical iPhone, but its connection information shows: pairingState: unsupported tunnelState: unavailable I have already restarted both devices, tried different USB ports, checked my Apple account in Xcode, and confirmed that Developer Mode is enabled. A simple SwiftUI test app runs correctly in the simulator, but I cannot install it on my physical iPhone. What could cause this pairing problem, and how can I resolve it? Thank you for your help.
Replies
8
Boosts
0
Views
212
Activity
2w
Network connections made by Xcode's MCP tool service when mcpbridge connects (Xcode 27.0)
On Xcode 27.0 (27A266a) / macOS 27.2, I ran xcrun mcpbridge from a scripted stdio MCP client and captured traffic system-wide, with a curl control visible in the same captures. Findings: mcpbridge itself opened no network sockets (online or offline, and under a deny-network sandbox). The "Xcode Service" process it connects to made about 2 KB of outbound TLS to an Apple edge address at startup, plus a certificate check via trustd and a request to devimages-cdn.apple.com. When a workspace was opened through XcodeOpenWorkspace, Xcode Service also made two TLS connections to appstoreconnect.apple.com (about 5 KB upstream). This did not occur without a workspace open, and XcodeListWorkspaces itself caused no traffic. mcpbridge sends a CoreAnalytics event to analyticsd (strings: "MCPBridgeTelemetry: Submitted CoreAnalytics event" / "Telemetry off; skipped"), payload <private>. Questions: What is sent to App Store Connect when a workspace is opened this way, and is it the same as opening the project in Xcode directly? What does the MCPBridgeTelemetry event contain, is it sent off-device, and what setting controls it? Is any MCP tool input or output (file contents, paths, build output) sent to Apple?
Replies
0
Boosts
0
Views
129
Activity
3w
CarPlay Simulator ignores Light appearance setting after sunset
When I set the Appearance in the CarPlay Simulator to Light, the setting is only respected during daytime. After sunset, CarPlay switches to and stays in Dark mode, regardless of the Light setting. This makes it difficult to test Light and Dark mode during evening development sessions, since Light mode is unavailable until the next sunrise. Expected behavior: When Appearance is explicitly set to Light, the CarPlay Simulator should stay in Light mode at any time of day, so both appearances can be tested whenever needed. Actual behavior: After sunset, the CarPlay Simulator remains in Dark mode even though Light is selected. This issue has been present for quite a while. A fix would be much appreciated. Thank you!
Replies
2
Boosts
0
Views
83
Activity
2w
iOS 17 Simulator Unresponsive in Xcode 27.1 — Unable to Type or Interact with the Screen
Hello, I am experiencing an issue when running an iOS application on an iOS 17.x Simulator using Xcode 27.1. The simulator becomes completely unresponsive to user input, whether my application is running or not. I cannot type anything or interact with the screen, including tapping UI elements. However, I can still switch between Light and Dark Mode, and the appearance changes accordingly. This makes it impossible to test my application on iOS 17.x using the simulator. Has anyone experienced a similar issue with Xcode 27.1 and the iOS 17.x Simulator? Is there a known workaround or configuration that could resolve this? Any help or suggestions would be appreciated. Thank you.
Replies
4
Boosts
0
Views
167
Activity
2w
Supported network isolation for app-hosted iOS Simulator tests
What is Apple’s supported way to prevent outbound network access during app-hosted iOS Simulator unit tests, without disabling system services or modifying system tunnel routes? Environment: Apple silicon Mac, macOS 26.6.2 Xcode 27.0, iOS 27.0 Simulator Separate, newly created Simulator Xcode-managed local ad-hoc build 17 fictional-data tests using XCTest and Swift Testing We intend to use xcodebuild test-without-building. The test bodies exercise models and request construction without sending requests, but the app host’s startup behavior is also within our isolation requirement. Tests have not been run. During an authorized Wi-Fi-off diagnostic, we waited ten seconds and collected three samples, checking Wi-Fi power before and after each sample. All showed: Wi-Fi Off No effective network interface reported by scutil --nwi No route selected by ordinary local lookups for IPv4 and IPv6 documentation addresses Remaining interface-scoped IPv6 default entries through utun interfaces Routes selected when IPv6 lookups explicitly specified those tunnel interfaces These were routing-table queries only; no diagnostic packets were sent. Wi-Fi was restored afterward. We have not established whether the scoped routes could carry external traffic. Please advise on a supported isolation mechanism and how to validate it for the Simulator test host, including startup. We want to preserve normal macOS security/system services and avoid relying on either route-table presence or absence as proof of isolation. No real user data or credentials are needed. We can provide a redacted diagnostic summary if useful.
Replies
0
Boosts
0
Views
113
Activity
3w
Xcode Coding Assistant closes connection with AI server automatically after 5 minutes
I'm trying to use Xcode Coding Assistant connected to local AI server, but the chat fails after 5 minutes with error: The request timed out. Detail: No Data/Bytes for request: http://localhost... AI server gives me info that client disconnected: 2026-10-19 22:24:23 [INFO] [nvidia/nemotron-3.5-super-vl] Prompt processing progress: 88.3% 2026-10-19 22:24:30 [INFO] [LM STUDIO SERVER] Client disconnected. Stopping generation... (If the model is busy processing the prompt, it will finish first.) 2026-10-19 22:24:30 [INFO] [nvidia/nemotron-3.5-super-vl] Finished streaming response 2026-10-19 22:24:31 [DEBUG] 17.12.133.523 W srv stop: cancel task, id_task = 0 2026-10-19 22:24:37 [DEBUG] 17.18.441.198 I slot release: id 0 | task 0 | stop processing: n_tokens = 47985, truncated = 0 It looks like http/tcp default timeout. AI suggests that it should be possible to set Xcode Coding Assistant timeout, but I cannot find it anywhere. How is Xcode Coding Assistant supposed to work if it shuts down on default network protocol timeout? I haven't tried yet on nVidia hardware, which should be faster, but it could still be a problem when working on multiple files in project with inference running on one Blackwell chip. I do not have nVidia rack with 72 chips, it wouldn't fit to my home office. How do I change the network timeout for Coding Assistant? Configuration: MacOS 27.0.1 (26A434) Xcode 27.0
Replies
1
Boosts
0
Views
100
Activity
3w
Xcode 27.1 Cnvas stuck on the Duo
Hey All, I am running Xcode 27.1 on a Mac Studio running GG 27.0.1 No matter which simulator is selected, Xcode shows the Duo. I am tearing my hair out trying to update for the nnew phones. Any idea what is going on? Thanks. Blessings, --Mark
Replies
1
Boosts
0
Views
66
Activity
2w
Xcode 26.3 actool does not compile watchOS longLook icon role, but App Store Connect validator demands it
I'm hitting a toolchain inconsistency between Xcode 26.3's asset compiler (actool) and App Store Connect's upload validator, and I have build logs proving both sides. The builder side (actool in Xcode 26.3): When compiling the asset catalog for our watchOS target, actool reports "unassigned children" for the watchOS longLook icon role - specifically [watch][44x44][longLook][42mm][2x] - and does NOT compile it into Assets.car. The 42mm longLook icon simply cannot be produced by the toolchain. The checker side (App Store Connect): Uploading the resulting archive is REJECTED by the App Store Connect validator with a "Missing Icon" error for a 44x44 at 2x image (Long Look 42mm). So the builder cannot produce the exact icon the checker demands. This is an Apple toolchain inconsistency - either: actool should compile the longLook 42mm role into Assets.car, or the App Store Connect validator should not demand an icon the toolchain cannot emit. Environment: Xcode 26.3 watchOS app target with an App Icon asset catalog containing the longLook role configured for 42mm 2x Question: Is this a known issue, and is there a workaround to produce an upload that passes validation? I can provide build logs for both sides on request.
Replies
0
Boosts
0
Views
103
Activity
3w
Importing Base44 project into Xcode
Hello everyone, I am currently building an app using Base44 and want to bring my project code over into Xcode so I can implement StoreKit in my app for IAPs. Since I am new to moving a web/external project setup into Xcode's native environment, I was hoping to get some guidance on the best workflow. What is the recommended way to structure or import a Base44 project into Xcode? Are there any specific configuration steps or file adjustments required so that Xcode recognizes the source files properly? Once imported, are there any "gotchas" to keep in mind when setting up StoreKit configurations within the new Xcode project? Any advice, tips, or step-by-step pointers would be greatly appreciated! Thanks in advance.
Replies
0
Boosts
0
Views
93
Activity
3w
How to get the iOS 27.1 APIs in the Xcode 27.1 Developer Documentation window?
I have Xcode 27.1. When I open the Developer Documentation window, it only has the 27.0 APIs. While running Xcode 27.1 if I go to Xcode -> Settings -> Components -> Developer Documentation -> Info, the info window shows the Xcode version as 27.0 and the Developer Documentation Version as 10M13950. Xcode -> About Xcode definitely shows version 27.1. It's very difficult trying to work on iPhone Duo support when the developer documentation doesn't show any of the iOS 27.1 APIs. Is there any way to get the proper documentation loaded?
Replies
1
Boosts
0
Views
682
Activity
3w