Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Error in iosBeforePrepareHook #77

Closed
mike-nelson opened this issue Aug 13, 2016 · 6 comments
Closed

Error in iosBeforePrepareHook #77

mike-nelson opened this issue Aug 13, 2016 · 6 comments

Comments

@mike-nelson
Copy link

I tried to add this plugin and build cordova and it throws an error in the hook script.

undefined is not a function
at getOldProjectName in iosBeforePrepareHook,js:65:27

My project name is "Speaking Email" and it has not changed.

@lunchbag
Copy link

Looks like your environment doesn't yet support Array.prototype.find. Here's a workaround in iosBeforePrepareHook.js:

  var projectFile = null;

  files.forEach(function(fileName) {
    if (path.extname(fileName) === '.xcodeproj') {
      projectFile = fileName
    };
  });

@nikDemyankov
Copy link
Member

@lunchbag is probably correct. @mike-nelson you can either update your version of the node, or use the code snippet from above.

@sandwichfeet
Copy link

@nikDemyankov Just confirming I get the same error using node 6.4.3 and 6.5.0. lunchbag's fix does work correct it though

@mike-nelson
Copy link
Author

Thanks. Can this polyfill be committed to the project?

Cheers
Mike

Mike Nelson // CEO (and Developer)
beweb // P 09 3077042 // M 027 4403757
Listen to email safely while driving with www.speaking.email

On 2/09/2016, at 4:47 AM, sandwichfeet [email protected] wrote:

@nikDemyankov Just confirming I get the same error using node 6.4.3 and 6.5.0. lunchbag's fix does work correct it though


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@nikDemyankov
Copy link
Member

Will do

nikDemyankov added a commit that referenced this issue Sep 8, 2016
@nikDemyankov nikDemyankov added this to the v1.2.1 milestone Sep 8, 2016
chaffeqa added a commit to sportstech/cordova-universal-links-plugin that referenced this issue Sep 12, 2016
…lugin

* 'master' of github.com:nordnet/cordova-universal-links-plugin:
  Fixed warning, that entitlements file is not set in the reference section.
  Fix for nordnet#77
@nikDemyankov
Copy link
Member

Fixed in v.1.2.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants