离子 – 应用程序挂在启animation面
我的离子应用程序挂在闪屏 – 它工作正常,然后我添加了一些代码,并去testing,它是卡住了。
它到了这一点:
------ Debug phase ------ Starting debug of 2e5ac6066864be48322a757c4d0ccdfde52cf356 (N51AP, iPhone 5s (GSM), iphoneos, arm64) aka '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
消息永远不会来。
我所做的一件事情是有关系的,当我正在build设或离子时,要求我将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" "ios-deploy@1.9.1" npm ERR! node v7.7.3 npm ERR! npm v4.1.2 npm ERR! code ELIFECYCLE npm ERR! ios-deploy@1.9.1 preinstall: `./src/scripts/check_reqs.js && xcodebuild` npm ERR! Exit status 65 npm ERR! npm ERR! Failed at the ios-deploy@1.9.1 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
这可能不是问题。 我可以真正使用一些帮助,我接近截止date。
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
– 如果我运行它没有罚款…但我需要它的工作来发展。
我没有在手机上启用wifi
,因此无法连接到ionic
。
我最好的猜测是你的iPhone还没有准备iOS11的debugging器。 这是在新的iOS版本上首次运行应用程序时的操作。 你必须使用XCode打开并运行你的项目,那么你应该没问题。 请确保你有最新版本的cordova-ios是4.5.1
(检查config.xml
的<engine name=ios">
标签)。
检查你的config.xml中是否有下面的标签
<allow-navigation href="*"/>
你也可以检查这是否仅在iOS或Android中观察到。
根据我的经验,我们有同样的问题deviceready
从来没有显示在我们的控制台日志中,最可能的情况将是Cordova插件的不一致性你可以做的一件事是重新安装插件,并尝试删除你的平台文件夹,并做一个清洁build立与npm cache clean
。
更新:
根据你的更新,你如何运行你的iOS应用程序?
你正在使用如下所示的-l -c
命令来运行你的应用程序:
ionic run ios -l -c
如果是这种情况,你可能会注意到这个命令改变了config.xml
文件中的一行:
//从<content src="index.html"/>
//到<content src="localhost//192.1.168.0:8000" original-src="index.html"/>
所以把它改回<content src="index.html"/>
可能会解决这个问题。
解决scheme2:
您可能需要按以下方式将本地主机列入白名单:
<allow-navigation href="http://localhost:8100/*"/>