You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our company we prefer to develop using vagrant which is a box virtualization platform. This allows us all to develop on the exact same environment as production, in addition to dropping and starting boxes at will.
Specifically, we develop our ionic app on vagrant as well, making sure we all use the same ionic configuration (node, ionic, capacitor, etc.) Since virtualizing macOS is more complex, we use amazon linux as the vagrant guest OS and install the missing pod command. Otherwise everything is working smooth using Capacitor 2.x.
Bug
Starting on Capacitor 3.x npx cap sync issues the below error and does not install the iOS pods. [warn] Skipping pod install on unsupported OS
Capacitor Version
$ npx cap doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 3.2.3
@capacitor/core: 3.2.3
@capacitor/android: 3.2.3
@capacitor/ios: 3.2.3
Installed Dependencies:
@capacitor/android: not installed
@capacitor/cli: 3.2.3
@capacitor/core: 3.2.3
@capacitor/ios: 3.2.3
[error] Xcode is not installed
Platform(s)
Guest box:
$ uname -a
Linux test.test.app 4.14.243-185.433.amzn2.x86_64 #1 SMP Mon Aug 9 05:55:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Current Behavior
Within the guest box run npx cap sync
Bug: pod installation is skipped even if the command pod is installed.
Cause: the function shouldPodInstallchecks the OS instead of checking the command pod existence.
Expected Behavior
Continue with the operation and complete the pods installations, allowing to run xcode from the host.
Code Reproduction
Install vagrant (or any other virtualization platform).
cd /vagrant # a folder shared both on the host and the guest
project_id="app.test.test"
project_name="Test"
ionic start "$project_name" "sidemenu" --type="angular" --project-id="$project_id" --package-id="$project_id" --capacitor --no-interactive
cd $project_id
ionic cap add "ios"
The text was updated successfully, but these errors were encountered:
mic345
changed the title
bug: Capacitor 3.x stopped running on vagrant (or any other virtualization platform)
bug: Capacitor 3.x sync command stopped running on vagrant (or any other virtualization platform)
Sep 22, 2021
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Use case
In our company we prefer to develop using
vagrant
which is a box virtualization platform. This allows us all to develop on the exact same environment as production, in addition to dropping and starting boxes at will.Specifically, we develop our ionic app on vagrant as well, making sure we all use the same ionic configuration (node, ionic, capacitor, etc.) Since virtualizing macOS is more complex, we use amazon linux as the vagrant guest OS and install the missing
pod
command. Otherwise everything is working smooth using Capacitor 2.x.Bug
Starting on Capacitor 3.x
npx cap sync
issues the below error and does not install the iOS pods.[warn] Skipping pod install on unsupported OS
Capacitor Version
Platform(s)
Guest box:
Current Behavior
npx cap sync
pod
is installed.shouldPodInstall
checks the OS instead of checking the commandpod
existence.Expected Behavior
Continue with the operation and complete the pods installations, allowing to run xcode from the host.
Code Reproduction
npx cap sync
Other Technical Details
The text was updated successfully, but these errors were encountered: