Closed as not planned
Description
Is it reproducible with SwiftPM command-line tools: swift build
, swift test
, swift package
etc?
- Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands,
swift build
,swift test
,swift package
etc.
Description
Swift build failure on a package that uses a resource; very similar to #5924 / #5923
/Applications/Xcode-16.0.0-Beta.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -fobjc-arc -target arm64-apple-macosx10.13 -O0 -DSWIFT_PACKAGE=1 -DDEBUG=1 -fblocks -index-store-path /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/index/store -fmodules -fmodule-name=CrashReporter -fmodules-cache-path=/Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/ModuleCache -I /Users/sarunas/code/github/plcrashreporter/include -DPLCR_PRIVATE -DPLCF_RELEASE_BUILD -DPLCRASHREPORTER_PREFIX= -DSWIFT_PACKAGE -I/Users/sarunas/code/github/plcrashreporter/Dependencies/protobuf-c -include /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/CrashReporter.build/DerivedSources/resource_bundle_accessor.h -isysroot /Applications/Xcode-16.0.0-Beta.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -F /Applications/Xcode-16.0.0-Beta.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -fPIC -g -MD -MT dependencies -MF /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/CrashReporter.build/Source/PLCrashReportSystemInfo.m.d -c /Users/sarunas/code/github/plcrashreporter/Source/PLCrashReportSystemInfo.m -o /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/CrashReporter.build/Source/PLCrashReportSystemInfo.m.o
/Applications/Xcode-16.0.0-Beta.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -fobjc-arc -target arm64-apple-macosx10.13 -O0 -DSWIFT_PACKAGE=1 -DDEBUG=1 -fblocks -index-store-path /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/index/store -fmodules -fmodule-name=CrashReporter -fmodules-cache-path=/Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/ModuleCache -I /Users/sarunas/code/github/plcrashreporter/include -DPLCR_PRIVATE -DPLCF_RELEASE_BUILD -DPLCRASHREPORTER_PREFIX= -DSWIFT_PACKAGE -I/Users/sarunas/code/github/plcrashreporter/Dependencies/protobuf-c -include /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/CrashReporter.build/DerivedSources/resource_bundle_accessor.h -isysroot /Applications/Xcode-16.0.0-Beta.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -F /Applications/Xcode-16.0.0-Beta.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -fPIC -g -MD -MT dependencies -MF /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/CrashReporter.build/Source/PLCrashReportSymbolInfo.m.d -c /Users/sarunas/code/github/plcrashreporter/Source/PLCrashReportSymbolInfo.m -o /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/CrashReporter.build/Source/PLCrashReportSymbolInfo.m.o
In file included from <built-in>:1:
In file included from /Users/sarunas/code/github/plcrashreporter/.build/arm64-apple-macosx/debug/CrashReporter.build/DerivedSources/resource_bundle_accessor.h:1:
In file included from /Applications/Xcode-16.0.0-Beta.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:9:
/Applications/Xcode-16.0.0-Beta.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:612:1: error: expected unqualified-id
612 | @class NSString, Protocol;
| ^
If resource is not used, then compilation works fine.
See microsoft/plcrashreporter#315
Expected behavior
No response
Actual behavior
Compilation failure
Steps to reproduce
git clone https://github.com/microsoft/plcrashreporter.git
cd plcrashreporter.git && git checkout 1.11.2 # but affects main as well
swift build
Swift Package Manager version/commit hash
6.0.0-dev
Swift & OS version (output of swift --version ; uname -a
)
swift --version
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx14.0