Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: xcode
Created: 02/Nov/12 9:48 PM
Description:

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

Environment: OSX 10.8.1
Jenkins 1.488
Xcode Plugin 1.3.1
Project: Jenkins
Priority: Major Major
Reporter: David Howell
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to