gpt4 book ai didi

xcode - 如何重新添加 Copy Pods 资源?

转载 作者:行者123 更新时间:2023-12-02 02:31:39 25 4
gpt4 key购买 nike

我不小心删除了“复制 Pods 资源”,如何将其添加回来?我尝试过“pod install”但不起作用我的项目只有一个目标

最佳答案

我发现你需要编辑project.pbxproj

包含这些行:

E0F2945D18DC83D9006CC8FE 是您的目标 ID

在/* 开始 PBXNativeTarget 部分 */

更新构建阶段:

buildPhases = (
E0F2928A18DC83D9006CC8FE /* Check Pods Manifest.lock */,
E0F2928A18DC83D9006CC8FE /* Sources */,
E0F2930018DC83D9006CC8FE /* Frameworks */,
E0F2932118DC83D9006CC8FE /* Resources */,
E0F2945D18DC83D9006CC8FE /* ShellScript */,
E0F2945E18DC83D9006CC8FE /* CopyFiles */,
E0F2945E18DC83D9006CC8FE /* Copy Pods Resources */,
);

然后

/* Begin PBXShellScriptBuildPhase section */
E0F2945D18DC83D9006CC8FE /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "";
};
E0F2945D18DC83D9006CC8FE /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
E0F2945D18DC83D9006CC8FE /* 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 */

关于xcode - 如何重新添加 Copy Pods 资源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22792866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com