-
-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
Description
What's the uncaptured output?
For Swift package targets containing macros, if they have not been enabled, xcodebuild gives this error when computing the target dependency graph:
...
/Users/runner/Library/Developer/Xcode/DerivedData/DeveloperAutomation-ayrroxrhfzoyoxdehmcuuwlcbuqz/SourcePackages/checkouts/Swallow/Package.swift:PACKAGE-TARGET:SwallowMacros: error: Target 'SwallowMacros' must be enabled before it can be used.
...
This error is suppressed by xcbeautify so it is not obvious at all why the build failed.
Suggested Regex
"must be enabled before it can be used" seems like a stable string to match for.
Suggested Output
No response
Additional Context
To test this, perform the following steps:
- Create a new macOS project called Test.
- Add the following repository as a package dependency: Swallow.
- Run the following command to prevent skipping macro validation:
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool NO
- Run
xcodebuild build -scheme Test.