如何从 Xcode 中删除运行脚本阶段 [英] How to remove a Run Script phase from Xcode

查看:34
本文介绍了如何从 Xcode 中删除运行脚本阶段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了这一步:

选择菜单选项Project > New Build Phase > New Run Script Build Phase",输入以下脚本(不要忘记用gen_entitlements.py的正确路径替换/Users/youruser/bin):

Select the menu options "Project > New Build Phase > New Run Script Build Phase", and enter the following script (don't forget to replace /Users/youruser/bin by the correct path to gen_entitlements.py) :

export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
    /Users/youruser/bin/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
    codesign -f -s "iPhone developer" --resource-rules "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ResourceRules.plist" \
         --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent"  "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi

(来自链接)

现在我想从我的项目中删除这个脚本.如何从 Xcode 中删除运行脚本构建阶段"构建阶段?

Now I want to remove this script from my project. How do I remove the "Run Script Build Phase" build phase from Xcode?

推荐答案

选择目标中的运行脚本阶段并将其删除.

Select the Run Script phase in your target and delete it.

这篇关于如何从 Xcode 中删除运行脚本阶段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆