[TIMOB-7736] Avoid 'Permission denied' when installing module templates in Mac
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-08-23T23:08:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | jordi domenech |
Assignee | Eric Merriman |
Created | 2012-01-23T03:02:30.000+0000 |
Updated | 2017-03-16T21:38:26.000+0000 |
Description
Hi,
When I try to create a new module (command line) it does BUT it complaints because it cannot write the templates as it seems my user doesn't have permissions to write there... yes, weird.
BTW, as I've read somewhere I suggest that the module templates should be installed under home directory: PATH_TO_USER_HOME/Library/Developer/XCode/Templates
I've modified install.py in order to achieve it and it works for me. You can check how simple it is here:
https://github.com/iamyellow/titanium_mobile/commit/3aedc246f5e439d96c0d8dbeea03817480e8b211#diff-12
Hope it helps
Since Titanium SDK 5.0.0, we only install the Xcode templates to the user's home directory for which they certainly should have access to. See https://github.com/appcelerator/titanium_mobile/blob/415bd6c66dcc55b1a59a59574f3babd3c3a84ede/iphone/templates/module/default/hooks/install-xcode-templates.js.
Closing ticket as the issue cannot be reproduced.