{ "id": "87571", "key": "TIMOB-7931", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-11T00:22:57.000+0000", "created": "2012-03-08T12:55:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "release-note-2.0.0" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15651", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "85437", "key": "TIMOB-7674", "fields": { "summary": "iOS: CFBundleShortVersionString not set correctly", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-12T10:19:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Steps To Reproduce:\r\n1. Import KS to Titanium Studio\r\n2. Build to iOS device\r\n\r\nActual:\r\n[ERROR] Error: Traceback (most recent call last):\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.0.v20120308093239/iphone/builder.py\", line 1045, in main\r\n applogo = ti.generate_infoplist(infoplist,appid,devicefamily,project_dir,iphone_version)\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.0.v20120308093239/tiapp.py\", line 471, in generate_infoplist\r\n i = plist.index('CFBundleShortVersionString')\r\nValueError: substring not found\r\n\r\nExpected:\r\nTo compile KS", "attachment": [], "flagged": false, "summary": "iOS: Build: Cannot compile KitchenSink, getting ValueError: substring not found", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.0.0.v20120308093239\r\nStudio: 1.0.9.201202141208\r\nMac 10.6.8", "comment": { "comments": [ { "id": "185698", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "--I'll look into this in the morning. I'm thinking the plist template no longer has a CFBundleShortVersionString entry in it to modify.--\r\n\r\n-- _edit_ --\r\nConfirmed that both the Info.plist and Titanium.plist still have the CFBundleShortVersionString key. ", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-08T20:13:50.000+0000", "updated": "2012-03-09T02:53:13.000+0000" }, { "id": "185710", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "h3.Problem\r\n\r\nKitchen sink uses a custom Info.plist located in the project root.\r\nThis Info.plist does not contain the CFBundleShortVersionString entry thus causing the failure mentioned above.\r\n\r\nh3.Proposed Solution\r\nHave the caretaker of the Kitchen Sink code add the following to {project}/Info.plist:\r\n\r\n{code:xml}\r\nCFBundleShortVersionString\r\n1.0\r\n{code}", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-09T02:48:09.000+0000", "updated": "2012-03-09T02:50:45.000+0000" }, { "id": "185712", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "I suppose this\r\n{code}\r\ni = plist.index('CFBundleShortVersionString')\r\n{code}\r\n\r\nought to be wrapped to catch the exception if it is missing.\r\nI'll see if I can dedicate some time to that this weekend.\r\n\r\nNeeraj (and Stephen may want to jump in on this), because of the importance of the CFBundleShortVersionString to distribution , do you believe the build should halt with a clear user message in the console that the string is missing from what we believe is the use of a custom Info.plist?", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-09T03:07:18.000+0000", "updated": "2012-03-09T03:23:38.000+0000" }, { "id": "185713", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Pull request submitted https://github.com/appcelerator/titanium_mobile/pull/1623", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-09T06:11:15.000+0000", "updated": "2012-03-09T06:11:15.000+0000" }, { "id": "185792", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull pending [PR1627|https://github.com/appcelerator/titanium_mobile/pull/1627]", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-09T11:16:28.000+0000", "updated": "2012-03-09T11:16:28.000+0000" }, { "id": "185998", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.0.v20120312104735", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-12T10:19:06.000+0000", "updated": "2012-03-12T10:19:06.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }