[AC-1054] Titanium Module Creation gives permission denied error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-07-08T00:27:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | ios, module, |
Reporter | Kirthika |
Assignee | Mauro Parra-Miranda |
Created | 2014-05-12T12:43:53.000+0000 |
Updated | 2016-03-08T07:37:24.000+0000 |
Description
When I try to create iOS Module using command *titanium.py create --platform=iphone --type=module --dir=~/tmp/ --name=test --id=com.example.test* I get this error *OSError: [Errno 13] Permission denied: '/Users/apple/Library/Developer/Xcode/Templates/Application/File Templates/Appcelerator/TiProxy.xctemplate/___FILEBASENAME___.h'*
I dunno why this occurs though I have created given all folders 777 permission. Of course module project gets created but when I build it fails.
Moreover, whenever I start Titanium Studio I'm getting updation found for CLI. I do select update option however the same thing happens if I restart Titanium Studio. I can't figure what exactly is the problem.
This sounds like a permission issue with the destination folder. To fix, try running the following from the Terminal:
You can try manually creating the directory:
Finally, recreate the module and it should copy the templates into the correct location.
Thanks Chris Barber. This worked for me. But I still get Titanium update pop up each time I open Titanium Studio.
Can't reproduce, the workaround was useful for the customer.