我正在尝试在iOS设备上运行Nativescript程序。运行tns运行ios会在所有正常的构建日志中生成结果,直到达到“ Xcode Build ...”为止,它将在95%的时间永久存在。有时它起作用,有时却不起作用。而且我不知道为什么。
我已经尝试了所有方法,但无法弄清为什么有时它会起作用,而其他时候却不起作用。重新启动计算机没有帮助。一切都是最新的。我还禁用了iTunes中的Wifi同步(在另一篇文章中看到)。删除平台和node_modules也无济于事。即使在模拟器上运行也不起作用。
"dependencies": {
"@angular/animations": "8.0.0",
"@angular/common": "8.0.0",
"@angular/compiler": "8.0.0",
"@angular/core": "8.0.0",
"@angular/forms": "8.0.0",
"@angular/http": "8.0.0-beta.10",
"@angular/platform-browser": "8.0.0",
"@angular/platform-browser-dynamic": "8.0.0",
"@angular/router": "8.0.0",
"@nstudio/nativescript-camera-plus": "^2.2.0",
"ajv": "^6.10.0",
"nativescript-angular": "^8.0.1",
"nativescript-barcodescanner": "^3.2.1",
"nativescript-camera": "^4.5.0",
"nativescript-facebook-account-kit": "^1.2.1",
"nativescript-http-formdata": "^1.7.0",
"nativescript-imagecropper": "^1.0.6",
"nativescript-stripe": "^5.4.3",
"nativescript-theme-core": "^1.0.6",
"nativescript-ui-dataform": "^4.0.1",
"nativescript-ui-sidedrawer": "^6.0.0",
"parse-usdl": "git+https://github.com/kdagnan/parse-usdl.git",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.3.3",
"tns-core-modules": "^5.4.3",
"typescript": "~3.4.5",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@angular/compiler-cli": "^8.1.1",
"@nativescript/schematics": "^0.6.0",
"@ngtools/webpack": "8.0.0",
"nativescript-dev-typescript": "^0.10.0",
"nativescript-dev-webpack": "^0.24.0",
"tns-platform-declarations": "^5.4.2"
},
"nativescript": {
"id": "org.nativescript.NyteProto",
"tns-android": {
"version": "5.4.0"
},
"tns-ios": {
"version": "5.4.2"
}
},
我真的很茫然。我真的很喜欢Nativescript,但这无休止地困扰着我。我每天花几个小时只是对运行命令感到不快,以实际查看所做的更改。一旦安装一次,通过HMR进行的更新大多数时候也可以正常工作。
编辑:与tns build ios相同的问题。我认为可能是XCode问题?