jrryhrtn commented on issue #338: support for creating Xcode9 style 
exportOptions.plist 
URL: https://github.com/apache/cordova-ios/pull/338#issuecomment-331922280
 
 
   Thanks for the tip.  I made the changes more or less like you described.
   The only part that did not work was line: 58, and  var project =
   projectFile.parse(self.locations);. It returned an error "root not
   defined". I opted to construct a new locations object, as all of the paths
   and project names were available to do so in build.js.
   
   Thank you!
   
   Jerry
   
   On Sat, Sep 23, 2017 at 6:37 AM, Mark van Beek <[email protected]>
   wrote:
   
   > Why require the bundleIdentifier to be entered inside the build.json file,
   > since it is already available in config.xml and *-Info.plist
   >
   > Wouldn't it be better to do it like this:
   >
   > add: var projectFile = require('./projectFile'); on line 29
   > add: var self = this; on line 58
   > add:
   >
   >         var project = projectFile.parse(self.locations);
   >         var pkgName = project.getPackageName();
   >
   >         if (pkgName && buildOpts.provisioningProfile) {
   >             exportOptions.provisioningProfiles = {[pkgName]: 
buildOpts.provisioningProfile};
   >             exportOptions.signingStyle = 'manual';
   >         }
   >
   >         if (buildOpts.codeSignIdentity) {
   >             exportOptions.signingCertificate = buildOpts.codeSignIdentity;
   >         }
   >
   > on line 141
   >
   > This automatically extracts the packageName (ie. bundleIdentifier) from
   > the *-Info.plist and uses that instead of requiring the developer to add it
   > to the build.json
   >
   > ?
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/cordova-ios/pull/338#issuecomment-331628391>,
   > or mute the thread
   > 
<https://github.com/notifications/unsubscribe-auth/AFasb6B9nHFWxGzwTzCl7lL_F5J2bd-Iks5slO2TgaJpZM4PhabP>
   > .
   >
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to