CocoaPods/cocoapods-deintegrate

pod deintegrate doesn't delete building phases

Closed this issue ยท 0 comments

It doesn't clean up the building phases in project.pbxproj
If you end up changing target name, or using different pod versions like 0.39 vs 1.0 beta, it won't be able to find old files and will create build errors.

Here's an example:

/* Begin PBXShellScriptBuildPhase section */
        039B68F0F9ED69C5B305FC9B /* ๐Ÿ“ฆ Check Pods Manifest.lock */ = {
            isa = PBXShellScriptBuildPhase;
            buildActionMask = 2147483647;
            files = (
            );
            inputPaths = (
            );
            name = "๐Ÿ“ฆ Check Pods Manifest.lock";
            outputPaths = (
            );
            runOnlyForDeploymentPostprocessing = 0;
            shellPath = /bin/sh;
            shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n    cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n    exit 1\nfi\n";
            showEnvVarsInLog = 0;
        };
        6FBABD849B76C0B4C4604547 /* ๐Ÿ“ฆ Copy Pods Resources */ = {
            isa = PBXShellScriptBuildPhase;
            buildActionMask = 2147483647;
            files = (
            );
            inputPaths = (
            );
            name = "๐Ÿ“ฆ Copy Pods Resources";
            outputPaths = (
            );
            runOnlyForDeploymentPostprocessing = 0;
            shellPath = /bin/sh;
            shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MessagingExampleSwift/Pods-MessagingExampleSwift-resources.sh\"\n";
            showEnvVarsInLog = 0;
        };
        AB91E5701B8B3155C28A149D /* ๐Ÿ“ฆ Copy Pods Resources */ = {
            isa = PBXShellScriptBuildPhase;
            buildActionMask = 2147483647;
            files = (
            );
            inputPaths = (
            );
            name = "๐Ÿ“ฆ Copy Pods Resources";
            outputPaths = (
            );
            runOnlyForDeploymentPostprocessing = 0;
            shellPath = /bin/sh;
            shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MessagingExample/Pods-MessagingExample-resources.sh\"\n";
            showEnvVarsInLog = 0;
        };
        ACBDFACC0501ABDD4B02DB32 /* ๐Ÿ“ฆ Embed Pods Frameworks */ = {
            isa = PBXShellScriptBuildPhase;
            buildActionMask = 2147483647;
            files = (
            );
            inputPaths = (
            );
            name = "๐Ÿ“ฆ Embed Pods Frameworks";
            outputPaths = (
            );
            runOnlyForDeploymentPostprocessing = 0;
            shellPath = /bin/sh;
            shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MessagingExampleSwift/Pods-MessagingExampleSwift-frameworks.sh\"\n";
            showEnvVarsInLog = 0;
        };
        C261A040B9A8AFE5C9E0ACB0 /* ๐Ÿ“ฆ Embed Pods Frameworks */ = {
            isa = PBXShellScriptBuildPhase;
            buildActionMask = 2147483647;
            files = (
            );
            inputPaths = (
            );
            name = "๐Ÿ“ฆ Embed Pods Frameworks";
            outputPaths = (
            );
            runOnlyForDeploymentPostprocessing = 0;
            shellPath = /bin/sh;
            shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MessagingExample/Pods-MessagingExample-frameworks.sh\"\n";
            showEnvVarsInLog = 0;
        };
        F02C388807FEB8C8A7D0CF13 /* ๐Ÿ“ฆ Check Pods Manifest.lock */ = {
            isa = PBXShellScriptBuildPhase;
            buildActionMask = 2147483647;
            files = (
            );
            inputPaths = (
            );
            name = "๐Ÿ“ฆ Check Pods Manifest.lock";
            outputPaths = (
            );
            runOnlyForDeploymentPostprocessing = 0;
            shellPath = /bin/sh;
            shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n    cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n    exit 1\nfi\n";
            showEnvVarsInLog = 0;
        };
/* End PBXShellScriptBuildPhase section */