@lavamx wrote:
Hi, I am trying to use cordova-plugin-vr-view plugin in a Ionic4 App, but the install fails. We already follow de ionic install instructions (event --force flag) but it still doesn’t work.
https://cordovavrview.tangodev.it/docs.html
After run on iOS window[‘VrView’] is undefined, and obviously the plugin didn’t work.
Thanks in advance
Here are the install process:
npm install
sudo gem install cocoapods
Password:
Successfully installed cocoapods-1.8.1
Parsing documentation for cocoapods-1.8.1
Done installing documentation for cocoapods after 5 seconds
1 gem installed
npm install xml2js
- xml2js@0.4.22
added 3 packages from 3 contributors, updated 1 package and audited 54206 packages in 12.957s
found 1 high severity vulnerability
runnpm audit fix
to fix them, ornpm audit
for details
ionic cordova plugin add plugins/cordova-plugin-vr-view
Creating ./www directory for you - done!
cordova plugin add plugins/cordova-plugin-vr-view
ENOENT: no such file or directory, stat ‘/Users/jjacquesf/Projects/espacio360-app/node_modules/cordova-plugin-vr-view’### /Users/jjacquesf/Projects/espacio360-app/node_modules/cordova-plugin-vr-view exists, but it is a link file not a directory
### but the target folder was removed …/plugins/cordova-plugin-vr-view
ls -l node_modules | grep vr
lrwxr-xr-x 1 jjacquesf staff 33 Oct 3 06:26 cordova-plugin-vr-view -> …/plugins/cordova-plugin-vr-view### Add iOS platform after place a plugin copy again in the target folder
ionic cordova platform add ioscordova platform add ios
Using cordova-fetch for cordova-ios@^5.0.0
Adding ios project…
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: io.ionic.starter
Name: lemuu
iOS project created with cordova-ios@5.0.1
Installing “cordova-plugin-vr-view” for ios
Installing “cordova-plugin-cocoapod-support” for ios
Discovered saved plugin “cordova-plugin-whitelist”. Adding it to the project
Installing “cordova-plugin-whitelist” for ios
Adding cordova-plugin-whitelist to package.json
Discovered saved plugin “cordova-plugin-statusbar”. Adding it to the project
Installing “cordova-plugin-statusbar” for ios
Adding cordova-plugin-statusbar to package.json
Discovered saved plugin “cordova-plugin-device”. Adding it to the project
Installing “cordova-plugin-device” for ios
Adding cordova-plugin-device to package.json
Discovered saved plugin “cordova-plugin-splashscreen”. Adding it to the project
Installing “cordova-plugin-splashscreen” for ios
Adding cordova-plugin-splashscreen to package.json
Discovered saved plugin “cordova-plugin-ionic-webview”. Adding it to the project
Installing “cordova-plugin-ionic-webview” for ios
Adding cordova-plugin-ionic-webview to package.json
Discovered saved plugin “cordova-plugin-ionic-keyboard”. Adding it to the project
Installing “cordova-plugin-ionic-keyboard” for ios
Adding cordova-plugin-ionic-keyboard to package.json
Searching for new pods
Checking cordova-plugin-vr-view for pods.
cordova-plugin-vr-view requires pod: GVRSDK
Checking config.xml for pods.
Installing pods
Sit back and relax this could take a while.
Analyzing dependenciesAdding spec repo
trunk
with CDN[https://cdn.cocoapods.org/
](https://cdn.cocoapods.org/)
Downloading dependencies
Installing GTMSessionFetcher (1.1.6)Installing GVRSDK (1.60.0)
Installing GoogleToolboxForMac (2.1.0)
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 3 total pods installed.Updating ios build to use workspace.
Adding schemesionic cordova resources ios --force
cordova-res ios
[cordova-res] Generated 45 resources for ios
[cordova-res] Wrote to config.xml
Posts: 1
Participants: 1