{ "id": "173227", "key": "MOD-2504", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-04-10T19:15:13.000+0000", "created": "2019-03-24T03:46:33.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios" ], "versions": [], "issuelinks": [ { "id": "57490", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173452", "key": "MOD-2506", "fields": { "summary": "Create automated testing builds for modules", "status": { "description": "This issue is being actively worked on at the moment by the assignee.", "name": "In Progress", "id": "3", "statusCategory": { "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-04-10T19:15:13.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13609", "name": "Encrypted SQLite DB" } ], "description": "When attempting to build a project with the encrypted database module for the iOS simulator in the environment above the xcodebuild linker step fails. Running {code}appc run -p ios -l trace{code} shows the following error:\r\n\r\n{noformat}\r\n[TRACE] Undefined symbols for architecture x86_64:\r\n[TRACE] \"_inflate\", referenced from:\r\n[TRACE] _zipfileColumn in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_deflateInit2_\", referenced from:\r\n[TRACE] _zipfileDeflate in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_compressBound\", referenced from:\r\n[TRACE] _zipfileDeflate in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_deflate\", referenced from:\r\n[TRACE] _zipfileDeflate in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_inflateInit2_\", referenced from:\r\n[TRACE] _zipfileColumn in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_deflateEnd\", referenced from:\r\n[TRACE] _zipfileDeflate in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_inflateEnd\", referenced from:\r\n[TRACE] _zipfileColumn in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_crc32\", referenced from:\r\n[TRACE] _zipfileStep in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] _zipfileUpdate in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_uncompress\", referenced from:\r\n[TRACE] _uncompressFunc in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] \"_compress\", referenced from:\r\n[TRACE] _compressFunc in libappcelerator.encrypteddatabase.a(sqlite3.o)\r\n[TRACE] (maybe you meant: _sqlite3_compress_init\r\n[TRACE] ) \r\n[TRACE] ld: symbol(s) not found for architecture x86_64\r\n[TRACE] clang: error: \r\n[TRACE] linker command failed with exit code 1 (use -v to see invocation)\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] Ld /Users/ryanaston/Projects/EncDBiOSBuildBug/build/iphone/build/Products/Debug-iphonesimulator/EncDBiOSBuildBug.app/EncDBiOSBuildBug normal x86_64\r\n[ERROR] (1 failure)\r\n{noformat}\r\n\r\nResearching this issue I found that adding {code}OTHER_LDFLAGS= -lz{code} to the module.xcconfig file fixes the issue. If another module in the project has already set this flag it actually works fine, but when this module is alone it will not build without that flag.\r\n\r\nThis happens with both version 2.0.5 and the unofficial build of 2.0.6 we were provided for testing purposes.\r\n\r\nDemo project here: https://drive.google.com/file/d/1SMUz7HxNPQPUj6H48Q_NOMYwhhrj7Qd8/view?usp=sharing\r\n\r\n", "attachment": [ { "id": "66545", "filename": "Screen Shot 2019-04-07 at 4.22.33 PM.png", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-04-07T10:24:53.000+0000", "size": 34184, "mimeType": "image/png" } ], "flagged": false, "summary": "Missing linker flags in appcelerator.encrypteddatabase module", "creator": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "environment": "SDK 8.0.0.GA\r\nCLI 7.0.10\r\nMojave 10.14.3\r\nXCode 10.1", "comment": { "comments": [ { "id": "447518", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is due to changes in the Xcode project in 8.0.0.GA. Previously we would link with the {{libz}} library by default. This was removed in 8.0.0.GA and now modules that need to link against this library will have to explicitly specify this in their {{module.xcconfig}}. As already stated the easy fix is to update the modules {{module.xcconfig}} locally.\r\n\r\nMoving this to the MOD project to update the {{module.xcconfig}}.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-04-08T13:13:03.000+0000", "updated": "2019-04-08T13:13:03.000+0000" }, { "id": "447519", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/pull/35", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-04-08T13:25:40.000+0000", "updated": "2019-04-08T13:25:40.000+0000" }, { "id": "447602", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master branch of the module", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-04-10T19:15:13.000+0000", "updated": "2019-04-10T19:15:13.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }