2017-10-08 131 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

相關問題