[AC-1981] iOS: Geocoder sample build error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-24T22:45:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Nilmar Castro |
Assignee | Daniel Sefton |
Created | 2013-06-24T15:04:51.000+0000 |
Updated | 2016-03-08T07:40:55.000+0000 |
Description
When I build a Geocoder sample I got this error:
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:181
throw e;
^
TypeError: Object #<Object> has no method 'isFileWritable'
at /usr/local/lib/node_modules/titanium/lib/titanium.js:263:21
at Array.filter (native)
at cli.flag.flag.flag.flag.flag.flag.then.async.series.enc (/usr/local/lib/node_modules/titanium/lib/titanium.js:262:86)
at async.series.results (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:486:21)
at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:185:13)
at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:108:13)
at async.forEachSeries.iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25)
at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:187:17)
at async.series.results (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:491:34)
at /usr/local/lib/node_modules/titanium/lib/cli.js:308:3
---------------------------------------------
at exports.execFile (child_process.js:594:9)
at exports.exec (child_process.js:481:18)
at exports.detect.async.series.cached (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/node-appc/lib/android.js:81:4)
at async.series.results (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:486:21)
at _asyncMap (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:185:13)
at async.forEachSeries.iterate (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:108:13)
at async.forEachSeries.iterate (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:119:25)
at _asyncMap (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:187:17)
---------------------------------------------
at exports.execFile (child_process.js:594:9)
at exports.exec (child_process.js:481:18)
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/node-appc/lib/android.js:68:4
at async.series.results (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:486:21)
at _asyncMap (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:185:13)
at async.forEachSeries.iterate (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:108:13)
at async.forEachSeries.iterate (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:119:25)
at _asyncMap (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/node_modules/async/lib/async.js:187:17)
---------------------------------------------
at exports.execFile (child_process.js:594:9)
at exports.exec (child_process.js:481:18)
at detectLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:53:4)
at setLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:60:3)
at /usr/local/lib/node_modules/titanium/lib/titanium.js:78:4
at Object.<anonymous> (/usr/local/lib/node_modules/titanium/lib/titanium.js:85:3)
at Module._compile (module.js:449:26)
at Module._extensions..js (module.js:467:10)
Can you attach your Studio diagnostic file? (Help -> Studio -> Run Diagnostic Test...) That way we can be sure of all your versions.
Actually, I just noticed in your log that it's referencing 3.0.0.GA. Please use 3.1.1 GA (make sure it's set in tiapp.xml) and try again.
Hi Daniel Here you are: Host OS: Mac OS X OS Version: 10.8.4 OS Arch: x86 JRE Version: 1.6.0_51 JRE Vendor: Apple Inc. JRE Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Titanium Studio Version: 3.1.1.201306112235 Install Directory: file:/Applications/Titanium Studio/ Workspace Directory: file:/Users/Usuario/Documents/Titanium_Studio_Workspace/ VM Arguments: -Xms40m -Xmx1024m -Declipse.p2.unsignedPolicy=allow -Declipse.log.size.max=10000 -Declipse.log.backup.max=5 -Xdock:icon=../Resources/titanium.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m -Djava.class.path=/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar Language: pt_BR ACS App URL: https://api.cloud.appcelerator.com/v1/apps/create.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt ACS Login URL: https://api.cloud.appcelerator.com/v1/admins/studio_login.json?key=7fI2AZHmrSvAHNKsSQKzrSXz5NWjo2tt Android SDK Version: Google APIs (Android 4.2.2) Android NDK Version: r8e XCode Version: 4.6.3 Latest Titanium SDK: 3.1.1.GA Titanium SDK Version: 1.8.2 SDK Modules API Version:2 SDK Timestamp: 02/23/12 17:46 SDK Build Number: 59b3a90 SDK Location: /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/1.8.2 Titanium SDK Version: 2.1.4 SDK Modules API Version:2 SDK Timestamp: 11/09/12 12:46 SDK Build Number: 51f2c64 SDK Location: /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.GA Titanium SDK Version: 3.0.0 SDK Modules API Version:2 SDK Timestamp: 12/12/12 18:49 SDK Build Number: a5894b3 SDK Location: /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA Titanium SDK Version: 3.0.2 SDK Modules API Version:2 SDK Timestamp: 02/15/13 19:02 SDK Build Number: 5a77fe7 SDK Location: /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA Titanium SDK Version: 3.1.0 SDK Modules API Version:2 SDK Timestamp: 04/15/13 18:45 SDK Build Number: 57634ef SDK Location: /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA Titanium SDK Version: 3.1.1 SDK Modules API Version:2 SDK Timestamp: 06/15/13 16:09 SDK Build Number: f7592c1 SDK Location: /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.GA Browsers - Default system web browser: Unknown (N/A) - Firefox: 21.0 (/Applications/Firefox.app/Contents/MacOS/firefox-bin) Titanium CLI Enabled: true Node.ACS Host URL: null Node.JS Version: v0.8.22 NPM Path: /usr/local/bin/npm NPM Version: 1.2.14 /usr/local/lib ├── acs@1.0.3 ├── alloy@1.1.3 ├── npm@1.2.14 ├── titanium@3.1.1 └── titanium-code-processor@1.0.1 Packages: /usr/local/lib ├─┬ acs@1.0.3 │ ├── acs-node@0.1.6 │ ├── colors@0.6.0-1 │ ├── commander@0.6.1 │ ├─┬ connect@2.3.5 │ │ ├── bytes@0.0.1 │ │ ├── cookie@0.0.4 │ │ ├── crc@0.2.0 │ │ ├── debug@0.7.2 │ │ ├── formidable@1.0.11 │ │ ├── fresh@0.0.1 │ │ ├── mime@1.2.4 │ │ ├── qs@0.4.2 │ │ └── range-parser@0.0.4 │ ├─┬ connect-mongo@0.1.9 │ │ └─┬ mongodb@0.9.9-8 │ │ └── bson@0.0.4 │ ├── ejs@0.8.0 │ ├── esprima@0.9.9 │ ├─┬ express@3.0.0 │ │ ├─┬ connect@2.6.0 │ │ │ ├── bytes@0.1.0 │ │ │ ├── formidable@1.0.11 │ │ │ ├── pause@0.0.1 │ │ │ ├── qs@0.5.1 │ │ │ └─┬ send@0.0.4 │ │ │ └── mime@1.2.6 │ │ ├── cookie@0.0.4 │ │ ├── crc@0.2.0 │ │ ├── debug@0.7.2 │ │ ├── fresh@0.1.0 │ │ ├── methods@0.0.1 │ │ ├── range-parser@0.0.4 │ │ └─┬ send@0.1.0 │ │ └── mime@1.2.6 │ ├─┬ fstream@0.1.18 │ │ ├── graceful-fs@1.1.14 │ │ ├── inherits@1.0.0 │ │ └── rimraf@2.1.4 │ ├─┬ jade@0.28.1 │ │ └── coffee-script@1.4.0 │ ├─┬ log4js@0.5.1 │ │ └── async@0.1.15 │ ├── longjohn@0.0.3 │ ├── mkdirp@0.3.3 │ ├── node-uuid@1.3.3 │ ├── pkginfo@0.2.2 │ ├─┬ request@2.14.0 │ │ ├─┬ form-data@0.0.7 │ │ │ ├── async@0.1.22 │ │ │ └─┬ combined-stream@0.0.4 │ │ │ └── delayed-stream@0.0.5 │ │ └── mime@1.2.9 │ ├─┬ socket.io@0.9.10 │ │ ├── policyfile@0.0.4 │ │ ├─┬ redis@0.7.2 │ │ │ └─┬ hiredis@0.1.15 │ │ │ └── bindings@1.1.0 │ │ └─┬ socket.io-client@0.9.10 │ │ ├─┬ active-x-obfuscator@0.0.1 │ │ │ └── zeparser@0.0.5 │ │ ├── uglify-js@1.2.5 │ │ ├─┬ ws@0.4.25 │ │ │ ├── options@0.0.5 │ │ │ └── tinycolor@0.0.1 │ │ └── xmlhttprequest@1.4.2 │ ├── string@1.1.0 │ ├─┬ tar@0.1.13 │ │ ├── block-stream@0.0.6 │ │ └── inherits@1.0.0 │ ├── temp@0.4.0 │ ├── uglify-js@1.3.2 │ ├── underscore@1.3.3 │ └── wrench@1.3.9 ├─┬ alloy@1.1.3 │ ├── colors@0.6.0-1 │ ├── commander@0.6.1 │ ├─┬ jake@0.5.9 │ │ ├─┬ minimatch@0.2.12 │ │ │ ├── lru-cache@2.3.0 │ │ │ └── sigmund@1.0.0 │ │ └── utilities@0.0.27 │ ├─┬ jsonlint@1.5.1 │ │ ├── JSV@4.0.2 │ │ └─┬ nomnom@1.6.1 │ │ ├── colors@0.5.1 │ │ └── underscore@1.4.4 │ ├── pkginfo@0.2.2 │ ├─┬ source-map@0.1.9 │ │ └── amdefine@0.0.5 │ ├── stripcolorcodes@0.1.0 │ ├─┬ uglify-js@2.2.5 │ │ └─┬ optimist@0.3.7 │ │ └── wordwrap@0.0.2 │ ├── wrench@1.3.9 │ └── xmldom@0.1.13 ├─┬ npm@1.2.14 │ ├── abbrev@1.0.4 │ ├── ansi@0.1.2 │ ├── archy@0.0.2 │ ├── block-stream@0.0.6 │ ├── chmodr@0.1.0 │ ├── chownr@0.0.1 │ ├── fstream@0.1.22 │ ├─┬ fstream-npm@0.1.3 │ │ └── fstream-ignore@0.0.6 │ ├── glob@3.1.21 │ ├── graceful-fs@1.2.0 │ ├── inherits@1.0.0 │ ├── ini@1.1.0 │ ├─┬ init-package-json@0.0.6 │ │ └── promzard@0.2.0 │ ├── lockfile@0.3.0 │ ├── lru-cache@2.2.2 │ ├─┬ minimatch@0.2.11 │ │ └── sigmund@1.0.0 │ ├── mkdirp@0.3.5 │ ├── node-gyp@0.8.5 │ ├── nopt@2.1.1 │ ├─┬ npm-registry-client@0.2.18 │ │ └── couch-login@0.1.15 │ ├─┬ npmconf@0.0.23 │ │ └─┬ config-chain@1.1.5 │ │ └── proto-list@1.2.2 │ ├── npmlog@0.0.2 │ ├── once@1.1.1 │ ├── opener@1.3.0 │ ├── osenv@0.0.3 │ ├─┬ read@1.0.4 │ │ └── mute-stream@0.0.3 │ ├── read-installed@0.1.1 │ ├── read-package-json@0.2.2 │ ├── request@2.9.203 │ ├── retry@0.6.0 │ ├── rimraf@2.1.4 │ ├── semver@1.1.4 │ ├── slide@1.1.3 │ ├── tar@0.1.16 │ ├── uid-number@0.0.3 │ └── which@1.0.5 ├─┬ titanium@3.1.1 │ ├── async@0.1.22 │ ├── colors@0.6.0-1 │ ├── longjohn@0.2.0 │ ├─┬ node-appc@0.1.30 │ │ ├── node-uuid@1.3.3 │ │ ├── uglify-js@1.3.5 │ │ └── xmldom@0.1.11 │ ├─┬ prompt@0.2.9 │ │ ├── pkginfo@0.3.0 │ │ ├─┬ read@1.0.4 │ │ │ └── mute-stream@0.0.3 │ │ └─┬ utile@0.1.7 │ │ ├── deep-equal@0.0.0 │ │ ├── i@0.3.1 │ │ ├── mkdirp@0.3.5 │ │ ├── ncp@0.2.7 │ │ └── rimraf@1.0.9 │ ├── request@2.9.203 │ ├── revalidator@0.1.5 │ ├── semver@2.0.7 │ ├── sprintf@0.1.1 │ ├── temp@0.4.0 │ ├─┬ winston@0.6.2 │ │ ├── cycle@1.0.2 │ │ ├── eyes@0.1.8 │ │ ├── pkginfo@0.2.3 │ │ └── stack-trace@0.0.6 │ └── wrench@1.3.9 └─┬ titanium-code-processor@1.0.1 ├── async@0.1.22 ├── colors@0.6.0-1 ├── mu2@0.5.19 ├─┬ node-appc@0.1.30 │ ├── node-uuid@1.3.3 │ ├── request@2.9.203 │ ├── semver@2.0.7 │ ├── sprintf@0.1.1 │ ├── uglify-js@1.3.5 │ ├── wrench@1.3.9 │ └── xmldom@0.1.11 ├─┬ nomnom@1.6.1 │ ├── colors@0.5.1 │ └── underscore@1.4.4 ├─┬ source-map@0.1.23 │ └── amdefine@0.0.5 ├─┬ uglify-js@2.3.6 │ ├── async@0.2.9 │ └─┬ optimist@0.3.7 │ └── wordwrap@0.0.2 ├─┬ winston@0.6.2 │ ├── cycle@1.0.2 │ ├── eyes@0.1.8 │ ├── pkginfo@0.2.3 │ ├── request@2.9.203 │ └── stack-trace@0.0.6 ├── wrench@1.5.1 └─┬ xml2js@0.2.8 └── sax@0.5.4 ENV: GEM_PATH=/usr/local/rvm/gems/ruby-1.9.3-p194:/usr/local/rvm/gems/ruby-1.9.3-p194@global SHLVL=1 rvm_version=1.14.2 () __CF_USER_TEXT_ENCODING=0x1F5:0:71 __array_start=0 PWD=/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS rvm_prefix=/usr/local LOGNAME=Usuario Apple_Ubiquity_Message=/tmp/launch-kDJDu3/Apple_Ubiquity_Message IRBRC=/usr/local/rvm/rubies/ruby-1.9.3-p194/.irbrc RUBY_VERSION=ruby-1.9.3-p194 SSH_AUTH_SOCK=/tmp/launch-pM7GFU/Listeners MY_RUBY_HOME=/usr/local/rvm/rubies/ruby-1.9.3-p194 SHELL=/bin/bash TMPDIR=/var/folders/5q/w8wjhbn52md7l_z08myt284w0000gn/T/ rvm_bin_path=/usr/local/rvm/bin _first=0 escape_flag=1 PATH=/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin:/tools GEM_HOME=/usr/local/rvm/gems/ruby-1.9.3-p194 _second=1 COMMAND_MODE=unix2003 APTANA_VERSION=3.1.1.1364101697 USER=Usuario com.apple.java.jvmTask=JNI HOME=/Users/Usuario rvm_env_string=ruby-1.9.3-p194 rvm_path=/usr/local/rvm Apple_PubSub_Socket_Render=/tmp/launch-s7cMGK/Render rvm_ruby_string=ruby-1.9.3-p194 LANG=en_US.UTF-8
So where is the Geocoder sample that you're using so that I can try myself?
Is the same I import on Dashboard Develop tab.
Hmm, so I tried to run the Geocoder sample from the Develop tab like you said, and it works fine for me with 3.1.1 GA...
Hi Daniel, I did it: sudo npm uninstall -g titanium sudo rm -r ~/.titanium rm /Users/
You're welcome, thanks for posting the solution. Closing as fixed.