denys-meloshyn / bitrise-step-git-tag-project-version-and-build-number

This step will create Git tag with project version and build number
MIT License
4 stars 6 forks source link

CFBundleShortVersionString is empty #2

Closed RodolfoAntonici closed 4 years ago

RodolfoAntonici commented 5 years ago

I keep getting this error

+------------------------------------------------------------------------------+

| (7) git-tag-project-version-and-build-number@1.0.1                           |
+------------------------------------------------------------------------------+
| id: git-tag-project-version-and-build-number                                 |
| version: 1.0.1                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2019-05-09T14:42:10Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
/var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/bitrise602041742/step_src/step.sh: line 42: $bitrise_tag_info_plist_path: ambiguous redirect
CFBundleShortVersionString is empty
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | git-tag-project-version-and-build-number@1.0.1 (exit code: 1) | 3.52 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...trise-step-git-tag-project-version-and-build-number/issues |
| Source: ...com/ned1988/bitrise-step-git-tag-project-version-and-build-number |
+---+---------------------------------------------------------------+----------+

I've checked this key on the info.plist file and it reads:

    <key>CFBundleShortVersionString</key>
    <string>1.0</string>

And my info.plist file path is right because I use the same variable on Set Xcode Project Build Number step

IvanivOleg commented 5 years ago

Hey @RodolfoAntonici Did you manage to solve the issue?

denys-meloshyn commented 5 years ago

Sorry @RodolfoAntonici and @IvanivOleg for taking so long to response. Something wrong with my notifications setup. Is it possible to share your plist file and entered config values?

hyde1 commented 4 years ago

This error happens when there is a space inside the plist filename. I had to rename my Info.plist file to avoid this error.

The fix would be to replace the following line in the script: done <$bitrise_tag_info_plist_path by: done <"$bitrise_tag_info_plist_path"

denys-meloshyn commented 4 years ago

@hyde1 new release ready