{ "id": "136579", "key": "TIMOB-17694", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2015-09-01T20:08:58.000+0000", "created": "2014-09-15T14:34:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "build", "clang", "ios" ], "versions": [], "issuelinks": [ { "id": "52553", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "111399", "key": "TIMOB-13129", "fields": { "summary": "folder in Resources can't have same name as project", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-23T22:34:35.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If the {{Resources}} folder contains a (non-empty) folder whose name is the same as the name of the app set in {{tiapp.xml}} under {{}} then builds will fail crashing:\r\n\r\n{code}\r\n[TRACE] Ld build/Debug-iphonesimulator/folder.app/folder normal i386\r\n[TRACE] cd /Users/fokkezb/dev/tests/folderx/build/iphone\r\n[TRACE] export IPHONEOS_DEPLOYMENT_TARGET=6.0\r\n[TRACE] export PATH=\"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin\"\r\n[TRACE] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/Users/fokkezb/dev/tests/folderx/build/iphone/build/Debug-iphonesimulator -L/Users/fokkezb/dev/tests/folderx/build/iphone/lib -L/Users/fokkezb/dev/tests/folderx/build/iphone/Classes/APSAnalytics -L/Users/fokkezb/dev/tests/folderx/build/iphone/Classes/APSHTTPClient -F/Users/fokkezb/dev/tests/folderx/build/iphone/build/Debug-iphonesimulator -filelist /Users/fokkezb/dev/tests/folderx/build/iphone/build/folder.build/Debug-iphonesimulator/folder.build/Objects-normal/i386/folder.LinkFileList -dead_strip -Xlinker -objc_abi_version -Xlinker 2 -ObjC -weak_framework iAd -weak_framework iAd -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libstdc++ -mios-simulator-version-min=6.0 -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lTiCore -lAPSHTTPClient -framework ExternalAccessory -ltiverify -lti_ios_debugger -lti_ios_profiler -Xlinker -dependency_info -Xlinker /Users/fokkezb/dev/tests/folderx/build/iphone/build/folder.build/Debug-iphonesimulator/folder.build/Objects-normal/i386/folder_dependency_info.dat -o /Users/fokkezb/dev/tests/folderx/build/iphone/build/Debug-iphonesimulator/folder.app/folder\r\n[TRACE] ld: warning: instance method 'sqliteDB' in category from /Users/fokkezb/dev/tests/folderx/build/iphone/build/folder.build/Debug-iphonesimulator/folder.build/Objects-normal/i386/PLSqliteDatabase.o overrides method from class in /Users/fokkezb/dev/tests/folderx/build/iphone/build/folder.build/Debug-iphonesimulator/folder.build/Objects-normal/i386/PLSqliteDatabase.o\r\n[TRACE] ld: can't open output file for writing: /Users/fokkezb/dev/tests/folderx/build/iphone/build/Debug-iphonesimulator/folder.app/folder, errno=21 for architecture i386\r\n[TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n[ERROR] 2014-09-15 16:31:51.381 xcodebuild[38883:1596530] DeveloperPortal: Using pre-existing current store at URL (file:///Users/fokkezb/Library/Developer/Xcode/DeveloperPortal%206.0.db).\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] Ld build/Debug-iphonesimulator/folder.app/folder normal i386\r\n[ERROR] (1 failure)\r\n{code}\r\n\r\nThis issue has been reported before on Q&A:\r\nhttps://developer.appcelerator.com/question/131687/project-cant-run-on-simulator\r\n\r\nh1. Solution\r\n\r\nIdeally it should work, but if it doesn't, then it would be nice if the CLI refuse to build the project, asking to rename the folder. In Studio a warning could also be given when a user wants to create the folder.", "attachment": [], "flagged": false, "summary": "iOS: Build fails when Resources has a folder named after the app", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.4.0.RC", "closedSprints": [ { "id": 487, "state": "closed", "name": "2015 Sprint 18 Tooling", "startDate": "2015-08-31T15:59:21.784Z", "endDate": "2015-09-12T00:59:00.000Z", "completeDate": "2015-09-14T23:09:59.452Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "323828", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "We just saw this same error on [~oromero]'s machine and her project does NOT have a resource with the app's name.\r\n\r\nI think there's something else going on.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-15T22:57:05.000+0000", "updated": "2014-09-15T22:57:05.000+0000" }, { "id": "323891", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "But at least it ALWAYS happens if you do have a (non-empty) folder named after the app.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-09-16T06:09:00.000+0000", "updated": "2014-09-16T06:09:00.000+0000" }, { "id": "334074", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "I'm also seeing this with 3.4.1.GA \r\n\r\nIt appears to be related to some modules that need updating too. But I can't figure out what to change in the module xCode project build settings to fix it and rebuild a working module. \r\n\r\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2014-11-30T16:36:08.000+0000", "updated": "2014-11-30T16:36:08.000+0000" }, { "id": "340700", "author": { "name": "jeffbonnes", "key": "jeffbonnes", "displayName": "Jeff Bonnes", "active": true, "timeZone": "Australia/Sydney" }, "body": "I just got this when I updated a project to use 7.0. If I remove that from tiapp.xml, it compiles as expected, but I think it is related to the Google Analytics module I am using?\r\n\r\n{noformat}\r\n[TRACE] ld: in /Developer/code/cua-deposify/app/deposify/modules/iphone/analytics.google/1.0/libanalytics.google.a(GAITransaction.o), too many compact unwind infos in function anon for architecture i386\r\n[TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n[ERROR] 2015-01-27 15:55:51.632 xcodebuild[84040:6203] DeveloperPortal: Using pre-existing current store at URL (file:///Users/jeff/Library/Developer/Xcode/DeveloperPortal%206.1.1.db).\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] Ld build/Debug-iphonesimulator/Deposify.app/Deposify normal i386\r\n[ERROR] (1 failure)\r\n{noformat}\r\n", "updateAuthor": { "name": "jeffbonnes", "key": "jeffbonnes", "displayName": "Jeff Bonnes", "active": true, "timeZone": "Australia/Sydney" }, "created": "2015-01-27T05:01:58.000+0000", "updated": "2015-01-27T05:01:58.000+0000" }, { "id": "343174", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We're all very curious--why do you name your folders the same as the app name?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-13T00:25:36.000+0000", "updated": "2015-02-13T00:25:36.000+0000" }, { "id": "343238", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I don't, but I debugged 2 apps for clients that did. Mostly classic projects where they had all app-specific lib files under {{Resources/appname}}, e.g. {{Resources/appname/settings.js}}.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-02-13T07:27:19.000+0000", "updated": "2015-02-13T07:27:19.000+0000" }, { "id": "347743", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Just ran into this bug again because I was doing an example app called \"images\" and of course it had an \"images\" asset folder as well. Nowadays the error is a bit different:\r\n\r\n{code}\r\n[TRACE] error: unable to open executable ''\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] GenerateDSYMFile build/Debug-iphonesimulator/Images.app.dSYM build/Debug-iphonesimulator/Images.app/Images\r\n[ERROR] (1 failure)\r\n{code}\r\n\r\nWould be good to have this fixed or prevented.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-03-30T17:56:51.000+0000", "updated": "2015-03-30T17:56:51.000+0000" }, { "id": "361974", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is no longer allowed. The app name is added to the list of blacklisted files/folders in the Resources directory. If you try to build an app \"foo\" with a directory \"foo\" in the Resources dir, you'll see the following error and the build will exit.\r\n\r\n{code}\r\n[ERROR] Found blacklisted directory in the Resources directory\r\n[ERROR] The directory \"foo\" is a reserved directory.\r\n[ERROR] You must rename this directory to something else.\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-09-01T20:08:38.000+0000", "updated": "2015-09-01T20:08:38.000+0000" }, { "id": "415458", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:34:35.000+0000", "updated": "2017-03-23T22:34:35.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }