Open newuser44 opened 5 years ago
Any luck with this. Getting this now.
cordova platform add ios@5 Using cordova-fetch for cordova-ios@5 Adding ios project... Creating Cordova project for the iOS platform: Path: platforms/ios Package: CompanyApp Name: CompanyApp iOS project created with cordova-ios@5.1.1 Installing "branch-cordova-sdk" for ios Failed to install 'branch-cordova-sdk': Error: Cannot find module 'xml2js' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18)
After removing was able to install iOS.
Trying to add Branch back in. Get another error.
cordova plugin add branch-cordova-sdk Installing "branch-cordova-sdk" for ios Unable to load PlatformApi from platform. Error: Cannot find module 'unorm' Failed to install 'branch-cordova-sdk': Error: Unhandled "error" event. (The platform "ios" does not appear to be a valid cordova platform. It is missing API.js. ios not supported.)
After some back and forth. Trying to install branch again.
Failed to install 'branch-cordova-sdk': Error: Cannot find module './src/superspawn'
Branch cordova is in the config.xml file.
Got to setup iOS. Have a script the installs node_moduals and then removes and adds ios.
During this process it fails.
I remove the plugin cordova plugin remove branch-cordova-sdk
Re-setup node_modals and iOS Everything is fine.
Install branch-cordovan again. This works now
Go to build iOS (legacy way)
Fails TypeError: Cannot read property 'flags' of undefined I don't think this is related to branch-cordovan but the only way to fix it is re-install node modules. And the loop continues.
Failed to install 'branch-cordova-sdk': Error: Cannot find module 'xml2js'