Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Plugin fails at afterPrepareHook.js #23

Open
skle opened this issue Dec 10, 2019 · 0 comments
Open

Plugin fails at afterPrepareHook.js #23

skle opened this issue Dec 10, 2019 · 0 comments

Comments

@skle
Copy link

skle commented Dec 10, 2019

The plugin fails at afterPrepareHook.js. The error I got was:

v1.indexOf is not a function

I found out this has to do with comparing IPHONEOS_DEPLOYMENT_TARGET in hooks/lib/ios/xcodePreferences.js

In my case it tried to compare an integer with a string. The integer was set by the deployment-target preference in the app's config.xml:

<preference name="deployment-target" value="11" />

Changing the value fixed the issue:

<preference name="deployment-target" value="11.0" />

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

No branches or pull requests

1 participant