2017-10-08 128 views
1

我离子的应用程序挂在启动屏幕上 - 这是工作的罚款,然后我添加了一些代码,并去测试,它的卡住。离子 - 应用程序启动屏幕上挂起

它得到了这一点:

------ 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 

deviceready消息永远不会到来。

我做过的一件事情是有点相关的是,当我正在建造或什么离子问我要升级ios-deploy从1.9.1到1.9.2。我认为这是在我做到这一点后才开始发生的。我尝试恢复到1.9.1,但它不会让我:

ld: framework not found MobileDevice 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

** BUILD FAILED ** 


The following build commands failed: 
    Ld build/Release/ios-deploy normal x86_64 
(1 failure) 
npm ERR! Darwin 17.0.0 
npm ERR! argv "/usr/local/Cellar/node/7.7.3/bin/node" "/usr/local/bin/npm" "install" "-g" "[email protected]" 
npm ERR! node v7.7.3 
npm ERR! npm v4.1.2 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] preinstall: `./src/scripts/check_reqs.js && xcodebuild` 
npm ERR! Exit status 65 
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script './src/scripts/check_reqs.js && xcodebuild'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the ios-deploy package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  ./src/scripts/check_reqs.js && xcodebuild 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs ios-deploy 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls ios-deploy 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/eamonwhite/Downloads/ionicmane-master/npm-debug.log 

这可能不是问题所在。我真的可以在接近截止日期前使用一些帮助。

UPDATE

当我尝试在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. 

UPDATE

我想通了什么导致这个 - 这是livereload - 如果我没有它的运行良好...但我有种需要它来合作开发。

+0

你是什么意思卡住?在飞溅之后你是否获得了空白屏幕,或者你是否获得了无限的加载启动屏幕? 有可能是什么屏幕? –

+0

谢谢,无限加载启动画面 - 它只是我的启动画面和中间停留的加载轮盘旋 – ewizard

回答

1

我没有我的wifi我的手机上启用,因此无法连接到ionic

+0

这里是我的新问题https://stackoverflow.com/questions/46697733/livereload-causes-app-to-stall-on-splash-屏幕连续加载轮离子 – ewizard

0

我最好的猜测是,你的iPhone还不准备iOS11调试器。它在第一次在新的iOS版本上运行您的应用程序时这样做。你必须使用XCode打开并运行你的项目,那么你应该没问题。还请确保您有最新的科尔多瓦-IOS的版本,这是4.5.1(请检查您的​​3210标签<engine name=ios">)。

+0

谢谢 - 我的config.xml中没有'engine'标签 - 我应该只是添加它吗?像'' – ewizard

+0

它应该在添加ios平台时自动添加。 'cordova平台添加ios @ 4.5.1'。 – David

0

检查你是否有以下的标签在你的config.xml

<allow-navigation href="*"/> 

你也可以检查这是否是仅见于iOS或也是在Android系统。

+0

嗯,我已经检查过了,我确实。它只发生在IOS ....我没有Android设备目前正在测试,但由于 – ewizard

0

从我的经验,我们有deviceready永远不会在我们的控制台日志显示了同样的问题,最可能的情况是的科尔多瓦插件一件事,你可以做的不一致是重新安装插件,并尝试删除您的平台文件夹做出一个干净的构建与npm cache clean

更新:基于您的更新

,你是如何运行的iOS应用程序?

是否使用类似下面的-l -c命令运行你的应用程序:

ionic run ios -l -c

,如果这是你可能会注意到,这个命令改变了​​3210文件中的行的情况:

//从 <content src="index.html"/>

//到 <content src="localhost//192.1.168.0:8000" original-src="index.html"/>

因此,将其更改回<content src="index.html"/>可能会解决此问题。

解决方案2:

你可能需要加入白名单以下列方式将本地主机:

<allow-navigation href="http://localhost:8100/*"/> 
+0

它工作在Android模拟器,我认为香港专业教育学院试过这种病再试一次......“重新安装方式”删除文件夹node_modules,重新安装,并然后'platform rm/add'然后'npm cache clean'然后'ionic build' - 另外,如果我在运行npm install后仍然出现一些依赖性错误,只要我解决了所有问题应该没问题吧? – ewizard

+0

或者我做npm缓存清理,然后'平台添加'? – ewizard

+0

我试过了,我在第一个评论中说过,它没有工作 – ewizard

相关问题