When running the ti build -p iphone, it works like a charm but building for android it wont find the plugin.
I have added the plugin needed code in the plugins/closessimulator/1.0/hooks/lehook.js
and while trying to build android I get the :
[INFO] plugin=/Users/{{username}}/Library/Application Support/Titanium/plugins/closessimulator/1.0/plugin.py [ERROR] Build Failed (Missing plugin for closessimulator) [ERROR] Build process exited with code 1 [ERROR] Project failed to build after 1s 949ms
I did not added any python code.
my plugin code :
exports.cliVersion = '>=3.X'; exports.init = function (logger, config, cli, appc) { cli.addHook('build.pre.compile', function (build, finished) { if ( build.target=="simulator" && build.platformName=="iphone"){ var sys = require('sys'); var exec = require('child_process').exec; function puts(error, stdout, stderr) { sys.puts(stdout); } exec("osascript -e 'tell app \"iPhone Simulator\" to quit' &", puts); } // "build" arg contains the state of the build // note: "build" arg is null for "build.pre.construct" event finished(); // remember to call finished! }); };on the tiapp.xml
<plugins> <plugin version="1.0" device="iphone">closessimulator</plugin> <plugin version="1.0">ti.alloy</plugin> </plugins>