Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5141] JS iOS modules dont build when SDK is off of users Library

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDone
Resolution Date2020-01-09T19:22:20.000+0000
Affected Version/sRelease 1.7.0, Release 1.7.1, Release 1.7.2
Fix Version/sn/a
ComponentsTooling
Labelsbuild.py, compile.py, ios, modules
ReporterMatthew Apperson
AssigneeIngo Muschenetz
Created2011-08-29T06:53:29.000+0000
Updated2020-01-09T19:22:20.000+0000

Description

When building a JS based iOS module, running ./build.py will generate an error of:
Traceback (most recent call last):
  File "./build.py", line 191, in <module>
    compile_js(manifest,config)
  File "./build.py", line 69, in compile_js
    from compiler import Compiler
ImportError: cannot import name Compiler
This happens when the titanium.xcconfig file has the TITANIUM_SDK set with the SDK in the users resource directory. for example:
TITANIUM_SDK = ~/Library/Application Support/Titanium/mobilesdk/osx/$(TITANIUM_SDK_VERSION)

Comments

  1. Seth Toda 2015-03-18

    I was able to move past this by creating a simlink
       mkdir -p /Library/Application\ Support/Titanium/mobilesdk/osx
       sudo ln -s ~/Library/Application\ Support/Titanium/mobilesdk/osx/3.4.0.GA /Library/Application\ Support/Titanium/mobilesdk/osx/3.4.0.GA
       

JSON Source