OK.
When you run this command, what do you see:
% find YourApp.app -name "libswiftCompatibilitySpan.dylib"
YourApp.app/Contents/Frameworks/libswiftCompatibilitySpan.dylib
libswiftCompatibilitySpan.dylib exists to provide Span support on older systems. AFAICT it’s expected to work on Intel Macs running 13.1 or later:
% vtool -show-build Test817488.app/Contents/Frameworks/libswiftCompatibilitySpan.dylib
Test817488.app/Contents/Frameworks/libswiftCompatibilitySpan.dylib (architecture x86_64):
Load command 10
cmd LC_BUILD_VERSION
cmdsize 32
platform MACOS
minos 13.1
sdk 26.2
ntools 1
tool LD
version 1230.1
…
And I tested it here in my office, on both 26.2 (Rosetta) and 13.6.1 (real hardware), and I didn’t have a problem. However, that was from my main app, not from a privileged helper tool, so it’s possible that there’s something specific to privileged helper tools in play here.
My test code is pasted in at the end of this email. If you temporarily add this to your app, does it work on the same Intel Mac?
And with that in place, does your helper tool spontaneously start working?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
func runTest() {
print("AppDelegate.testAction(_:)")
Task {
do {
print("will list")
let result = try await run(.name("ls"), output: .string(limit: 4096))
print("did list, \(result)")
} catch {
print("did not list, \(error)")
}
}
}