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

mismatched input 'alwaysOutOfDate' expecting 'buildActionMask' #92

Closed
jmccance opened this issue Oct 13, 2023 · 3 comments
Closed

mismatched input 'alwaysOutOfDate' expecting 'buildActionMask' #92

jmccance opened this issue Oct 13, 2023 · 3 comments
Assignees
Labels

Comments

@jmccance
Copy link

Trying this out on our project, I'm getting what appear to be false positives.

$ kin
ERROR: line 9829:3 mismatched input 'alwaysOutOfDate' expecting 'buildActionMask'
ERROR: line 9848:3 mismatched input 'alwaysOutOfDate' expecting 'buildActionMask'
ERROR: line 9885:3 mismatched input 'alwaysOutOfDate' expecting 'buildActionMask'

I suspect the issue is the same for all three, but including them for completeness.

ERROR: line 9829:3 mismatched input 'alwaysOutOfDate' expecting 'buildActionMask'
		298710CD23D9224C00289428 /* SwiftLint */ = {
			isa = PBXShellScriptBuildPhase;
			alwaysOutOfDate = 1;
			buildActionMask = 12;
			files = (
			);
			inputFileListPaths = (
			);
			inputPaths = (
			);
			name = SwiftLint;
			outputFileListPaths = (
			);
			outputPaths = (
			);
			runOnlyForDeploymentPostprocessing = 0;
			shellPath = /bin/sh;
			shellScript = "if [ \"${CONFIGURATION}\" = \"Debug\" ]; then\n  if which \"${SRCROOT}/scripts/swiftlint\" > /dev/null; then\n    \"${SRCROOT}/scripts/swiftlint\" --fix --config \"$SRCROOT/.swiftlint.yml\" && \"${SRCROOT}/scripts/swiftlint\" lint --config \"$SRCROOT/.swiftlint.yml\"\n  else\n    echo \"warning: SwiftLint not installed, ask for help in #ask-ios as it should be present by default.\"\n  fi\nfi\n";
		};
ERROR: line 9848:3 mismatched input 'alwaysOutOfDate' expecting 'buildActionMask'
		4C6EA8941C1103AC00269803 /* Run Crashlytics */ = {
			isa = PBXShellScriptBuildPhase;
			alwaysOutOfDate = 1;
			buildActionMask = 2147483647;
			files = (
			);
			inputPaths = (
				"$(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/GoogleService-Info.plist",
				"$(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)",
				"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}",
				"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF",
			);
			name = "Run Crashlytics";
			outputPaths = (
			);
			runOnlyForDeploymentPostprocessing = 0;
			shellPath = /bin/sh;
			shellScript = "\"${BUILD_DIR%Build/*}SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run\" -gsp \"${SRCROOT}/client/Analytics/GoogleService-Info.plist\"\n";
		};
ERROR: line 9885:3 mismatched input 'alwaysOutOfDate' expecting 'buildActionMask'
		F805C45024623048005FDC33 /* Setup Firebase GoogleService-Info.plist */ = {
			isa = PBXShellScriptBuildPhase;
			alwaysOutOfDate = 1;
			buildActionMask = 2147483647;
			files = (
			);
			inputFileListPaths = (
			);
			inputPaths = (
			);
			name = "Setup Firebase GoogleService-Info.plist";
			outputFileListPaths = (
			);
			outputPaths = (
			);
			runOnlyForDeploymentPostprocessing = 0;
			shellPath = /bin/sh;
			shellScript = "cp \"${SRCROOT}/client/Analytics/GoogleService-Info-$CONFIGURATION.plist\" \"${SRCROOT}/client/Analytics/GoogleService-Info.plist\"\n";
		};

Thanks for building this tool!

@Serchinastico
Copy link
Owner

Hi @jmccance !

Thanks for the report! That's totally plausible, the xcodeproj format keeps changing and we keep finding projects with more complex configurations. I'm working on a new rule to cover your configuration, I'll let you know when it's merged and a new version is released 😄

@Serchinastico
Copy link
Owner

There you go! Version 2.1.4 should fix your problems, let me know otherwise and I'll take a closer look.

@jmccance
Copy link
Author

Installed 2.1.4 and confirmed that our project file validates now. Thanks so much!

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

No branches or pull requests

2 participants