{ "id": "116899", "key": "TIMOB-14492", "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": null, "resolutiondate": null, "created": "2013-07-04T13:20:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-02-18T20:38:44.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When building a project to run on the iOS Simulator, it fails with the following error:\r\n\r\n{code}\r\n[TRACE] : ld: truncated fat file. Slice from 68 to 84873484 is past end of file with length 53090291 for architecture i386\r\n[TRACE] : clang: error: 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 build/Debug-iphonesimulator/test6.app/test6 normal i386\r\n[ERROR] : (1 failure)\r\n{code}\r\n\r\nNote that the customer is able to build their Android projects with no problems.\r\n\r\nThe full log files are attached as follows: \r\n\r\n- log1: log from building via Titanium Studio\r\n- log2: log from build via the CLI\r\n- log3: The result of running titanium info \r\n\r\nI will also be attaching the Studio diagnostic file shortly.\r\n\r\nThe customer started getting this error after creating a new user on his mac and doing a clean install of Titanium Studio and all its updates.\r\n\r\n\r\n", "attachment": [ { "id": "62907", "filename": "AlloyTest.zip", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-20T01:03:48.000+0000", "size": 8051110, "mimeType": "application/zip" }, { "id": "62906", "filename": "ClassicTest.zip", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-20T01:03:49.000+0000", "size": 5637073, "mimeType": "application/zip" }, { "id": "40543", "filename": "diagnostics", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-04T13:46:26.000+0000", "size": 8182, "mimeType": "application/octet-stream" }, { "id": "40540", "filename": "log1", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-04T13:20:07.000+0000", "size": 253146, "mimeType": "application/octet-stream" }, { "id": "40541", "filename": "log2", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-04T13:20:07.000+0000", "size": 1323097, "mimeType": "application/octet-stream" }, { "id": "40542", "filename": "log3", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-04T13:20:07.000+0000", "size": 12502, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: clang: error: linker command failed with exit code 1", "creator": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.1.1\r\nNode JS 0.8.22\r\nTitanium Studio 3.1.1\r\niOS 6", "comment": { "comments": [ { "id": "260886", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tried cleaning the project and building again with no success.", "updateAuthor": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-05T10:10:30.000+0000", "updated": "2013-07-05T10:10:30.000+0000" }, { "id": "260917", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ingo] I'm not sure if this is a CLI or an IOS SDK issue. I found one ticket with similar error in TISTUD-723, but cleaning the project didn't help for this customer.", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-06T04:24:23.000+0000", "updated": "2013-07-06T04:24:23.000+0000" }, { "id": "260925", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] Any thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-07T02:09:25.000+0000", "updated": "2013-07-07T02:09:25.000+0000" }, { "id": "260928", "author": { "name": "moshebox@gmail.com", "key": "moshebox@gmail.com", "displayName": "Moshe Marciano", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "it is important to note that this problem started when we added a user to the same mac, meaning, the first user could build fine, then we added a second user and installed the SDKs, then we got into some trouble. the first one was it was referring to the global /Library/Application Support/Titanium... for the SDKs, once I changed Titanium to Titanium-old, it referred to the user version and started building, but then we got this problem. I wouldn't be surprised if this turns out to be a permission issues, but I dont know where to look.", "updateAuthor": { "name": "moshebox@gmail.com", "key": "moshebox@gmail.com", "displayName": "Moshe Marciano", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-07-07T06:09:27.000+0000", "updated": "2013-07-07T06:09:27.000+0000" }, { "id": "260973", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Hmm, this is an interesting error. For starters, thank you for the great logs!\n\nThis could very well be a permission issue, a corrupt iOS SDK install, or a corrupt Xcode install. Once upon a time I had a corrupt iOS SDK and was getting really funky errors. I would remove /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk, then go into Xcode > Preferences > Downloads and reinstall the iOS SDK. Then try again to clean and build your project.\n\nIf you still have problems, I would consider reinstalling Xcode again.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-07-08T17:33:46.000+0000", "updated": "2013-07-08T17:33:46.000+0000" }, { "id": "299031", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Resolving as cannot reproduce since we've not seen this happen and it sounds like it's a permission issue.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-27T20:40:47.000+0000", "updated": "2014-03-27T20:40:47.000+0000" }, { "id": "415932", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T20:51:22.000+0000", "updated": "2017-03-27T20:51:22.000+0000" }, { "id": "424416", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm able to reproduce this issue with the attached projects:\r\n- AlloyTest.zip\r\n- ClassicTest.zip\r\n\r\n*Steps to reproduce:*\r\n# Build attached project \"AlloyTest\" or \"ClassicTest\" for iOS.\r\n# Note that the 1st build will succeed.\r\n# If you're using Appcelerator Studio, change the contents of 1 of the files. (This is to trigger another build.)\r\n# Attempt to do another build for iOS.\r\n\r\n*Result:*\r\nThe build will fail with the following message in the log...\r\n\r\n{code}\r\n[TRACE] : ld: can't open output file for writing: /Users/jquick2/Documents/Appcelerator_Studio_Workspace/ClassicTest/build/iphone/build/Products/Debug-iphonesimulator/ClassicTest.app/ClassicTest, errno=21 for architecture x86_64\r\n[TRACE] : clang: error: 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] : \tLd build/Products/Debug-iphonesimulator/ClassicTest.app/ClassicTest normal x86_64\r\n[ERROR] : (1 failure)\r\n{code}\r\n\r\nNote that all subsequent iOS builds will fail with the above message.\r\n\r\n*Reason:*\r\nThis error will happen if a subdirectory has the same name as the iOS app bundle. Also, the subdirectory must contain at least 1 file (cannot be empty) to trigger this issue or else it won't be included in the build.\r\n\r\nFor the attached \"ClassicTest\" project, it's because it contains the following folder name...\r\n- ./Resources/ClassicTest\r\n\r\nFor the attached \"AlloyTest\" project, it's because it contains the following folder name...\r\n- ./app/lib/AlloyTest\r\n\r\n*Work-Around:*\r\nRename the app bundle to a name not matching a subdirectory name in the \"tiapp.xml\" file.\r\n\r\n{code:xml}\r\n\r\n AppNameToChange\r\n\r\n{code}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-20T00:49:51.000+0000", "updated": "2017-07-20T00:49:51.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }