【问题标题】:Nativescript SideDrawer not able to run in iOS emulator but working fine in androidNativescript SideDrawer 无法在 iOS 模拟器中运行,但在 android 中运行良好
【发布时间】:2017-06-25 20:33:27
【问题描述】:

在 iOS 模拟器中运行但在 Android 中运行良好时点击以下。

JS ERROR ReferenceError: 找不到变量:TKSideDrawerDelegate

感谢您的帮助

【问题讨论】:

  • 如果您希望有人帮助您,您应该显示一些相关代码

标签: nativescript angular2-nativescript


【解决方案1】:

最初发布here的可能解决方案

我花了很长时间,终于通过使用以下方法让它工作了 步骤(在我的项目文件夹中):

  • tns platform remove ios
  • rm -rf node_modules lib platforms
  • tns plugin add nativescript-telerik-ui
  • 修改app.module.ts,分别添加nativescript-telerik-ui指令
  • 在 iOS 模拟器中,删除现有应用(我发现这很关键)
  • tns run ios --emulator

我发现关键步骤似乎是首先手动删除应用程序 添加插件后的iOS模拟器。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多