Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift: Xcode 16 - Library not loaded: @rpath/libSwiftSyntax.dylib #17819

Open
weisunOW opened this issue Oct 22, 2024 · 1 comment
Open

Swift: Xcode 16 - Library not loaded: @rpath/libSwiftSyntax.dylib #17819

weisunOW opened this issue Oct 22, 2024 · 1 comment
Labels
question Further information is requested

Comments

@weisunOW
Copy link

weisunOW commented Oct 22, 2024

We recently updated our iOS project to build with Xcode 16, swift 5 mode (SWIFT_VERSION = 5). However our Azure CodeQL pipeline started to fail on database creation with Library not loaded: @rpath/libSwiftSyntax.dylib error for both WidgetExtension and IntentsExtension.

We've tried different CodeQL versions: 2.18.0, 2.19.1, 2.19.2, all failed with the same error. The same command worked when we built with Xcode 15.4, unfortunately we cannot fallback to Xcode 15.4 now.

Here is the database create command, please note that .codeql.yml is currently empty.
codeql database create -l swift codeql-database --threads 0 --codescanning-config .codeql.yml --command \"${WORKSPACE_DIR}/Scripts/ci/az-build-for-codeql.sh\"

The --command build script runs xcodebuild command below, the build script itself builds correctly without CodeQL cli.
xcodebuild -workspace App.xcworkspace -scheme Application -derivedDataPath Build/DerivedData -destination "OS=18.0,name=iPhone 16 Pro Max"

Here is the failure part of the build log, sorry we cannot share the full log due to our policy. The log suggests that libSwiftSyntax.dylib cannot be found in the listed paths, however I'm sure that libSwiftSyntax.dylib come as part of Xcode 16 under /Application/Xcode.app/Content/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host. Please advise if we have missed anything?

[2024-10-22 13:32:15] [build-stdout] ExtractAppIntentsMetadata (in target 'IntentsExtension' from project 'App')
[2024-10-22 13:32:15] [build-stdout]     cd /Users/devops/azure-agent-0/_work/20/s/App
[2024-10-22 13:32:15] [build-stdout]     /Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/appintentsmetadataprocessor --output /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Products/Debug-iphonesimulator/IntentsExtension.appex --toolchain-dir /Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --module-name IntentsExtension --sdk-root /Applications/Xcode-16.0.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk --xcode-version 16A242d --platform-family iOS --deployment-target 15.0 --bundle-identifier au.com.app.mobile.dev.intentsextension --target-triple arm64-apple-ios15.0-simulator --binary-file /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Products/Debug-iphonesimulator/IntentsExtension.appex/IntentsExtension --dependency-file /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/IntentsExtension.build/Objects-normal/arm64/IntentsExtension_dependency_info.dat --stringsdata-file /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/IntentsExtension.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata --source-file-list /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/IntentsExtension.build/Objects-normal/arm64/IntentsExtension.SwiftFileList --metadata-file-list /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/IntentsExtension.build/IntentsExtension.DependencyMetadataFileList --swift-const-vals-list /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/IntentsExtension.build/Objects-normal/arm64/IntentsExtension.SwiftConstValuesFileList --compile-time-extraction --deployment-aware-processing --validate-assistant-intents
[2024-10-22 13:32:15] [build-stdout] dyld[61317]: Library not loaded: @rpath/libSwiftSyntax.dylib
[2024-10-22 13:32:15] [build-stdout]   Referenced from: <02FDFF53-8DFD-3994-86CB-405776B79E9A> /Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/AppIntentsSupport.framework/Versions/A/AppIntentsSupport
[2024-10-22 13:32:15] [build-stdout]   Reason: tried: '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/Frameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/AppIntentsSupport.framework/Versions/A/Frameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/AppIntentsSupport.framework/Versions/A/../Frameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/AppIntentsMetadataExtractor.framework/Versions/A/../../../libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/Frameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/Frameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Frameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Frameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Frameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../PlugIns/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../PlugIns/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Frameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Frameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Pl
[2024-10-22 13:32:15] [build-stdout] ugIns/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../PlugIns/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file)
[2024-10-22 13:32:15] [build-stdout] Command ExtractAppIntentsMetadata failed with a nonzero exit code
[2024-10-22 13:32:15] [build-stdout] ExtractAppIntentsMetadata (in target 'WidgetExtension' from project 'App')
[2024-10-22 13:32:15] [build-stdout]     cd /Users/devops/azure-agent-0/_work/20/s/App
[2024-10-22 13:32:15] [build-stdout]     /Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/appintentsmetadataprocessor --output /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Products/Debug-iphonesimulator/WidgetExtension.appex --toolchain-dir /Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --module-name WidgetExtension --sdk-root /Applications/Xcode-16.0.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk --xcode-version 16A242d --platform-family iOS --deployment-target 15.0 --bundle-identifier au.com.app.mobile.dev.widgetextension --target-triple arm64-apple-ios15.0-simulator --binary-file /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Products/Debug-iphonesimulator/WidgetExtension.appex/WidgetExtension --dependency-file /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/WidgetExtension.build/Objects-normal/arm64/WidgetExtension_dependency_info.dat --stringsdata-file /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/WidgetExtension.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata --source-file-list /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/WidgetExtension.build/Objects-normal/arm64/WidgetExtension.SwiftFileList --metadata-file-list /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/WidgetExtension.build/WidgetExtension.DependencyMetadataFileList --swift-const-vals-list /Users/devops/azure-agent-0/_work/20/s/Build/DerivedData/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/WidgetExtension.build/Objects-normal/arm64/WidgetExtension.SwiftConstValuesFileList --compile-time-extraction --deployment-aware-processing --validate-assistant-intents
[2024-10-22 13:32:15] [build-stdout] dyld[61318]: Library not loaded: @rpath/libSwiftSyntax.dylib
[2024-10-22 13:32:15] [build-stdout]   Referenced from: <02FDFF53-8DFD-3994-86CB-405776B79E9A> /Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/AppIntentsSupport.framework/Versions/A/AppIntentsSupport
[2024-10-22 13:32:15] [build-stdout]   Reason: tried: '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/Frameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/AppIntentsSupport.framework/Versions/A/Frameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/AppIntentsSupport.framework/Versions/A/../Frameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/AppIntentsMetadataExtractor.framework/Versions/A/../../../libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/Frameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/Frameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Frameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/Users/devops/azure-agent-0/_work/20/s/codeql-database/working/copy-root/000001F6/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Frameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Frameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../PlugIns/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../PlugIns/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../../../PrivateFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Frameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Frameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../SharedFrameworks/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../Pl
[2024-10-22 13:32:15] [build-stdout] ugIns/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../PlugIns/libSwiftSyntax.dylib' (no such file), '/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode-16.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../../XcodeDefault.xctoolchain/usr/lib/libSwiftSyntax.dylib' (no such file)
[2024-10-22 13:32:15] [build-stdout] Command ExtractAppIntentsMetadata failed with a nonzero exit code
[2024-10-22 15:30:53] [build-stderr] ** BUILD FAILED **
[2024-10-22 15:30:53] [build-stderr] The following build commands failed:
[2024-10-22 15:30:53] [build-stderr] 	ExtractAppIntentsMetadata (in target 'IntentsExtension' from project 'App')
[2024-10-22 15:30:53] [build-stderr] 	ExtractAppIntentsMetadata (in target 'WidgetExtension' from project 'App')
[2024-10-22 15:30:53] [build-stderr] 	Building workspace App with scheme Application
[2024-10-22 15:30:53] [build-stderr] (3 failures)
[2024-10-22 15:30:53] [ERROR] Spawned process exited abnormally (code 65; tried to run: [/Users/devops/Developer/codeql/tools/osx64/preload_tracer, /Users/devops/azure-agent-0/_work/20/s/Scripts/ci/az-build-for-codeql.sh])
@weisunOW weisunOW added the question Further information is requested label Oct 22, 2024
@coadaflorin
Copy link
Contributor

@weisunOW thanks for reporting this!
Currently we do not support scanning Swift code when using Xcode16, but we are working on adding support. We are currently investigating this and will post an update when we have something you can test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants