Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11791] Android: building a project causes IOError 13 when resource files are read-only (MAC)

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-08-06T23:56:23.000+0000
Affected Version/sRelease 2.1.3, Release 2.1.4
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelsandroidbuild, cb-verified
ReporterAmuktha Akkinepally
AssigneeChris Barber
Created2012-11-15T22:23:56.000+0000
Updated2017-03-21T21:58:58.000+0000

Description

The app builds for iOS correctly, but cannot get it to build for Android. The following messages are seen in console when tried to build for Android:
[INFO] logfile = /Users/norton/Development/BUCA/src/client/Titanium_Studio_Workspace/Back-Up Care/build.log
[INFO] Building Back-Up Care for Android ... one moment
[INFO] Titanium SDK version: 2.1.2 (08/24/12 14:46 ed7f777)
[ERROR] Application Installer abnormal process termination. Process exit value was 1
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "/Library/Application Support/Titanium/mobilesdk/osx/2.1.2.GA/android/builder.py", line 2237, in <module>
[ERROR]     s.build_and_run(False, avd_id, debugger_host=debugger_host)
[ERROR]   File "/Library/Application Support/Titanium/mobilesdk/osx/2.1.2.GA/android/builder.py", line 1896, in build_and_run
[ERROR]     shutil.copy(self.project_tiappxml, self.assets_dir)
[ERROR]   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 116, in copy
[ERROR]   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 82, in copyfile
[ERROR] IOError: [Errno 13] Permission denied: '/Users/norton/Development/BUCA/src/client/Titanium_Studio_Workspace/Back-Up Care/build/android/bin/assets/tiapp.xml'
It worked fine for a while building for Android 2.2.0. After that when tried to buil for 4.0.3 and 4.1.0 and started to get the error above. When tried to go back to 2.2.0, that stopped working as well.The files are imported from TFS.

Comments

  1. Chris Barber 2013-08-06

    Unable to reproduce using Titanium SDK 3.1.1.GA. I made the entire resources folder read only and it worked just fine. The only thing I could possibly see is if the build dir was read only. I can add check for that in the Android tooling rewrite, but in general, the build dir should not be versioned.
  2. Chris Barber 2013-10-18

    Apparently the issue was the tiapp.xml was read only. Still unable to reproduce with the new Android build.
  3. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source