-
-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Hi! Using SwiftPM, this package fails immediately after adding to a project with the following error:
Conflicting options '-warnings-as-errors' and '-suppress-warnings'
This seem to be caused by this in your package manifest:
.treatAllWarnings(as: .error),
The build failure doesn't affect your CI because Xcode is forcing the -suppress-warnings flag on build. IDK if that can be changed.
builtin-SwiftDriver -- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name AsyncQueue -Onone -enforce-exclusivity\=checked @/Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/Objects-normal/arm64/AsyncQueue.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -warnings-as-errors -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.1.sdk -target arm64-apple-macos10.15 -g -module-cache-path /Users/jks/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -suppress-warnings -index-store-path /Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Products/Debug -Isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Products/Debug -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/jks/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx26.1-25B74-3ae1261907bdadc328169391a47051a6.sdkstatcache -output-file-map /Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/Objects-normal/arm64/AsyncQueue-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/jks/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -sdk-module-cache-path /Users/jks/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/Objects-normal/arm64/AsyncQueue.swiftmodule -user-module-version 1.0.0 -validate-clang-modules-once -clang-build-session-file /Users/jks/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -package-name swift_async_queue -Xcc -I/Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/Objects-normal/arm64/AsyncQueue_const_extract_protocols.json -Xcc -I/Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Products/Debug/include -Xcc -I/Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/DerivedSources-normal/arm64 -Xcc -I/Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/DerivedSources/arm64 -Xcc -I/Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/jks/Library/Developer/Xcode/DerivedData/PhotoManager-bxadxphqhqypaddwdoktjohmmzty/Build/Intermediates.noindex/swift-async-queue.build/Debug/AsyncQueue.build/Objects-normal/arm64/AsyncQueue-Swift.h -working-directory /Users/jks/Documents/PhotoManager/PhotoManager.xcodeproj -experimental-emit-module-separately -disable-cmo
error: Conflicting options '-warnings-as-errors' and '-suppress-warnings' (in target 'AsyncQueue' from project 'swift-async-queue')
dfed
Metadata
Metadata
Assignees
Labels
No labels