-
Bug
-
Resolution: Unresolved
-
Major
-
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
Sorry - now see that this was an issue with my Xcode project and the plist.info settings