macospkgbuildproductbuild

Mac productbuild gives JavaScriptError


I am trying to use the Mac productbuild app to make an installer for my application.

Running productbuild it does not throw any error but when I try to open the package it says:

There was an error reading the package: JavaScriptError.

When I tried to look at the installer logs, it says:

IFJS: **** exception SyntaxError: Expected Token "("

How I can debug/resolve this? Am I missing some file?


Solution

  • Found the issue.

    It was because of the special character used in Bundle identifier.

    And, I was using this id as choice id in my distribution.xml

    I was using + sign. Instead, when I used Plus, it worked!