xcode – 如何添加Copy Pods资源?

xcode – 如何添加Copy Pods资源?,第1张

概述我不小心删除了“Copy Pods Resources”,如何将其添加回去? 我试过’pod install’但它不起作用 我在项目中只有一个目标 我发现你需要编辑project.pbxproj 包括这些行: E0F2945D18DC83D9006CC8FE是您的目标ID 在/ *开始PBXNativeTarget部分* / 更新构建阶段: buildPhases = ( 我不小心删除了“copy Pods Resources”,如何将其添加回去?
我试过’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资源?全部内容,希望文章能够帮你解决xcode – 如何添加Copy Pods资源?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1103451.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存