{ "id": "147608", "key": "TIMOB-18873", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-14T21:58:47.000+0000", "created": "2015-05-07T00:44:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "merge-4.1.1", "qe-4.0.0" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [ { "id": "47606", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "146022", "key": "TIMOB-18725", "fields": { "summary": "iOS: Unable to build a project using 4.0.0 that was created using 3.5.1.GA", "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": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2015-09-01T23:08:49.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" }, { "id": "10207", "name": "Tooling" } ], "description": "Description\r\n\r\nWhen building a project with a 4.0.0 SDK and then rebuilding the project with 3.5.1.GA the build fails with the below.\r\n\r\n{code}\r\n[TRACE] Undefined symbols for architecture i386:\r\n[TRACE] \"_Ti_WTFCrash\", referenced from:\r\n[TRACE] TiDebuggerInterface::resetObjectProperty(int, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&) in libti_ios_debugger.a(TiDebuggerInterface.o)\r\n[TRACE] ld: symbol(s) not found for architecture i386\r\n[TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n[ERROR] 2015-05-06 17:57:01.479 xcodebuild[16656:2799819] DeveloperPortal: Using pre-existing current store at URL (file:///Users/eharris/Library/Developer/Xcode/DeveloperPortal%206.3.db).\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] Ld build/testApp123.build/Debug-iphonesimulator/testApp123-universal.build/Objects-normal/x86_64/testApp123 normal x86_64\r\n[ERROR] Ld build/testApp123.build/Debug-iphonesimulator/testApp123-universal.build/Objects-normal/i386/testApp123 normal i386\r\n[ERROR] (2 failures)\r\n{code}\r\n\r\n*Notes* As per the linked ticket when cleaning I do not see the issue, on Android I am not sure whether the issue will occur due to CLI-616. Full output is attached as fullOutput.txt\r\n\r\nThis issue can be reproduced using Titanium CLI@4.0.0-beta8 so is not an appc cli issues\r\n\r\nh5.Steps to reproduce\r\n1. Create a project using a 4.0.0 SDK\r\n2. Build the project using {{appc run -p ios}}\r\n3. Change the SDK in the tiapp.xml and run ti sdk select and choose the latest 3.5.1.GA\r\n4. Run {{appc run -p ios}} again\r\n\r\nh5.Actual result\r\n2. The build will pass\r\n4. The build will fail with errors such as the one listed above\r\n\r\nh5.Expected result\r\nThe build should pass both times\r\n", "attachment": [ { "id": "55265", "filename": "fullOutput.txt", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-05-07T01:23:09.000+0000", "size": 2596891, "mimeType": "text/plain" } ], "flagged": false, "summary": "Building an iOS app with 4.0.0 and then rebuilding with 3.5.1.GA fails", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Mac OSX 10.10.3\r\nAppc Studio: 4.0.0.201505060941\r\nTitanium SDK build: 4.0.0.v20150430090209\r\nAppc CLI (NPM): 0.3.55\r\nAppc CLI (Registry): 0.2.280", "closedSprints": [ { "id": 450, "state": "closed", "name": "2015 Sprint 14 Tooling", "startDate": "2015-07-06T16:27:05.971Z", "endDate": "2015-07-18T01:27:00.000Z", "completeDate": "2015-07-20T17:26:13.268Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "351881", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Reopened to repurpose", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-05-07T00:58:30.000+0000", "updated": "2015-05-07T01:11:49.000+0000" }, { "id": "351940", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think this may be expected, no? Do we need to force a clean?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-07T17:31:27.000+0000", "updated": "2015-05-07T17:31:27.000+0000" }, { "id": "352056", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The CLI should force a clean build after any changes to tiapp.xml \r\nThe error we're seeing here is a Titanium app building with the wrong version of the JSCore. The engine changed slightly from 3.5.1 to 4.0.0", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-08T19:04:45.000+0000", "updated": "2015-05-08T19:04:45.000+0000" }, { "id": "352523", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/appc-cli-titanium/pull/91", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-05-14T13:52:01.000+0000", "updated": "2015-05-14T13:52:01.000+0000" }, { "id": "357700", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged to master.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-14T21:58:47.000+0000", "updated": "2015-07-14T21:58:47.000+0000" }, { "id": "362007", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified that I was able to build a mobile project with 5.0.0 SDK, then build with 4.1.0.GA SDK without any issues.\r\n\r\nTested on:\r\n\r\nAppc CLI NPM: 4.2.0-1\r\nAppc CLI Core: 5.0.0-33\r\nArrow: 1.2.52\r\nSDK: 5.0.0.v20150901105514\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.5)\r\nXcode: 7 beta 6 ", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-01T23:08:19.000+0000", "updated": "2015-09-01T23:08:19.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }