{ "id": "86848", "key": "TIMOB-7780", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-02-27T17:13:27.000+0000", "created": "2012-02-22T16:44:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:15:48.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": "h3. Problem\r\n\r\nEvery time you have a static library the module does not compile, and throws the following error messages: \r\n\r\n{code}\r\n[ERROR]\r\n[ERROR] Error: Traceback (most recent call last):\r\n[DEBUG] File \"/Users/tony/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/builder.py\", line 1286, in main\r\n[DEBUG] execute_xcode(\"iphonesimulator%s\" % link_version,[\"GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s %s\" % (log_id,sdk_version,debugstr,kroll_coverage)],False)\r\n[DEBUG] File \"/Users/tony/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/builder.py\", line 1192, in execute_xcode\r\n[DEBUG] output = run.run(args,False,False,o)\r\n[DEBUG] File \"/Users/tony/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/run.py\", line 39, in run\r\n[DEBUG] sys.exit(rc)\r\n[DEBUG] SystemExit: 65\r\n[ERROR] Build Failed. See: /var/folders/57/2nnhd4_n3kd46bpt37k6gmlw0000gp/T/mTnxUGHti/zbarscannersimple/build/iphone/build/build.log\r\n{code}\r\n\r\nh3. To Reproduce:\r\n1. Create an iOS module\r\n2. Drag and drop a static library (something.a) into the project\r\n3. Run the module from the command line: titanium run\r\n4. Module does not compile\r\n\r\nAttached is a static .a library.", "attachment": [ { "id": "25862", "filename": "libzbar.a", "author": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-22T16:44:05.000+0000", "size": 3038988, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: trying to compile not found for architecture i386", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 1.0.9.201202141347\r\n1.8.1 & 1.8.0.1 Ti SDK.\r\niOS SDK: 5.0", "comment": { "comments": [ { "id": "184254", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Going to get fixed as part of another bug", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-24T17:09:27.000+0000", "updated": "2012-02-24T17:09:27.000+0000" }, { "id": "184261", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not the relation I thought it was; probably S05 timeframe", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-24T17:17:09.000+0000", "updated": "2012-02-24T17:17:09.000+0000" }, { "id": "184426", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is actually an issue with the library being built without appropriate {{extern \"C\"}} support for C++ compiler integration. We require some C++ build steps to get Titanium to work correctly with JSCore, although I will take a closer look at where we can chop this out and whether or not we can add our own {{extern \"C\"}} support.\r\n\r\nIn the meantime the library vendor should be contacted. This is a severe problem with their build, as it prevents it from working with any linker which is working with source compiled from C++.\r\n\r\n*NOTE*: This could be an issue with modules not using the C++ linker (which could create other problems as well). Will investigate.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-27T16:16:21.000+0000", "updated": "2012-02-27T16:31:19.000+0000" }, { "id": "184433", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Coercing the module to a C++ build did not provide the correct symbols. However, I did find the following:\r\n\r\n{code}\r\n-> % nm libzbar.a | grep _CVP\r\n U _CVPixelBufferGetBaseAddressOfPlane\r\n U _CVPixelBufferGetBytesPerRowOfPlane\r\n U _CVPixelBufferGetHeightOfPlane\r\n U _CVPixelBufferGetPixelFormatType\r\n U _CVPixelBufferGetPlaneCount\r\netc.\r\n{code}\r\n\r\nThese are all references to an additional foundation framework which we *do not* link in Titanium. The module may be required to link it in itself, and the library may not even be available for simulator.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-27T16:56:10.000+0000", "updated": "2012-02-27T16:56:34.000+0000" }, { "id": "184435", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Figured out the correct solution. Module developers must make sure that their module specifies any additional compilation flags for their projects in the {{module.xcconfig}} file. In particular, modules need to indicate which additional libraries they must link against. In this case the line\r\n\r\n{code}\r\nOTHER_LDFLAGS=$(inherited) -framework CoreVideo -liconv\r\n{code}\r\n\r\nIs required. Closing this ticket as invalid.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-27T17:13:00.000+0000", "updated": "2012-02-27T17:13:00.000+0000" }, { "id": "184436", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "See comments for correct resolution to this issue.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-27T17:13:27.000+0000", "updated": "2012-02-27T17:13:27.000+0000" }, { "id": "415651", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:15:48.000+0000", "updated": "2017-03-24T18:15:48.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }