You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first xtool dev invocation can take a bit because it has to compile and cache the SDK modules. Can you give it 3-4 minutes and see if it works? If not, please share the output of swift build --swift-sdk arm64-apple-ios -v
Looks like it does return around 3 min in, but with build errors
# xtool new Hello# cd Hello# sudo xtool dev
Planning...
[1/1] Planning build
Building for debugging...
/root/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/usr/include/Spatial/Structures.h:4:10: note: while building module 'simd' imported from /root/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/usr/include/Spatial/Structures.h:4:
2 |#define Spatial_Structures_h
3 |#include <Spatial/Base.h>
4 |#include <simd/simd.h>|`- note: while building module 'simd' imported from /root/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/usr/include/Spatial/Structures.h:4: 5 |#include <stdbool.h> 6 |/root/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/usr/include/simd/base.h:96:13: note: while building module '_Builtin_intrinsics' imported from /root/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/usr/include/simd/base.h:96: 94 |* automatically included with simd.h */ 95 |# if defined __ARM_NEON 96 |# include <arm_neon.h>|`- note: while building module '_Builtin_intrinsics' imported from /root/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/usr/include/simd/base.h:96: 97 |# elif defined __i386__ || defined __x86_64__ 98 |# include <immintrin.h><module-includes>:2:9: note: in file included from <module-includes>:2:1 |#import "arm_acle.h"2 |#import "arm_neon.h"|`- note: in file included from <module-includes>:2:3 |#import "arm_fp16.h"4 |... Explodes a bit.../root/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/usr/include/simd/base.h: 0:/root/.swiftpm/swift-sdks/darwin.artifactbundle/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.5.sdk/usr/lib/swift/simd.swiftmodule/arm64e-apple-ios.swiftinterface: 0:Error: exited(1)
Activity
akissu commentedon Sep 10, 2026
Two workarounds:
run as sudo, but I'd rather not do this:
sudo xtool setupChange /usr/lib permissions, but will get overwritten by package manager at some point:
Additional:
This may/may not be related, but I seem to be having another write related issue. The following command hangs forever
kabiroberai commentedon Sep 10, 2026
I think you're right that this is the same issue as swiftlang/swift-foundation#1125. Working on a fix in #255.
Re your second issue,
The first
xtool devinvocation can take a bit because it has to compile and cache the SDK modules. Can you give it 3-4 minutes and see if it works? If not, please share the output ofswift build --swift-sdk arm64-apple-ios -vakissu commentedon Sep 13, 2026
Looks like it does return around 3 min in, but with build errors
kabiroberai commentedon Sep 14, 2026
@akissu could you try re-installing the Darwin sdk, after updating to xtool v1.19.2? ie run
xtool sdk installagainsdk: fix permission issue when copying clang resources (xtool-org#255)