Suggest 'bazel clean --expunge' to fix Xcode errors in AppleCcToolchain.
RELNOTES: None.
@@ -61,7 +61,9 @@ public class AppleCcToolchain extends CcToolchain {
AppleConfiguration appleConfiguration = ruleContext.getFragment(AppleConfiguration.class);
if (XcodeConfig.getXcodeVersion(ruleContext) == null) {
- ruleContext.throwWithRuleError("Xcode version must be specified to use an Apple CROSSTOOL");
+ ruleContext.throwWithRuleError(
+ "Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has "
+ + "changed recently, try: \"bazel clean --expunge\" to re-run Xcode configuration");
}
ApplePlatform platform = appleConfiguration.getSingleArchPlatform();
