• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • xcode-plugin
    • None
    • OSX 10.8.1
      Jenkins 1.488
      Xcode Plugin 1.3.1

      I am using the Xcode plugin to build my iOS App. I want to configure the plugin to set the Technical version of the app to e.g. r${SVN_REVISION}.

      When I do this it doesn't work and I get the following in my console log. There is a myApp-Info.plist file in the myApp directory.

      I have had similar problems around $(SRCROOT) when I ask the plugin to create the ipa file - the command line that is executed contains $(SRCROOT) literally without the variable being evaluated.

      Started by user anonymous
      Building in workspace /Users/Shared/Jenkins/Home/workspace/iOS-myApp
      Updating svn://repository.invoqsystems.com/repository/apex/mobile/ios/trunk
      At revision 56840
      no change for svn://repository.invoqsystems.com/repository/apex/mobile/ios/trunk since the previous build
      [iOS-myApp] $ /bin/sh -xe /var/folders/_b/vh7gd76s30j_pjy0g5mdzwvm00007b/T/hudson38657611056669647.sh

      Working directory is /Users/Shared/Jenkins/Home/workspace/iOS-myApp.
      [iOS-myApp] $ /usr/bin/xcodebuild -version
      Xcode 4.5
      Build version 4G182
      Fetching marketing version number (CFBundleShortVersionString) from project.
      [iOS-myApp] $ /usr/bin/agvtool mvers -terse1
      Found marketing version (CFBundleShortVersionString): $(SRCROOT)/myApp/myApp-Info.plist
      1.0.
      Marketing version (CFBundleShortVersionString) found in project configuration: $(SRCROOT)/myApp/myApp-Info.plist
      1.0.
      Fetching technical version number (CFBundleVersion) from project.
      [iOS-myApp] $ /usr/bin/agvtool vers -terse
      No marketing version found (CFBundleVersion)
      Technical version (CFBundleVersion) found in project configuration: .
      Updating technical version (CFBundleVersion) to: r56831-b39
      [iOS-myApp] $ /usr/bin/agvtool new-version -all r56831-b39
      Setting version of project myApp to:
      r56831-b39.

      Also setting CFBundleVersion key (assuming it exists)

      Updating CFBundleVersion in Info.plist(s)...

      $(SRCROOT)/myApp/myApp-Info.plist
      Cannot find "$(SRCROOT)/myApp/myApp-Info.plist"
      Updated CFBundleVersion in "myApp.xcodeproj/../myAppUnitTests/myAppUnitTests-Info.plist" to r56831-b39

      Marketing version (CFBundleShortVersionString) used by Jenkins to produce the IPA: $(SRCROOT)/myApp/myApp-Info.plist
      1.0
      Technical version (CFBundleVersion) used by Jenkins to produce the IPA: r56831-b39

          [JENKINS-15708] Xcode Plugin not expanding $(SRCROOT) variable

          David Howell created issue -
          David Howell made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Nick Amundsen made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146467 ] New: JNJira + In-Review [ 186090 ]

            Unassigned Unassigned
            dhowell David Howell
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: