e-imaxina / cordova-plugin-deeplinks

Cordova plugin to support Universal/Deep Links for iOS/Android.
MIT License
33 stars 68 forks source link

Plugin fails at afterPrepareHook.js #23

Open skle opened 4 years ago

skle commented 4 years ago

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" />