{ "id": "136648", "key": "AC-935", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-09-24T02:17:26.000+0000", "created": "2014-09-16T10:09:41.000+0000", "labels": [ "TCSupportTriage", "module" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:15.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "according to http://docs.appcelerator.com/titanium/3.0/#!/guide/iOS_Module_Development_Guide\r\n\r\n\r\nuse Titanium Studio or Titanium CLI create project use following command line:\r\n\r\n{code:title=shell}\r\nti create -p ios -t module -d . -n test -u http://test.me --id me.test\r\n{code}\r\n\r\nwill like this:\r\n{code}\r\nprojectdir-\r\n |- LICENSE\r\n |- README\r\n |- assets\r\n |- documentation\r\n |- example\r\n |- iphone\r\n |- Classes\r\n |- test.xcodeproj\r\n{code}\r\n\r\nonly under iphone dir I can run \r\n{code:shell}\r\ntitanium.py run\r\n{code}\r\n\r\nbut it cannot load example/app.js (and module)\r\nif current dir is the root directory of the project,\r\n{code:shell}\r\ntitanium.py run --dir=iphone/ --platform=iphone\r\n{code}\r\n{code}\r\n[INFO] One moment, building ...\r\nTraceback (most recent call last):\r\nFile \"/Users/hongbo.yang/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/iphone/builder.py\", line 1650, in \r\nmain(sys.argv)\r\nFile \"/Users/hongbo.yang/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/iphone/builder.py\", line 615, in main\r\nti = TiAppXML(tiapp_xml)\r\nFile \"/Users/hongbo.yang/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/tiapp.py\", line 52, in __init__\r\ndata = codecs.open(self.file,'r','utf-8','replace')\r\nFile \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py\", line 878, in open\r\nfile = __builtin__.open(filename, mode, buffering)\r\nIOError: [Errno 2] No such file or directory: u'iphone/tiapp.xml'\r\n{code}\r\n\r\n{code:shell}\r\ntitanium.py run --platform=iphone\r\n{code}\r\n{code}\r\n**** does not contain a valid project\r\n{code}\r\n\r\nHowever use:\r\n{code:shell}\r\ntitanium.py create --platform=iphone --type=module --dir=. --name=test --id=me.test\r\n{code}\r\n\r\ncreated project will show as:\r\n{code}\r\nprojectdir-\r\n |- LICENSE\r\n |- README\r\n |- assets\r\n |- documentation\r\n |- example\r\n |- Classes\r\n |- test.xcodeproj\r\n |- ...\r\n{code}\r\n\r\nie, all the source code are under root directory, then titanium.py can run the test module correctly.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Titanium CLI created ios module cannot be tested / run by titanium.py", "creator": { "name": "sprhawk", "key": "sprhawk", "displayName": "sprhawk", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "sprhawk", "key": "sprhawk", "displayName": "sprhawk", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium SDK version: 3.3.0.GA\r\niPhone SDK version: 7.1\r\nMacOSX: 10.9.4", "comment": { "comments": [ { "id": "324833", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe have researched and tested about this issue.It's works fine as we expect. Please follow the [iOS_Module_Development_Guide|http://docs.appcelerator.com/titanium/3.0/#!/guide/iOS_Module_Development_Guide] or [Wiki-iOS_Module_Development_Guide|https://wiki.appcelerator.org/display/guides2/iOS+Module+Development+Guide ]\r\n\r\n*TESTING ENVIRONMENT:*\r\nTitanium SDK: 3.3.0.GA \r\nTitanium CLI: 3.3.0\r\nOS X Version: 10.9.3\r\niOS SDK version: 7.1\r\n\r\n*STEPS THAT MUST BE FOLLOWED:*\r\n1) Fulfill the Prerequisites of iOS modules.\r\n2) Then follow the Step 1,2,3,4 from [iOS Module Development Guide|http://docs.appcelerator.com/titanium/3.0/#!/guide/iOS_Module_Development_Guide].\r\n\r\nThanks.\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-20T07:12:42.000+0000", "updated": "2014-09-24T02:17:00.000+0000" }, { "id": "325337", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Please test the provided info from [~mrahman]. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-24T02:17:26.000+0000", "updated": "2014-09-24T02:17:26.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }