Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16796] iOS: Build fails to place JavaScript files into the iOS sim app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2014-04-11T22:05:13.000+0000
Affected Version/sRelease 3.2.2
Fix Version/sn/a
ComponentsiOS
LabelsAPP-792585, supportTeam, triage
ReporterEduardo Gomez
AssigneeChris Barber
Created2014-04-02T15:58:27.000+0000
Updated2017-03-22T20:53:20.000+0000

Description

Attachments

FileDateSize
Screen Shot 2014-03-25 at 9.57.08 AM (1).png2014-04-02T15:58:28.000+0000112225

Comments

  1. Ingo Muschenetz 2014-04-02

    Chris, FYI
  2. Eduardo Gomez 2014-04-10

    Chris, what's you opinion about this change. He deleted everything node and npm, npm cache cleaned upon re-install. Same result, still fails. Then he reset CLI hook.js per note above and it builds fine.
  3. Chris Barber 2014-04-10

    [~egomez] The problem here is the hook api needed to change between 3.2.0 and 3.2.1. 3.2.1 is now correct. You need to fix it in the offending hook. What hooks are being invoked? Look for a hook that has a 'pre' event callback and add version checks like this:
       exports.init = function (logger, config, cli, appc) {
           cli.addHook('build.android.dexer', {
               pre: function (data, callback) {
                   // do something with 'data'
       
                   if (appc.version.gt(cli.version, '3.2.0')) {
                       callback(null, data);
                   } else {
                       callback(data);
                   }
               }
           });
       };
       
  4. Eduardo Gomez 2014-04-10

    Can I check hooks from ti config? Otherwise, can you elaborate a bit more please.
  5. Chris Barber 2014-04-11

    [~egomez] You need to look in several places. ti config's "paths.hooks" will list all directories containing hooks that are loaded. You also need to look at what plugins are enabled in the tiapp.xml. Then look at each hook file and find the offending code and fix it using the code above. If you are using LiveView, you MUST update to the latest version. Studio may not be updating that properly. Make sure you do not have more than one version of a single hook that is being loaded.
  6. Eduardo Gomez 2014-04-11

    Thanks. It seems the problem is solved. Removing the paths.hooks did the trick. Once they removed the Appcelerator Studio paths, the test project (and all others) build fine using un-altered CLI 3.2.1. Please resolved ticket as applicable.
  7. Chris Barber 2014-04-11

    Resolving as invalid since the problem is in a CLI hook, not Titanium CLI or SDK.
  8. Lee Morris 2017-03-22

    Closing ticket as invalid with reference to the above comments.

JSON Source