Title: `ns run` with only visionos platform added in current project tried to run non-existent Android build · Issue #5833 · NativeScript/nativescript-cli · GitHub
Open Graph Title: `ns run` with only visionos platform added in current project tried to run non-existent Android build · Issue #5833 · NativeScript/nativescript-cli
X Title: `ns run` with only visionos platform added in current project tried to run non-existent Android build · Issue #5833 · NativeScript/nativescript-cli
Description: Issue Description with NS 8.9, ns run gives a lot of Android error messages in a project that never had Android and only has visionOS. Reproduction with NS 8.9: Create a new NS project with just the visionOS platform, make sure no other ...
Open Graph Description: Issue Description with NS 8.9, ns run gives a lot of Android error messages in a project that never had Android and only has visionOS. Reproduction with NS 8.9: Create a new NS project with just th...
X Description: Issue Description with NS 8.9, ns run gives a lot of Android error messages in a project that never had Android and only has visionOS. Reproduction with NS 8.9: Create a new NS project with just th...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/5833
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ns run` with only visionos platform added in current project tried to run non-existent Android build","articleBody":"### Issue Description\n\nwith NS 8.9, `ns run` gives a lot of Android error messages in a project that never had Android and only has visionOS.\n\n### Reproduction\n\nwith NS 8.9:\nCreate a new NS project with just the visionOS platform, make sure no other platforms are listed.\nrun `npm install`\nrun `ns prepare`\nrun `ns run`\n\n\n\n### Relevant log output (if applicable)\n\n```shell\n$ ns run\n(node:22973) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n✖ The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.\n To be able to perform Android build-related operations, set the `ANDROID_HOME` variable to point to the root of your Android SDK installation directory.\n\n✖ WARNING: adb from the Android SDK is not installed or is not configured properly.\n For Android-related operations, the NativeScript CLI will use a built-in version of adb.\nTo avoid possible issues with the native Android emulator, Genymotion or connected\nAndroid devices, verify that you have installed the latest Android SDK and\nits dependencies as described in http://developer.android.com/sdk/index.html#Requirements\n\n✖ WARNING: The Android SDK is not installed or is not configured properly.\n You will not be able to run your apps in the native emulator. To be able to run apps\nin the native Android emulator, verify that you have installed the latest Android SDK\nand its dependencies as described in http://developer.android.com/sdk/index.html#Requirements\n\n✖ Cannot find a compatible Android SDK for compilation.\nTo be able to build for Android with your current android runtime, install one of the following supported Android SDK targets:\n android-17\n android-18\n android-19\n android-20\n android-21\n android-22\n android-23\n android-24\n android-25\n android-26\n android-27\n android-28\n android-29\n android-30\n android-31\n android-32\n android-33\n android-34\n android-35\nSupported targets vary based on what android runtime you have installed. Currently your app uses @nativescript/android null\n Run `$ sdkmanager` to manage your Android SDK versions.\n\n✖ No compatible version of the Android SDK Build-tools are installed on your system. You can install any version in the following range: '\u003e=23 \u003c=35'.\n Install the required build-tools through Android Studio. In case you already have them installed, make sure the `ANDROID_HOME` environment variable is set correctly.\n\n✖ Error executing command 'javac'. Make sure you have installed The Java Development Kit (JDK) and set JAVA_HOME environment variable.\n You will not be able to build your projects for Android.\nTo be able to build for Android, verify that you have installed The Java Development Kit (JDK) and configured it according to system requirements as\n described in https://docs.nativescript.org/setup\n\n✖ WARNING: The Java Development Kit (JDK) is not installed or is not configured properly.\n You will not be able to work with the Android SDK and you might not be able\nto perform some Android-related operations. To ensure that you can develop and\ntest your apps for Android, verify that you have installed the JDK as\ndescribed in http://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html (for JDK 8).\n\nYour environment is not configured properly and you will not be able to execute local builds.\nVerify that your environment is configured according to the system requirements described at\nhttps://docs.nativescript.org/setup/macos#setting-up-macos-for-android.\n➜ logo-xr git:(main) ✗ ns run visionos\n(node:23040) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\n(Use `node --trace-deprecation ...` to show where the warning was created)\nSearching for devices...\nPreparing project...\nwebpack is watching the files...\nasset vendor.js 9.06 MiB [compared for emit] (name: vendor) (id hint: defaultVendor)\nasset bundle.js 108 KiB [emitted] (name: bundle)\nasset runtime.js 86.9 KiB [emitted] (name: runtime)\nEntrypoint bundle 9.25 MiB = runtime.js 86.9 KiB vendor.js 9.06 MiB bundle.js 108 KiB\nruntime modules 25 KiB 12 modules\norphan modules 18.4 KiB [orphan] 10 modules\nmodules by path ./node_modules/ 3.4 MiB\n javascript modules 3.13 MiB 648 modules\n json modules 273 KiB\n modules by path ./node_modules/mdn-data/css/*.json 242 KiB 3 modules\n modules by path ./node_modules/css-tree/ 30.7 KiB 2 modules\nmodules by path ./src/ 31.2 KiB\n modules by path ./src/*.ts 23.6 KiB 9 modules\n modules by path ./src/*.xml 731 bytes 2 modules\n ./src/ sync \\.(xml%7Cjs%7C(?\u003c%21\\.d\\.)ts%7Cs?css)$ 420 bytes [built] [code generated]\n ./src/app.css 6.4 KiB [built] [code generated]\nexternal \"~/package.json\" 42 bytes [optional] [built] [code generated]\nwebpack 5.98.0 compiled successfully in 6630 ms\nWebpack compilation complete. Watching for file changes.\nwarning: Directory /Users/matt/src/logo-xr/App_Resources/visionOS/src with native iOS source code doesn't contain a modulemap file. Metadata for it will not be generated and it will not be accessible from JavaScript. To learn more see https://docs.nativescript.org/guides/ios-source-code\nType-checking in progress...\nFile change detected. Starting incremental webpack compilation...\nassets by status 9.25 MiB [cached] 3 assets\nEntrypoint bundle 9.25 MiB = runtime.js 86.9 KiB vendor.js 9.06 MiB bundle.js 108 KiB\ncached modules 3.44 MiB (javascript) 25 KiB (runtime) [cached] 687 modules\njavascript modules 6.81 KiB\n ./src/ sync \\.(xml%7Cjs%7C(?\u003c%21\\.d\\.)ts%7Cs?css)$ 420 bytes [built]\n ./src/app.css 6.4 KiB [built]\nwebpack 5.98.0 compiled successfully in 5290 ms\nWebpack compilation complete. Watching for file changes.\nType-checking in progress...\nResolving SPM dependencies...\nNo errors found.\nCommand line invocation:\n /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project /Users/matt/src/logo-xr/platforms/visionos/logoxr.xcodeproj -scheme logoxr -skipPackagePluginValidation IPHONEOS_DEPLOYMENT_TARGET=17.0 -destination generic/platform=iOS -resolvePackageDependencies\n\nUser defaults from command line:\n IDEPackageSupportUseBuiltinSCM = YES\n\nBuild settings from command line:\n IPHONEOS_DEPLOYMENT_TARGET = 17.0\n\nobjc[23686]: Class XROS1_0SimRuntime is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x11141c0e0) and /Library/Developer/CoreSimulator/Volumes/xrOS_21N5233f/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x1118100e0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.\nobjc[23686]: Class XROS1_0SimRuntime is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x11141c0e0) and /Library/Developer/CoreSimulator/Volumes/xrOS_21N5259j/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x111ce40e0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.\nobjc[23686]: Class XROS1_0SimRuntime is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x11141c0e0) and /Library/Developer/CoreSimulator/Volumes/xrOS_21N305/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x111cf80e0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.\nResolve Package Graph\n\n\nResolved source packages:\n swift-collections: https://github.com/apple/swift-collections.git @ 1.1.4\n swift-algorithms: https://github.com/apple/swift-algorithms.git @ 1.2.1\n swift-numerics: https://github.com/apple/swift-numerics.git @ 1.0.2\n\nresolved source packages: swift-collections, swift-algorithms, swift-numerics\nUpdating runtime package.json with configuration values...\nProject successfully prepared (visionos)\nBuilding project...\nXcode build...\nobjc[23780]: Class XROS1_0SimRuntime is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x10fc8c0e0) and /Library/Developer/CoreSimulator/Volumes/xrOS_21N5233f/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x1134040e0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.\nobjc[23780]: Class XROS1_0SimRuntime is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x10fc8c0e0) and /Library/Developer/CoreSimulator/Volumes/xrOS_21N5259j/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x1137dc0e0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.\nobjc[23780]: Class XROS1_0SimRuntime is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x10fc8c0e0) and /Library/Developer/CoreSimulator/Volumes/xrOS_21N305/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 1.0.simruntime/Contents/MacOS/xrOS 1.0 (0x1135a00e0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.\nProject successfully built.\nBuild time: 47.470 s.\nThe build result is located at: /Users/matt/src/logo-xr/platforms/visionos/build/Debug-xrsimulator/logoxr.app\nInstalling on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA...\nSuccessfully installed on device with identifier '8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA'.\nSuccessfully transferred bundle.js on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA.\nSuccessfully transferred package.json on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA.\nSuccessfully transferred runtime.js on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA.\nSuccessfully transferred vendor.js on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA.\nRestarting application on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA...\n```\n\n### Environment\n\n```yaml\nOS: macOS 15.4\nCPU: (8) arm64 Apple M2\nShell: /bin/zsh\nnode: 22.13.0\nnpm: 11.1.0\nnativescript: 8.9.0\n\n# android\njava: Not Found\nndk: Not Found\napis: Not Found\nbuild_tools: Not Found\nsystem_images: Not Found\n\n# ios\nxcode: 16.2/16C5032a\ncocoapods: 1.16.2\npython: Not Found\npython3: 3.13.2\nruby: 3.4.2\nplatforms:\n - DriverKit 24.2\n - iOS 18.2\n - macOS 15.2\n - tvOS 18.2\n - visionOS 2.2\n - watchOS 11.2\n```\n\n### Dependencies\n\n```json\n\"dependencies\": {\n \"@nativescript/core\": \"~8.9.0\",\n \"@nativescript/swift-ui\": \"^4.0.2\",\n \"buffer\": \"^6.0.3\",\n \"logo\": \"^0.2.0\",\n \"rxjs\": \"^7.8.1\",\n \"stream-browserify\": \"^3.0.0\",\n \"util\": \"^0.12.5\"\n},\n\"devDependencies\": {\n \"@nativescript/tailwind\": \"^2.1.0\",\n \"@nativescript/types\": \"~8.9.0\",\n \"@nativescript/visionos\": \"~8.9.0\",\n \"@nativescript/webpack\": \"~5.0.0\",\n \"@types/jest\": \"^29.5.14\",\n \"jest\": \"^29.7.0\",\n \"patch-package\": \"^8.0.0\",\n \"tailwindcss\": \"~3.4.0\",\n \"ts-jest\": \"^29.2.6\",\n \"ts-node\": \"^10.9.2\",\n \"typescript\": \"~5.4.0\"\n}\n```\n\n### Please accept these terms\n\n- [x] I have searched the [existing issues](https://github.com/NativeScript/nativescript-cli/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\n- [x] This is a bug report\n- [x] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/matthargett","@type":"Person","name":"matthargett"},"datePublished":"2025-03-04T15:51:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5833/nativescript-cli/issues/5833"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c1f7588a-fe10-e1c2-2d61-946715be0919 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB1A:1A070E:A8EA63E:DFDE874:696E289F |
| html-safe-nonce | 547e12400f0348ff5b021bb6421b36e88be31a07fa3433a37290bd088e3a09ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjFBOjFBMDcwRTpBOEVBNjNFOkRGREU4NzQ6Njk2RTI4OUYiLCJ2aXNpdG9yX2lkIjoiMzg5MTkzNTUyODMyMTEyNzk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 25bb6d7ca98a4639b8d77f0b63c502bc8b11825b08a634832529b78874bdbd3c |
| hovercard-subject-tag | issue:2894723551 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/5833/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37441a083a027fae0b1162e453a8619191759297e92a2edc1af063fbf1dde346/NativeScript/nativescript-cli/issues/5833 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37441a083a027fae0b1162e453a8619191759297e92a2edc1af063fbf1dde346/NativeScript/nativescript-cli/issues/5833 |
| og:image:alt | Issue Description with NS 8.9, ns run gives a lot of Android error messages in a project that never had Android and only has visionOS. Reproduction with NS 8.9: Create a new NS project with just th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthargett |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2fbe8cba5e260284c10af515699ff9bb2d6ace05ab6c2e2e585b71d93b2812c3 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7fb3bc5c995a876085291706b75cf9b08900c338 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width