{ "id": "141859", "key": "TIMOB-18261", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-18T17:42:27.000+0000", "created": "2014-12-18T12:05:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-13T21:18:01.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": "It appears that some of our header files are missing newlines and triggering Apple warnings. While this should no longer be an issue when using C++ 11, it appears to still cause warnings with default Apple settings:\r\n\r\nhttp://stackoverflow.com/questions/72271/no-newline-at-end-of-file-compiler-warning\r\n\r\nTo find:\r\n\r\n{code:title=find_newlines.sh}\r\n#!/usr/bin/env bash\r\nfor i in $(find . -type f -name \"*.h\") ; do \\\r\n if diff /dev/null \"$i\" | tail -1 | \\\r\n grep '^\\\\ No newline' > /dev/null; then echo $i; \\\r\nfi; done\r\n{code}\r\n\r\nRun this in the titanium_mobile/iphone directory\r\n\r\nTaken from http://stackoverflow.com/questions/3261925/how-to-fix-no-newline-at-end-of-file-compiler-warning-for-lots-of-files\r\n\r\nTo fix:\r\n\r\n{code:title=fix_newlines.sh}\r\n#!/usr/bin/env bash\r\nfor i in $(find . -type f -name \"*.h\") ; do echo $i; \\\r\n if diff /dev/null \"$i\" | tail -1 | \\\r\n grep '^\\\\ No newline' > /dev/null; then echo >> \"$i\"; \\\r\nfi; done\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Correct missing newlines at ends of header files", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "336996", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/6506", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-18T12:16:55.000+0000", "updated": "2014-12-18T12:44:22.000+0000" }, { "id": "411577", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-13T21:18:01.000+0000", "updated": "2017-03-13T21:18:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }