jamesmontemagno / vsts-mobile-tasks

VSTS Tasks for Mobile!
MIT License
79 stars 22 forks source link

iOS Bump doesn't work for $(Date:yyyyMMddhhmm) #19

Closed frankfuu closed 6 years ago

frankfuu commented 6 years ago

Hi,

I'm trying to set the variables CFBundleVersion and CFBundleShortVersionString in my info.plist from VSTS build variables e.g. $(Date:yyyyMMddhhmm) but it doens't seem to be working.

Using $(Build.BuildId) works though.

image

Any restrictions I should be aware of?

Thanks

jamesmontemagno commented 6 years ago

Most likely your number is too large. The must be integers: https://stackoverflow.com/questions/21125159/which-ios-app-version-build-numbers-must-be-incremented-upon-app-store-release

frankfuu commented 6 years ago

using CFBundleVersion : $(date:yyyy) and CFBundleShortVersionString : 1.0.$(date:yyyy)

Still doesn't work so I'm not too sure it's because it's of the length of the integer.

Here is my build log

2018-08-24T02:53:59.5339480Z ##[section]Starting: Bump iOS Versions in src/InvestSmart/iOS/info.plist
2018-08-24T02:53:59.5564620Z ==============================================================================
2018-08-24T02:53:59.5582270Z Task         : iOS Bundle Version Numbers
2018-08-24T02:53:59.5599900Z Description  : Bump the version of your iOS info.plist file at build time.
2018-08-24T02:53:59.5617430Z Version      : 0.6.0
2018-08-24T02:53:59.5637140Z Author       : James Montemagno
2018-08-24T02:53:59.5654610Z Help         : 
2018-08-24T02:53:59.5672600Z ==============================================================================
2018-08-24T02:53:59.9795680Z  (i) Provided Info.plist path:/Users/vsts/agent/2.138.6/work/1/s/src/InvestSmart/iOS/info.plist
2018-08-24T02:53:59.9821840Z Original info.Plist:<?xml version="1.0" encoding="UTF-8"?>
2018-08-24T02:53:59.9848360Z <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2018-08-24T02:53:59.9870370Z <plist version="1.0">
2018-08-24T02:53:59.9887720Z <dict>
2018-08-24T02:53:59.9904820Z    <key>CFBundleDisplayName</key>
2018-08-24T02:53:59.9922400Z    <string>InvestSmart</string>
2018-08-24T02:53:59.9939630Z    <key>CFBundleIdentifier</key>
2018-08-24T02:53:59.9957900Z    <string>com.investsmart.InvestSmart</string>
2018-08-24T02:53:59.9975230Z    <key>LSRequiresIPhoneOS</key>
2018-08-24T02:53:59.9994450Z    <true/>
2018-08-24T02:54:00.0013040Z    <key>MinimumOSVersion</key>
2018-08-24T02:54:00.0031470Z    <string>8.0</string>
2018-08-24T02:54:00.0048660Z    <key>UIDeviceFamily</key>
2018-08-24T02:54:00.0065900Z    <array>
2018-08-24T02:54:00.0083310Z        <integer>1</integer>
2018-08-24T02:54:00.0100530Z        <integer>2</integer>
2018-08-24T02:54:00.0120430Z    </array>
2018-08-24T02:54:00.0146340Z    <key>UILaunchStoryboardName</key>
2018-08-24T02:54:00.0163930Z    <string>LaunchScreen</string>
2018-08-24T02:54:00.0181460Z    <key>UIRequiredDeviceCapabilities</key>
2018-08-24T02:54:00.0199160Z    <array>
2018-08-24T02:54:00.0216660Z        <string>armv7</string>
2018-08-24T02:54:00.0234260Z    </array>
2018-08-24T02:54:00.0251890Z    <key>UISupportedInterfaceOrientations</key>
2018-08-24T02:54:00.0269240Z    <array>
2018-08-24T02:54:00.0286620Z        <string>UIInterfaceOrientationPortrait</string>
2018-08-24T02:54:00.0304640Z    </array>
2018-08-24T02:54:00.0321940Z    <key>XSAppIconAssets</key>
2018-08-24T02:54:00.0339720Z    <string>Resources/Images.xcassets/AppIcons.appiconset</string>
2018-08-24T02:54:00.0357110Z    <key>CFBundleName</key>
2018-08-24T02:54:00.0374400Z    <string>InvestSmart</string>
2018-08-24T02:54:00.0391580Z    <key>UIAppFonts</key>
2018-08-24T02:54:00.0408840Z    <array>
2018-08-24T02:54:00.0426090Z        <string>GothamNarrowBook.otf</string>
2018-08-24T02:54:00.0443560Z        <string>GothamNarrowXLight.otf</string>
2018-08-24T02:54:00.0461030Z        <string>GothamNarrowLight.otf</string>
2018-08-24T02:54:00.0482680Z        <string>OpenSans-Bold.ttf</string>
2018-08-24T02:54:00.0508390Z        <string>OpenSans-BoldItalic.ttf</string>
2018-08-24T02:54:00.0534090Z        <string>OpenSans-ExtraBold.ttf</string>
2018-08-24T02:54:00.0559870Z        <string>OpenSans-ExtraBoldItalic.ttf</string>
2018-08-24T02:54:00.0585450Z        <string>OpenSans-Italic.ttf</string>
2018-08-24T02:54:00.0612730Z        <string>OpenSans-Light.ttf</string>
2018-08-24T02:54:00.0639770Z        <string>OpenSans-LightItalic.ttf</string>
2018-08-24T02:54:00.0665630Z        <string>OpenSans-Regular.ttf</string>
2018-08-24T02:54:00.0691740Z        <string>OpenSans-Semibold.ttf</string>
2018-08-24T02:54:00.0720490Z        <string>OpenSans-SemiboldItalic.ttf</string>
2018-08-24T02:54:00.0742040Z        <string>fontawesome.ttf</string>
2018-08-24T02:54:00.0759240Z    </array>
2018-08-24T02:54:00.0776540Z    <key>NSAppTransportSecurity</key>
2018-08-24T02:54:00.0793750Z    <dict>
2018-08-24T02:54:00.0811110Z        <key>NSAllowsArbitraryLoads</key>
2018-08-24T02:54:00.0828220Z        <true/>
2018-08-24T02:54:00.0846110Z        <key>NSExceptionDomains</key>
2018-08-24T02:54:00.0863250Z        <dict>
2018-08-24T02:54:00.0880870Z            <key>www.asx.com.au</key>
2018-08-24T02:54:00.0897960Z            <dict>
2018-08-24T02:54:00.0915710Z                <key>NSIncludesSubdomains</key>
2018-08-24T02:54:00.0932810Z                <true/>
2018-08-24T02:54:00.0950240Z                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
2018-08-24T02:54:00.0967450Z                <true/>
2018-08-24T02:54:00.0984350Z                <key>NSTemporaryExceptionMinimumTLSVersion</key>
2018-08-24T02:54:00.1001570Z                <string>TLSv1.1</string>
2018-08-24T02:54:00.1018440Z            </dict>
2018-08-24T02:54:00.1035450Z            <key>asx.com.au</key>
2018-08-24T02:54:00.1052550Z            <dict>
2018-08-24T02:54:00.1069180Z                <key>NSIncludesSubdomains</key>
2018-08-24T02:54:00.1086350Z                <true/>
2018-08-24T02:54:00.1103880Z                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
2018-08-24T02:54:00.1121200Z                <true/>
2018-08-24T02:54:00.1138700Z                <key>NSTemporaryExceptionMinimumTLSVersion</key>
2018-08-24T02:54:00.1155870Z                <string>TLSv1.1</string>
2018-08-24T02:54:00.1174620Z            </dict>
2018-08-24T02:54:00.1201800Z        </dict>
2018-08-24T02:54:00.1219110Z    </dict>
2018-08-24T02:54:00.1236730Z    <key>XSLaunchImageAssets</key>
2018-08-24T02:54:00.1254620Z    <string>Resources/Images.xcassets/LaunchImage.launchimage</string>
2018-08-24T02:54:00.1273290Z    <key>UIBackgroundModes</key>
2018-08-24T02:54:00.1291320Z    <array>
2018-08-24T02:54:00.1313850Z        <string>remote-notification</string>
2018-08-24T02:54:00.1336300Z    </array>
2018-08-24T02:54:00.1354220Z    <key>UIRequiresFullScreen</key>
2018-08-24T02:54:00.1371920Z    <true/>
2018-08-24T02:54:00.1388930Z    <key>NSCameraUsageDescription</key>
2018-08-24T02:54:00.1406140Z    <string>This app does not require access to the camera.</string>
2018-08-24T02:54:00.1423410Z    <key>NSPhotoLibraryUsageDescription</key>
2018-08-24T02:54:00.1440560Z    <string>This app does not require access to the photo library.</string>
2018-08-24T02:54:00.1458750Z    <key>NSMicrophoneUsageDescription</key>
2018-08-24T02:54:00.1475980Z    <string>This app does not require access to the microphone.</string>
2018-08-24T02:54:00.1493340Z    <key>CFBundleShortVersionString</key>
2018-08-24T02:54:00.1510190Z    <string>2.1.2</string>
2018-08-24T02:54:00.1527850Z    <key>CFBundleVersion</key>
2018-08-24T02:54:00.1545660Z    <string>2125</string>
2018-08-24T02:54:00.1563440Z </dict>
2018-08-24T02:54:00.1580460Z </plist>
2018-08-24T02:54:00.1589150Z 
2018-08-24T02:54:00.1606470Z  (i) Version Name (shortcode): 1.0.$(date:yyyy)
2018-08-24T02:54:00.1624890Z  (i) Build number: $(date:yyyy)
2018-08-24T02:54:00.1646750Z Original info.Plist:<?xml version="1.0" encoding="UTF-8"?>
2018-08-24T02:54:00.1673250Z <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2018-08-24T02:54:00.1696080Z <plist version="1.0">
2018-08-24T02:54:00.1716930Z <dict>
2018-08-24T02:54:00.1734710Z    <key>CFBundleDisplayName</key>
2018-08-24T02:54:00.1752520Z    <string>InvestSmart</string>
2018-08-24T02:54:00.1769860Z    <key>CFBundleIdentifier</key>
2018-08-24T02:54:00.1787760Z    <string>com.investsmart.InvestSmart</string>
2018-08-24T02:54:00.1808340Z    <key>LSRequiresIPhoneOS</key>
2018-08-24T02:54:00.1825820Z    <true/>
2018-08-24T02:54:00.1843780Z    <key>MinimumOSVersion</key>
2018-08-24T02:54:00.1861390Z    <string>8.0</string>
2018-08-24T02:54:00.1878930Z    <key>UIDeviceFamily</key>
2018-08-24T02:54:00.1896790Z    <array>
2018-08-24T02:54:00.1914700Z        <integer>1</integer>
2018-08-24T02:54:00.1932260Z        <integer>2</integer>
2018-08-24T02:54:00.1949780Z    </array>
2018-08-24T02:54:00.1967210Z    <key>UILaunchStoryboardName</key>
2018-08-24T02:54:00.1985220Z    <string>LaunchScreen</string>
2018-08-24T02:54:00.2002510Z    <key>UIRequiredDeviceCapabilities</key>
2018-08-24T02:54:00.2020520Z    <array>
2018-08-24T02:54:00.2038620Z        <string>armv7</string>
2018-08-24T02:54:00.2056980Z    </array>
2018-08-24T02:54:00.2075050Z    <key>UISupportedInterfaceOrientations</key>
2018-08-24T02:54:00.2093320Z    <array>
2018-08-24T02:54:00.2111250Z        <string>UIInterfaceOrientationPortrait</string>
2018-08-24T02:54:00.2128950Z    </array>
2018-08-24T02:54:00.2148740Z    <key>XSAppIconAssets</key>
2018-08-24T02:54:00.2166920Z    <string>Resources/Images.xcassets/AppIcons.appiconset</string>
2018-08-24T02:54:00.2186040Z    <key>CFBundleName</key>
2018-08-24T02:54:00.2203510Z    <string>InvestSmart</string>
2018-08-24T02:54:00.2221400Z    <key>UIAppFonts</key>
2018-08-24T02:54:00.2239530Z    <array>
2018-08-24T02:54:00.2257980Z        <string>GothamNarrowBook.otf</string>
2018-08-24T02:54:00.2276770Z        <string>GothamNarrowXLight.otf</string>
2018-08-24T02:54:00.2294410Z        <string>GothamNarrowLight.otf</string>
2018-08-24T02:54:00.2318660Z        <string>OpenSans-Bold.ttf</string>
2018-08-24T02:54:00.2356450Z        <string>OpenSans-BoldItalic.ttf</string>
2018-08-24T02:54:00.2382870Z        <string>OpenSans-ExtraBold.ttf</string>
2018-08-24T02:54:00.2409090Z        <string>OpenSans-ExtraBoldItalic.ttf</string>
2018-08-24T02:54:00.2437430Z        <string>OpenSans-Italic.ttf</string>
2018-08-24T02:54:00.2463130Z        <string>OpenSans-Light.ttf</string>
2018-08-24T02:54:00.2488800Z        <string>OpenSans-LightItalic.ttf</string>
2018-08-24T02:54:00.2515840Z        <string>OpenSans-Regular.ttf</string>
2018-08-24T02:54:00.2543030Z        <string>OpenSans-Semibold.ttf</string>
2018-08-24T02:54:00.2570520Z        <string>OpenSans-SemiboldItalic.ttf</string>
2018-08-24T02:54:00.2592440Z        <string>fontawesome.ttf</string>
2018-08-24T02:54:00.2609820Z    </array>
2018-08-24T02:54:00.2627960Z    <key>NSAppTransportSecurity</key>
2018-08-24T02:54:00.2645620Z    <dict>
2018-08-24T02:54:00.2663130Z        <key>NSAllowsArbitraryLoads</key>
2018-08-24T02:54:00.2680270Z        <true/>
2018-08-24T02:54:00.2697540Z        <key>NSExceptionDomains</key>
2018-08-24T02:54:00.2714800Z        <dict>
2018-08-24T02:54:00.2732530Z            <key>www.asx.com.au</key>
2018-08-24T02:54:00.2751380Z            <dict>
2018-08-24T02:54:00.2769290Z                <key>NSIncludesSubdomains</key>
2018-08-24T02:54:00.2787110Z                <true/>
2018-08-24T02:54:00.2805260Z                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
2018-08-24T02:54:00.2823720Z                <true/>
2018-08-24T02:54:00.2843370Z                <key>NSTemporaryExceptionMinimumTLSVersion</key>
2018-08-24T02:54:00.2861690Z                <string>TLSv1.1</string>
2018-08-24T02:54:00.2879710Z            </dict>
2018-08-24T02:54:00.2897630Z            <key>asx.com.au</key>
2018-08-24T02:54:00.2918850Z            <dict>
2018-08-24T02:54:00.2936690Z                <key>NSIncludesSubdomains</key>
2018-08-24T02:54:00.2954160Z                <true/>
2018-08-24T02:54:00.2971980Z                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
2018-08-24T02:54:00.2989820Z                <true/>
2018-08-24T02:54:00.3007550Z                <key>NSTemporaryExceptionMinimumTLSVersion</key>
2018-08-24T02:54:00.3025180Z                <string>TLSv1.1</string>
2018-08-24T02:54:00.3042700Z            </dict>
2018-08-24T02:54:00.3059960Z        </dict>
2018-08-24T02:54:00.3077070Z    </dict>
2018-08-24T02:54:00.3094460Z    <key>XSLaunchImageAssets</key>
2018-08-24T02:54:00.3112240Z    <string>Resources/Images.xcassets/LaunchImage.launchimage</string>
2018-08-24T02:54:00.3130190Z    <key>UIBackgroundModes</key>
2018-08-24T02:54:00.3157780Z    <array>
2018-08-24T02:54:00.3183550Z        <string>remote-notification</string>
2018-08-24T02:54:00.3205170Z    </array>
2018-08-24T02:54:00.3222840Z    <key>UIRequiresFullScreen</key>
2018-08-24T02:54:00.3241920Z    <true/>
2018-08-24T02:54:00.3260180Z    <key>NSCameraUsageDescription</key>
2018-08-24T02:54:00.3278490Z    <string>This app does not require access to the camera.</string>
2018-08-24T02:54:00.3296380Z    <key>NSPhotoLibraryUsageDescription</key>
2018-08-24T02:54:00.3314540Z    <string>This app does not require access to the photo library.</string>
2018-08-24T02:54:00.3334110Z    <key>NSMicrophoneUsageDescription</key>
2018-08-24T02:54:00.3352200Z    <string>This app does not require access to the microphone.</string>
2018-08-24T02:54:00.3370330Z    <key>CFBundleShortVersionString</key>
2018-08-24T02:54:00.3388370Z    <string>2.1.2</string>
2018-08-24T02:54:00.3406420Z    <key>CFBundleVersion</key>
2018-08-24T02:54:00.3424730Z    <string>2125</string>
2018-08-24T02:54:00.3442070Z </dict>
2018-08-24T02:54:00.3459670Z </plist>
2018-08-24T02:54:00.3468670Z 
2018-08-24T02:54:00.3703660Z [command]/usr/libexec/PlistBuddy -c Print CFBundleVersion /Users/vsts/agent/2.138.6/work/1/s/src/InvestSmart/iOS/info.plist
2018-08-24T02:54:00.3735790Z 2125
2018-08-24T02:54:00.3977890Z [command]/usr/libexec/PlistBuddy -c Set :CFBundleVersion $(date:yyyy) /Users/vsts/agent/2.138.6/work/1/s/src/InvestSmart/iOS/info.plist
2018-08-24T02:54:00.4216590Z [command]/usr/libexec/PlistBuddy -c Print CFBundleShortVersionString /Users/vsts/agent/2.138.6/work/1/s/src/InvestSmart/iOS/info.plist
2018-08-24T02:54:00.4239540Z 2.1.2
2018-08-24T02:54:00.4472720Z [command]/usr/libexec/PlistBuddy -c Set :CFBundleShortVersionString 1.0.$(date:yyyy) /Users/vsts/agent/2.138.6/work/1/s/src/InvestSmart/iOS/info.plist
2018-08-24T02:54:00.4503520Z Final info.Plist: <?xml version="1.0" encoding="UTF-8"?>
2018-08-24T02:54:00.4529950Z <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2018-08-24T02:54:00.4552160Z <plist version="1.0">
2018-08-24T02:54:00.4569290Z <dict>
2018-08-24T02:54:00.4586610Z    <key>CFBundleDisplayName</key>
2018-08-24T02:54:00.4603920Z    <string>InvestSmart</string>
2018-08-24T02:54:00.4621430Z    <key>CFBundleIdentifier</key>
2018-08-24T02:54:00.4638990Z    <string>com.investsmart.InvestSmart</string>
2018-08-24T02:54:00.4658080Z    <key>CFBundleName</key>
2018-08-24T02:54:00.4684790Z    <string>InvestSmart</string>
2018-08-24T02:54:00.4703770Z    <key>CFBundleShortVersionString</key>
2018-08-24T02:54:00.4721600Z    <string>1.0.$(date:yyyy)</string>
2018-08-24T02:54:00.4739220Z    <key>CFBundleVersion</key>
2018-08-24T02:54:00.4757030Z    <string>$(date:yyyy)</string>
2018-08-24T02:54:00.4774720Z    <key>LSRequiresIPhoneOS</key>
2018-08-24T02:54:00.4792090Z    <true/>
2018-08-24T02:54:00.4809680Z    <key>MinimumOSVersion</key>
2018-08-24T02:54:00.4827290Z    <string>8.0</string>
2018-08-24T02:54:00.4845630Z    <key>NSAppTransportSecurity</key>
2018-08-24T02:54:00.4863110Z    <dict>
2018-08-24T02:54:00.4880280Z        <key>NSAllowsArbitraryLoads</key>
2018-08-24T02:54:00.4897630Z        <true/>
2018-08-24T02:54:00.4914890Z        <key>NSExceptionDomains</key>
2018-08-24T02:54:00.4932140Z        <dict>
2018-08-24T02:54:00.4949480Z            <key>asx.com.au</key>
2018-08-24T02:54:00.4969900Z            <dict>
2018-08-24T02:54:00.4988060Z                <key>NSIncludesSubdomains</key>
2018-08-24T02:54:00.5009750Z                <true/>
2018-08-24T02:54:00.5027360Z                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
2018-08-24T02:54:00.5044700Z                <true/>
2018-08-24T02:54:00.5062210Z                <key>NSTemporaryExceptionMinimumTLSVersion</key>
2018-08-24T02:54:00.5080410Z                <string>TLSv1.1</string>
2018-08-24T02:54:00.5097780Z            </dict>
2018-08-24T02:54:00.5115010Z            <key>www.asx.com.au</key>
2018-08-24T02:54:00.5132290Z            <dict>
2018-08-24T02:54:00.5149490Z                <key>NSIncludesSubdomains</key>
2018-08-24T02:54:00.5169850Z                <true/>
2018-08-24T02:54:00.5187390Z                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
2018-08-24T02:54:00.5204900Z                <true/>
2018-08-24T02:54:00.5222380Z                <key>NSTemporaryExceptionMinimumTLSVersion</key>
2018-08-24T02:54:00.5242700Z                <string>TLSv1.1</string>
2018-08-24T02:54:00.5259880Z            </dict>
2018-08-24T02:54:00.5277210Z        </dict>
2018-08-24T02:54:00.5294230Z    </dict>
2018-08-24T02:54:00.5311680Z    <key>NSCameraUsageDescription</key>
2018-08-24T02:54:00.5329360Z    <string>This app does not require access to the camera.</string>
2018-08-24T02:54:00.5346980Z    <key>NSMicrophoneUsageDescription</key>
2018-08-24T02:54:00.5364680Z    <string>This app does not require access to the microphone.</string>
2018-08-24T02:54:00.5382300Z    <key>NSPhotoLibraryUsageDescription</key>
2018-08-24T02:54:00.5400070Z    <string>This app does not require access to the photo library.</string>
2018-08-24T02:54:00.5419910Z    <key>UIAppFonts</key>
2018-08-24T02:54:00.5446570Z    <array>
2018-08-24T02:54:00.5464710Z        <string>GothamNarrowBook.otf</string>
2018-08-24T02:54:00.5483440Z        <string>GothamNarrowXLight.otf</string>
2018-08-24T02:54:00.5501460Z        <string>GothamNarrowLight.otf</string>
2018-08-24T02:54:00.5523850Z        <string>OpenSans-Bold.ttf</string>
2018-08-24T02:54:00.5550950Z        <string>OpenSans-BoldItalic.ttf</string>
2018-08-24T02:54:00.5595240Z        <string>OpenSans-ExtraBold.ttf</string>
2018-08-24T02:54:00.5622150Z        <string>OpenSans-ExtraBoldItalic.ttf</string>
2018-08-24T02:54:00.5647970Z        <string>OpenSans-Italic.ttf</string>
2018-08-24T02:54:00.5674190Z        <string>OpenSans-Light.ttf</string>
2018-08-24T02:54:00.5700130Z        <string>OpenSans-LightItalic.ttf</string>
2018-08-24T02:54:00.5726270Z        <string>OpenSans-Regular.ttf</string>
2018-08-24T02:54:00.5756190Z        <string>OpenSans-Semibold.ttf</string>
2018-08-24T02:54:00.5783090Z        <string>OpenSans-SemiboldItalic.ttf</string>
2018-08-24T02:54:00.5805240Z        <string>fontawesome.ttf</string>
2018-08-24T02:54:00.5822960Z    </array>
2018-08-24T02:54:00.5841630Z    <key>UIBackgroundModes</key>
2018-08-24T02:54:00.5859140Z    <array>
2018-08-24T02:54:00.5882040Z        <string>remote-notification</string>
2018-08-24T02:54:00.5904190Z    </array>
2018-08-24T02:54:00.5922230Z    <key>UIDeviceFamily</key>
2018-08-24T02:54:00.5941160Z    <array>
2018-08-24T02:54:00.5959270Z        <integer>1</integer>
2018-08-24T02:54:00.5976400Z        <integer>2</integer>
2018-08-24T02:54:00.5993870Z    </array>
2018-08-24T02:54:00.6014040Z    <key>UILaunchStoryboardName</key>
2018-08-24T02:54:00.6031960Z    <string>LaunchScreen</string>
2018-08-24T02:54:00.6049590Z    <key>UIRequiredDeviceCapabilities</key>
2018-08-24T02:54:00.6067290Z    <array>
2018-08-24T02:54:00.6084660Z        <string>armv7</string>
2018-08-24T02:54:00.6102500Z    </array>
2018-08-24T02:54:00.6119870Z    <key>UIRequiresFullScreen</key>
2018-08-24T02:54:00.6137400Z    <true/>
2018-08-24T02:54:00.6155250Z    <key>UISupportedInterfaceOrientations</key>
2018-08-24T02:54:00.6172770Z    <array>
2018-08-24T02:54:00.6190360Z        <string>UIInterfaceOrientationPortrait</string>
2018-08-24T02:54:00.6207870Z    </array>
2018-08-24T02:54:00.6225270Z    <key>XSAppIconAssets</key>
2018-08-24T02:54:00.6242960Z    <string>Resources/Images.xcassets/AppIcons.appiconset</string>
2018-08-24T02:54:00.6261000Z    <key>XSLaunchImageAssets</key>
2018-08-24T02:54:00.6278750Z    <string>Resources/Images.xcassets/LaunchImage.launchimage</string>
2018-08-24T02:54:00.6296410Z </dict>
2018-08-24T02:54:00.6313560Z </plist>
2018-08-24T02:54:00.6322380Z 
2018-08-24T02:54:00.6339420Z Task done!
2018-08-24T02:54:00.6376180Z ##[section]Finishing: Bump iOS Versions in src/InvestSmart/iOS/info.plist
jamesmontemagno commented 6 years ago

Ah, as you can see in the output that doesn't work: 1.0.$(date:yyyy) the $(date:yyyy) doesn't do anything.

2018-08-24T02:54:00.4739220Z CFBundleVersion 2018-08-24T02:54:00.4757030Z $(date:yyyy)

This isn't valid.

I don't think that "Date" works here either. It says it should, but VSTS doesn't seem to be doing that for you: https://docs.microsoft.com/en-us/vsts/pipelines/build/options?view=vsts&tabs=yaml

https://stackoverflow.com/questions/44738944/vsotfs-get-current-date-time-as-variable

jamesmontemagno commented 6 years ago

You could probably set the build Id to the date/time and then use it as the BuildId. I think date is only available before the build starts.

jamesmontemagno commented 6 years ago

Here we go: https://stackoverflow.com/questions/45842392/setting-a-date-and-revision-number-as-variables-in-tfs-2017

frankfuu commented 6 years ago

This is great. Thanks @jamesmontemagno. Much appreciated :)