[BuildInfo Plugin] Does not work on iOS

Forge Component
(1)
Published on 2017-12-14 by Matthias Preuter
1 vote
Published on 2017-12-14 by Matthias Preuter

The plugin doesn't work on iOS.

The probem is the line $parameters.Build = BuildInfo.versionCode;

This leads to an exception: Cannot assign a JavaScript string with value 43 to an output parameter of type Integer Check the JavaScript node 'GetAppVersion' of the action 'GetBuildInfo'.

to solve this I changed the type of  Build parameter of the Javascript-action to Text and the Build output parameter of the GetBuildInfo  too. But you could convert it to an integer in the assign. 

Gert-Jan Vernooij wrote:

The plugin doesn't work on iOS.

The probem is the line $parameters.Build = BuildInfo.versionCode;

This leads to an exception: Cannot assign a JavaScript string with value 43 to an output parameter of type Integer Check the JavaScript node 'GetAppVersion' of the action 'GetBuildInfo'.

to solve this I changed the type of  Build parameter of the Javascript-action to Text and the Build output parameter of the GetBuildInfo  too. But you could convert it to an integer in the assign. 


Hello,


I noticed the latest version already includes your fix.



Just as a heads up for anyone that might try this plugin now.


Thanks.