最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

xcode - Changing the bundle id dynamically - Stack Overflow

programmeradmin1浏览0评论

I'm getting the data from this store_information_json.json file to change the app name, bundle id. but i can't able to change the bundle id , is it any way to change it

CONFIG_FILE="${SRCROOT}/store_information_json.json" APP_NAME=$(/usr/bin/jq -r '.app_name' "$CONFIG_FILE")

PLIST_PATH="${PROJECT_DIR}/${INFOPLIST_FILE}"

✅ Ensure CFBundleDisplayName exists before setting it

if /usr/libexec/PlistBuddy -c "Print :CFBundleDisplayName" "$PLIST_PATH" >/dev/null 2>&1; then /usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName $APP_NAME" "$PLIST_PATH" else /usr/libexec/PlistBuddy -c "Add :CFBundleDisplayName string $APP_NAME" "$PLIST_PATH" fi

it changes the app name How to change the bundle id

发布评论

评论列表(0)

  1. 暂无评论