-
-
Notifications
You must be signed in to change notification settings - Fork 197
Open
Assignees
Milestone
@matthargett
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 platforms are listed.
run npm install
run ns prepare
run ns run
Relevant log output (if applicable)
$ ns run (node:22973) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) ✖ 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. 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. ✖ WARNING: adb from the Android SDK is not installed or is not configured properly. For Android-related operations, the NativeScript CLI will use a built-in version of adb. To avoid possible issues with the native Android emulator, Genymotion or connected Android devices, verify that you have installed the latest Android SDK and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements ✖ WARNING: The Android SDK is not installed or is not configured properly. You will not be able to run your apps in the native emulator. To be able to run apps in the native Android emulator, verify that you have installed the latest Android SDK and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements ✖ Cannot find a compatible Android SDK for compilation. To be able to build for Android with your current android runtime, install one of the following supported Android SDK targets: android-17 android-18 android-19 android-20 android-21 android-22 android-23 android-24 android-25 android-26 android-27 android-28 android-29 android-30 android-31 android-32 android-33 android-34 android-35 Supported targets vary based on what android runtime you have installed. Currently your app uses @nativescript/android null Run `$ sdkmanager` to manage your Android SDK versions. ✖ No compatible version of the Android SDK Build-tools are installed on your system. You can install any version in the following range: '>=23 <=35'. 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. ✖ Error executing command 'javac'. Make sure you have installed The Java Development Kit (JDK) and set JAVA_HOME environment variable. You will not be able to build your projects for Android. To be able to build for Android, verify that you have installed The Java Development Kit (JDK) and configured it according to system requirements as described in https://docs.nativescript.org/setup ✖ WARNING: The Java Development Kit (JDK) is not installed or is not configured properly. You will not be able to work with the Android SDK and you might not be able to perform some Android-related operations. To ensure that you can develop and test your apps for Android, verify that you have installed the JDK as described in http://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html (for JDK 8). Your environment is not configured properly and you will not be able to execute local builds. Verify that your environment is configured according to the system requirements described at https://docs.nativescript.org/setup/macos#setting-up-macos-for-android. ➜ logo-xr git:(main) ✗ ns run visionos (node:23040) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) Searching for devices... Preparing project... webpack is watching the files... asset vendor.js 9.06 MiB [compared for emit] (name: vendor) (id hint: defaultVendor) asset bundle.js 108 KiB [emitted] (name: bundle) asset runtime.js 86.9 KiB [emitted] (name: runtime) Entrypoint bundle 9.25 MiB = runtime.js 86.9 KiB vendor.js 9.06 MiB bundle.js 108 KiB runtime modules 25 KiB 12 modules orphan modules 18.4 KiB [orphan] 10 modules modules by path ./node_modules/ 3.4 MiB javascript modules 3.13 MiB 648 modules json modules 273 KiB modules by path ./node_modules/mdn-data/css/*.json 242 KiB 3 modules modules by path ./node_modules/css-tree/ 30.7 KiB 2 modules modules by path ./src/ 31.2 KiB modules by path ./src/*.ts 23.6 KiB 9 modules modules by path ./src/*.xml 731 bytes 2 modules ./src/ sync \.(xml%7Cjs%7C(?<%21\.d\.)ts%7Cs?css)$ 420 bytes [built] [code generated] ./src/app.css 6.4 KiB [built] [code generated] external "~/package.json" 42 bytes [optional] [built] [code generated] webpack 5.98.0 compiled successfully in 6630 ms Webpack compilation complete. Watching for file changes. warning: 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 Type-checking in progress... File change detected. Starting incremental webpack compilation... assets by status 9.25 MiB [cached] 3 assets Entrypoint bundle 9.25 MiB = runtime.js 86.9 KiB vendor.js 9.06 MiB bundle.js 108 KiB cached modules 3.44 MiB (javascript) 25 KiB (runtime) [cached] 687 modules javascript modules 6.81 KiB ./src/ sync \.(xml%7Cjs%7C(?<%21\.d\.)ts%7Cs?css)$ 420 bytes [built] ./src/app.css 6.4 KiB [built] webpack 5.98.0 compiled successfully in 5290 ms Webpack compilation complete. Watching for file changes. Type-checking in progress... Resolving SPM dependencies... No errors found. Command line invocation: /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 User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES Build settings from command line: IPHONEOS_DEPLOYMENT_TARGET = 17.0 objc[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. objc[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. objc[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. Resolve Package Graph Resolved source packages: swift-collections: https://github.com/apple/swift-collections.git @ 1.1.4 swift-algorithms: https://github.com/apple/swift-algorithms.git @ 1.2.1 swift-numerics: https://github.com/apple/swift-numerics.git @ 1.0.2 resolved source packages: swift-collections, swift-algorithms, swift-numerics Updating runtime package.json with configuration values... Project successfully prepared (visionos) Building project... Xcode build... objc[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. objc[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. objc[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. Project successfully built. Build time: 47.470 s. The build result is located at: /Users/matt/src/logo-xr/platforms/visionos/build/Debug-xrsimulator/logoxr.app Installing on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA... Successfully installed on device with identifier '8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA'. Successfully transferred bundle.js on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA. Successfully transferred package.json on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA. Successfully transferred runtime.js on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA. Successfully transferred vendor.js on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA. Restarting application on device 8D2F3D58-8B1D-4C45-95B2-5568AEAFE6EA...
Environment
OS: macOS 15.4 CPU: (8) arm64 Apple M2 Shell: /bin/zsh node: 22.13.0 npm: 11.1.0 nativescript: 8.9.0 # android java: Not Found ndk: Not Found apis: Not Found build_tools: Not Found system_images: Not Found # ios xcode: 16.2/16C5032a cocoapods: 1.16.2 python: Not Found python3: 3.13.2 ruby: 3.4.2 platforms: - DriverKit 24.2 - iOS 18.2 - macOS 15.2 - tvOS 18.2 - visionOS 2.2 - watchOS 11.2
Dependencies
"dependencies": { "@nativescript/core": "~8.9.0", "@nativescript/swift-ui": "^4.0.2", "buffer": "^6.0.3", "logo": "^0.2.0", "rxjs": "^7.8.1", "stream-browserify": "^3.0.0", "util": "^0.12.5" }, "devDependencies": { "@nativescript/tailwind": "^2.1.0", "@nativescript/types": "~8.9.0", "@nativescript/visionos": "~8.9.0", "@nativescript/webpack": "~5.0.0", "@types/jest": "^29.5.14", "jest": "^29.7.0", "patch-package": "^8.0.0", "tailwindcss": "~3.4.0", "ts-jest": "^29.2.6", "ts-node": "^10.9.2", "typescript": "~5.4.0" }
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct