开发者

Setting.bundle only for app store configuration - iOS

I'm trying to find a way to have setting.bundle for Debug Configuration but not to have it for App Store release.

I tried to write a pre build script that deletes the Setting.bundle file in case it's not Debug, however because the setting.bundle is being copied as part of the "Copy Bundle Resource" phase, it issues erro开发者_JAVA技巧r.

Any way to achieve it ?


Create a new Target for the AppStore release. In the file inspector of the Settings.bundle deselect this new target in "Target Membership".


Or add a build phase that runs a build script that deletes the settings bundle for your release config:

#!/bin/bash

if [ "$CONFIGURATION" == "Release" ]; then
    rm -rf ${CODESIGNING_FOLDER_PATH}/Settings.bundle
fi
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜