Closed KP1980 closed 5 years ago
Try to run this locally on your mac.
/usr/libexec/PlistBuddy -c Set :CFBundleVersion 1.23 /Users/vsts/agent/2.154.3/work/1/s/***/***/***.iOS/Info.plist
Error Reading File: /Users/vsts/agent/2.154.3/work/1/s/***/***/***.iOS/Info.plist
It seems like it is an issue with your info.plist perhaps.
I was able to set CFBundleVersion in Info.plist using PlistBuddy on my Mac locally. It does not seem to be an issue with info.plist file.
P.S. The issue happens when running the task on "Hosted macOS" agent pool.
Hmmm I don't have this issue at all: https://dev.azure.com/jamesmontemagno/HelloDevOps/_build/results?buildId=925
You can also try to run this shell script: https://github.com/jamesmontemagno/vsts-mobile-tasks/blob/master/tasks/iOSBundleIdentifier/task.sh
This is what is executes.
You were right, it was an issue with info.plist file.
I changed the following block
<dict>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
</dict>
to
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
in the info.plist file.
The info.plist file I was able to update using PlistBuddy on my local (as mentioned in my earlier response) had diffrent version than what was being used in build in Azure DevOps. My local version did not have this block so I was able to successfully update it using PlistBuddy.
Thank you for your prompt response during the weekend. I appreciate it.
Have a good rest of the weekend. Thank you again.
I am getting below error while using "iOS Bundle Version Numbers" task.
"Error Reading File: /Users/vsts/agent/2.154.3/work/1/s///***.iOS/Info.plist"
Below is the complete "Print File" output from the task:
Task done!
[section]Finishing: Bump iOS Versions in //***.iOS/Info.plist
As you would find the incremental build number is not updated in the Final info.PList file.