{ "id": "108398", "key": "TIMOB-13348", "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": "15703", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "15705", "description": "2013 Sprint 22 Core", "name": "2013 Sprint 22 Core", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-01T22:26:13.000+0000", "created": "2013-01-22T22:16:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "32501", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "114879", "key": "TIMOB-13984", "fields": { "summary": "CLI: iOS: Sometimes the generated ApplicationRouting.m file is incomplete", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-12T10:49:05.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": "h6.Steps to reproduce\r\n1. Drop into app.js snippet below\r\n2. Select Studio option \"Install to iOS Device\"\r\n3. Monitor console output e.g. https://gist.github.com/egomez99/bb0f950cdcbae6653401\r\n\r\n\r\nh6.Titanium Studio, build: 3.0.2.201302191606\r\n(c) Copyright 2012-2013 by Appcelerator, Inc. All rights reserved.\r\n\r\nBuild: jenkins-titanium-rcp-master-372 (origin/master)\r\nDate: 19 February 2013, 16:09:49\r\n\r\nh6.snippet\r\n{code}\r\n(function () {\r\n var abc = \"abc123\";\r\n\r\n var f1 = function () {\r\n // _wef4f43ffg6rb344n678678 is a known undefined global.\r\n // non-local reference, this always throws\r\n try {\r\n abc = _wef4f43ffg6rb344n678678; \r\n }\r\n catch (err) {\r\n Ti.API.info(\"Threw non-local var: \" + err);\r\n }\r\n };\r\n\r\n var f2 = function () {\r\n // this throws everywhere, except DOES NOT throw only on device, 3.1 CI.\r\n try {\r\n var b = _wef4f43ffg6rb344n678678;\r\n Ti.API.info(\"Hey it worked\");\r\n }\r\n catch (err) {\r\n Ti.API.info(\"Threw local var: \" + err);\r\n }\r\n };\r\n\r\n f1();\r\n f2();\r\n}());\r\n{code}\r\n\r\nBuild fails with:\r\n\r\n[ERROR] : \b\b \b** BUILD FAILED **\r\n[ERROR] : \b\b \bThe following build commands failed:\r\n[ERROR] : \b\b \b\tCompileC build/docqr.build/Debug-iphoneos/docqr-universal.build/Objects-normal/armv7/ApplicationRouting.o Classes/ApplicationRouting.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : \b\b \b(1 failure)\r\n\r\nseems similiar to TIMOB-11891 but I can reproduce!\r\n\r\nI am frustrated building my current project. Because yesterday it has build for device. App run on my iPhone. Today I continued coding, changed some files and created a new one. Then I does not build for device anymore. Simulator works. \r\n\r\nAfter rolling back in git step by step I found out the problem occured with the new file. But I does not use the file. After 2 hours, deleting the file, clean project and adding again another new file I found out, that Build will fail immediately if I add an additionally file to folders 'common', 'handheld' or 'tablet' in 'Resources/ui'. Really I tested it several times!\r\n\r\nRemoving new file. Clean. Build and Deploy on iOS Device (iPhone). Succeed!\r\nAdding a file with arbitary name to Resources/ui/common. Write a dummy function as module.exports (return an empty red view). Clean. Build and Deploy on iOS Device (iPhone). Fails! But still not using the module, no call of it.", "attachment": [ { "id": "35055", "filename": "build.log.txt", "author": { "name": "sbejga", "key": "sbejga", "displayName": "Sebastian Bejga", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-22T22:16:42.000+0000", "size": 53597, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Build for device: Build fails with CompileC ApplicationRouting", "creator": { "name": "sbejga", "key": "sbejga", "displayName": "Sebastian Bejga", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "sbejga", "key": "sbejga", "displayName": "Sebastian Bejga", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK: 3.0.0 GA & 3.1.0.GA\r\nStudio: 3.0.1.201212181159\r\nOS: OSX 10.8.2\r\nXcode: 4.5.2\r\niOS: iOS 6 (iPhone 4S)", "comment": { "comments": [ { "id": "237905", "author": { "name": "findmory", "key": "findmory", "displayName": "mike ory", "active": true, "timeZone": "America/New_York" }, "body": "I have the same issue:\r\n[ERROR] : \b\b \b** BUILD FAILED **\r\n[ERROR] : \b\b \bThe following build commands failed:\r\n[ERROR] : \b\b \b\tCompileC build/emojibet.build/Debug-iphoneos/emojibet.build/Objects-normal/armv7/ApplicationRouting.o Classes/ApplicationRouting.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : \b\b \b(1 failure)\r\n\r\nConfirmed that removing the file from Resources/ui/common lets me build. But obviously I NEED this file at that path. Is there a solution / workaround??\r\n\r\nThis is a nightmare! anyone?\r\nTitanium Command-Line Interface, CLI version 3.0.23, Titanium SDK version 3.0.0.GA\r\nOSX 10.8.2\r\nXcode 4.5.2(4G20008a)\r\nTitanium Studio, build: 3.0.2.201302041757", "updateAuthor": { "name": "findmory", "key": "findmory", "displayName": "mike ory", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-10T17:11:06.000+0000", "updated": "2013-02-10T17:39:58.000+0000" }, { "id": "237906", "author": { "name": "findmory", "key": "findmory", "displayName": "mike ory", "active": true, "timeZone": "America/New_York" }, "body": "I have another computer which has:\nTitanium Studio . build 3.0.1.201212181159\nOSX 10.8.2\nXcode 4.5.2 (4G2008a)\ni am able to import the project on this computer and build for device.", "updateAuthor": { "name": "findmory", "key": "findmory", "displayName": "mike ory", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-10T18:20:38.000+0000", "updated": "2013-02-10T18:20:38.000+0000" }, { "id": "237907", "author": { "name": "findmory", "key": "findmory", "displayName": "mike ory", "active": true, "timeZone": "America/New_York" }, "body": "reverted the original machine (above) to: Titanium Studio, build: 3.0.1.201212181159 This did NOT solve the problem.\n", "updateAuthor": { "name": "findmory", "key": "findmory", "displayName": "mike ory", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-10T18:31:44.000+0000", "updated": "2013-02-10T18:31:44.000+0000" }, { "id": "245566", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "- Have you tested it vs latest TiSDK yet?\n- Can you attach your Ti project in order to replicate quicker? ", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-03T22:20:04.000+0000", "updated": "2013-04-03T22:20:04.000+0000" }, { "id": "247475", "author": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-14T01:34:57.000+0000", "updated": "2013-04-14T01:34:57.000+0000" }, { "id": "247479", "author": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another piece of information: if I run it in debug mode, it works, it'll be staged in iTunes for a sync, post-sync all is good (except that it is in debug mode) on the iPhone. However, if I just use run, not debug, then the issue with ApplicationRouting comes up. Also, I think ApplicationRouting is being written out of _build.js it looks like, and I know the file is loaded as top-level console.log's show up in the Titanium console output, but the code specifically that generates the ApplicationRouting.m doesn't seem to ever be reached - but that might be my misunderstanding - I did try using the logger utility as well as straight console.log, can't see that the code is reached though it must be as the file gets generated - perhaps console.log & the logger utility log to some other stream somehow at that point, haven't investigated that yet.", "updateAuthor": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-14T05:22:59.000+0000", "updated": "2013-04-14T05:22:59.000+0000" }, { "id": "248242", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Additional details and test case were added. Currently reproducible on 3.1.0.GA.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-18T21:47:00.000+0000", "updated": "2013-04-18T21:47:00.000+0000" }, { "id": "265421", "author": { "name": "lspellman", "key": "lspellman", "displayName": "Lance Spellman", "active": true, "timeZone": "America/Chicago" }, "updateAuthor": { "name": "lspellman", "key": "lspellman", "displayName": "Lance Spellman", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-07T19:32:32.000+0000", "updated": "2013-08-07T19:32:32.000+0000" }, { "id": "277626", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/4898", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-01T06:26:49.000+0000", "updated": "2013-11-01T06:26:49.000+0000" }, { "id": "279099", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tested and Verified fix with:\r\nOSX: 10.8.5\r\nXcode:5.0\r\nAppcelerator Studio: 3.2.0.201311120707\r\nSDK: 3.2.0.v20131111174605\r\nacs:1.0.7\r\nalloy:1.3.0\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processo:1.0.3\r\nDevice: iOS7(v7.0.3)-iPodTouch1", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-12T10:49:05.000+0000", "updated": "2013-11-12T10:49:05.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }