【问题标题】:livereload causes app to stall on splash screen (continuous loading wheel) - Ioniclivereload 导致应用程序在初始屏幕上停止(连续加载轮) - Ionic
【发布时间】:2018-03-23 16:34:06
【问题描述】:

更新

没有livereload 它也停止工作 - 所以现在它不是由livereload 引起的 - 但我仍然需要帮助解决这个问题


iOS 11 更新后(我认为这是原因,因为之前一切都很好),我无法使用livereload。如果我尝试使用 livereload,它会挂在启动屏幕上 - 加载轮旋转。以下是有关我的离子环境的一些信息:

Eamons-MBP:myapp eamonwhite$ ionic info

cli packages: (/Users/eamonwhite/ionicmane/myApp/node_modules)

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

global packages:

    cordova (Cordova CLI) : 7.0.1 

local packages:

    @ionic/app-scripts : 1.3.12
    Cordova Platforms  : android 6.2.3 ios 4.4.0
    Ionic Framework    : ionic-angular 3.5.0

System:

    ios-deploy : 1.9.2 
    ios-sim    : 6.1.2 
    Node       : v7.7.3
    npm        : 4.1.2 
    OS         : macOS High Sierra
    Xcode      : Xcode 9.0 Build version 9A235 

Misc:

    backend : legacy

当我使用xcode 运行它时,它会在xcode 控制台中显示:

2017-10-10 15:49:17.417901-0400 myApp[8476:3520766] Resetting plugins due to page load.
2017-10-10 15:49:38.433127-0400 myApp[8476:3520766] Failed to load webpage with error: The request timed out.

在离子控制台中,它在deviceready 事件之前停止:

------ Debug phase ------
Starting debug of 2e5ac6066864be48322a757c4d0ccdfde52cf356 (N51AP, iPhone 5s (GSM), iphoneos, arm64) a.k.a. 'Eamon White’s iPhone' connected through USB...
[  0%] Looking up developer disk image
[ 90%] Mounting developer disk image
[ 95%] Developer disk image already mounted
[100%] Connecting to remote debug server
-------------------------
(lldb) command source -s 0 '/tmp/2F06F4BB-A7E5-4B97-87EC-A01CBEE5661A/fruitstrap-lldb-prep-cmds-2e5ac6066864be48322a757c4d0ccdfde52cf356'
Executing commands in '/tmp/2F06F4BB-A7E5-4B97-87EC-A01CBEE5661A/fruitstrap-lldb-prep-cmds-2e5ac6066864be48322a757c4d0ccdfde52cf356'.
(lldb)     platform select remote-ios --sysroot '/Users/eamonwhite/Library/Developer/Xcode/iOS DeviceSupport/10.3.3 (14G60)/Symbols'
  Platform: remote-ios
 Connected: no
  SDK Path: "/Users/eamonwhite/Library/Developer/Xcode/iOS DeviceSupport/10.3.3 (14G60)/Symbols"
(lldb)     target create "/Users/eamonwhite/ionicmane/myapp/platforms/ios/build/device/myApp.app"
Current executable set to '/Users/eamonwhite/ionicmane/myapp/platforms/ios/build/device/myApp.app' (arm64).
(lldb)     script fruitstrap_device_app="/private/var/containers/Bundle/Application/5EBCC0EF-FDB9-4DE7-A961-D91B6139AEA0/myApp.app"
(lldb)     script fruitstrap_connect_url="connect://127.0.0.1:50188"
(lldb)     target modules search-paths add /usr "/Users/eamonwhite/Library/Developer/Xcode/iOS DeviceSupport/10.3.3 (14G60)/Symbols/usr" /System "/Users/eamonwhite/Library/Developer/Xcode/iOS DeviceSupport/10.3.3 (14G60)/Symbols/System" "/private/var/containers/Bundle/Application/5EBCC0EF-FDB9-4DE7-A961-D91B6139AEA0" "/Users/eamonwhite/ionicmane/myapp/platforms/ios/build/device" "/var/containers/Bundle/Application/5EBCC0EF-FDB9-4DE7-A961-D91B6139AEA0" "/Users/eamonwhite/ionicmane/myapp/platforms/ios/build/device" /Developer "/Users/eamonwhite/Library/Developer/Xcode/iOS DeviceSupport/10.3.3 (14G60)/Symbols/Developer"
(lldb)     command script import "/tmp/2F06F4BB-A7E5-4B97-87EC-A01CBEE5661A/fruitstrap_2e5ac6066864be48322a757c4d0ccdfde52cf356.py"
(lldb)     command script add -f fruitstrap_2e5ac6066864be48322a757c4d0ccdfde52cf356.connect_command connect
(lldb)     command script add -s asynchronous -f fruitstrap_2e5ac6066864be48322a757c4d0ccdfde52cf356.run_command run
(lldb)     command script add -s asynchronous -f fruitstrap_2e5ac6066864be48322a757c4d0ccdfde52cf356.autoexit_command autoexit
(lldb)     command script add -s asynchronous -f fruitstrap_2e5ac6066864be48322a757c4d0ccdfde52cf356.safequit_command safequit
(lldb)     connect
(lldb)     run
success
(lldb)     safequit
Process 7681 detached

此外,在这开始发生之前,我将我的 ios-deploy1.9.1 更新为 1.9.2

为什么我不能使用livereload?同样,我认为这可能与iOS 11 更新有关。有人知道解决方法吗...我读过一些关于 npm run watch 的文章,但无法运行。

我创建了一个空白应用程序,看看它是否可以使用 livereload 运行,但它不会。

【问题讨论】:

  • 这是我在您之前的问题中强调的,即plugin are not ready,当您使用 livereload 时,这会导致您的插件不一致,并且您的日志也显示相同。您日志中的这一行 Resetting plugins due to page load. 2017-10-10 15:49:38.433127-0400 myApp[8476:3520766] Failed to load webpage with error: The request timed out.
  • 我不确定我是否完全遵循,您有什么建议吗?我尝试删除 node_modules 并执行 npm installnpm cache clean 如果你说插件有问题。
  • 你也知道...我构建了一个空白应用程序并运行它...同样的事情发生了...我该如何解决“不一致”?
  • 你检查过 safari 开发工具中是否有日志吗?
  • 我没有看过 safari 开发工具,我不这样做 - 而且......问题也开始发生而没有 livereload ......我运行它并进入白屏,然后它只是挂在启动画面上,所以其他原因导致此

标签: ios xcode ionic-framework deployment build


【解决方案1】:

我手机上的wifi 已关闭,因此无法连接到ionic

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-20
    • 2012-11-05
    • 1970-01-01
    • 2017-05-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多