我一直在关注允许使用Nativescript教程。现在,我只是在尝试设置环境,以便可以在模拟器上看到我的项目。我先运行tns add platform ios
,然后运行tns build platform ios
,然后运行tns run ios
。这将导致我的xcode iPhone仿真器打开。
当模拟器打开时,我的终端会给我以下读数
Searching for devices...
Preparing project...
Bundling application for entryPath ./main...
File change detected. Starting incremental webpack compilation...
webpack is watching the files…
模拟器将打开,但是我在模拟器上找不到我的项目。 最终,我会在终端上收到警告
[BABEL] Note: The code generator has deoptimised the styling of /Users/trevor/Coding/Vue-Practice/hello-vue/node_modules/@vue/devtools/build/backend.js as it exceeds the max of 500KB.
这通常是一条成功消息
Hash: 8e8aa98e481b597f8092
Version: webpack 4.27.1
Time: 122997ms
Built at: 07/22/2020 8:46:03 AM
Asset Size Chunks Chunk Names
assets/images/NativeScript-Vue.png 8.22 KiB [emitted]
bundle.js 357 KiB bundle [emitted] bundle
package.json 161 bytes [emitted]
runtime.js 71.4 KiB runtime [emitted] runtime
tns_modules/tns-core-modules/inspector_modules.js 700 bytes tns_modules/tns-core-modules/inspector_modules [emitted] tns_modules/tns-core-modules/inspector_modules
vendor.js 10.8 MiB vendor [emitted] vendor
Entrypoint bundle = runtime.js vendor.js bundle.js
Entrypoint tns_modules/tns-core-modules/inspector_modules = runtime.js vendor.js tns_modules/tns-core-modules/inspector_modules.js
[./ sync ^\.\/app\.(css|scss|less|sass)$] . sync nonrecursive ^\.\/app\.(css|scss|less|sass)$ 175 bytes {bundle} [built]
[./ sync recursive (?<!\bApp_Resources\b.*)(?<!\.\/\btests\b\/.*?)\.(xml|css|js|kt|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$] . sync (?<!\bApp_Resources\b.*)(?<!\.\/\btests\b\/.*?)\.(xml|css|js|kt|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$ 204 bytes {bundle} [built]
[./app.scss] 119 KiB {bundle} [optional] [built]
[./main.js] 1.7 KiB {bundle} [built]
[./package.json] 142 bytes {bundle} {tns_modules/tns-core-modules/inspector_modules} [optional] [built]
[./store.js] 142 bytes {bundle} [built]
+ 350 hidden modules
Webpack compilation complete. Watching for file changes.
Webpack build done!
当仿真器运行时,我能够将更改保存到项目中,并且收到File change detected.
的通知,但是在仿真器中看不到我的项目。