#Cordova Plugin Symlink Fix for iOS Plugins With Custom Frameworks
License: MIT
This is a hook designed to fix custom iOS frameworks contained within Cordova plugins when their symlinks are broken. (Ex: Those found on the Facebook Connect plugin).
Symlinks can break when the plugin is either downloaded on Windows and then moved to an OSX machine or when the plugin is pulled from the Cordova plugin repo / npm without the symlinks being present in the archive as described in this Cordova bug.
To install it:
- Grab the js file and drop it a "hooks" folder in your project root
- Update config.xml with the following:
<hook type="before_compile" src="hooks/hook-symlink-fix.js" />
- Remove the ios platform if present (or the plugin)
- Re-add
Plugins should now be fixed.
Alternativley you can install the Visual Studio Tools for Apache Cordova CLI Support Plugin which encapsulates this functionality.