-
Notifications
You must be signed in to change notification settings - Fork 187
Changes to support iPhone X to ionic-v1 App give a "Not found" error #356
Comments
Some additional pieces of information I found in trying to debug.
So the error seems to be confined to the updated project and for Simulators. Not sure why that is the case or what I can do to address. Thank you for any pointers. |
In continuing to debug this problem I noticed that when I run the simulator (iPhone X or iPhone 6+) I get the following output in XCode (9.2)
I get the "Not Found" error after this point and the App stops. I have highlighted an ERROR I see here. When I run the same code on real device (iPhone 6+ - OS 10.2.1) I get the following output in XCode and App starts off fine.
There are two things I notice. First is the ERROR in the simulator Second is that the simulator seems to fail (compared to the log from running it on real device) before the statusbar plugin starts. I tried removing the plugin for Simulator but get the same result. I am not quite sure what to do next to debug this problem. Look forward to help from this community. Thanks, |
I faced with the same issue and found that an app spin off a built-in web server which serves www files. Thus when an app is run in emulator the server may conflict with another app on a host machine which also binds to 8080 port. In my case there was a dev web server which was run before. You should check if some app binds to 8080 port on your machine. I suppose that two iOS emulator might conflict with each other as well. Anyway, I think that a port of the built-in web server should be configurable at least. My environment:
|
Short description of the problem:
I moved to Xcode 9.2 and am trying to make changes to my ionic-v1 app to handle iPhone X properly. I have made the changes suggested by @mlynch in ticket 317 on Sep 28. I have followed the instructions in the linked iOS 11 blog.
At the end I have removed and added ios platform back to the App to clean things up.
When I try to run the App on the simulator through XCode it gives the error below in the images. Before the updates the App was coming up fine only had the iPhone X related display issues with white bars.
iphone-6 plus simulator
iphone X simulator
What behavior are you expecting?
I checked the referenced directory and there is nothing there in the end directory. Not sure if the index.html that the code is looking for is supposed to be there and if so how does it get there. I have tried removing and adding the ios platform a few times.
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Which Ionic Version? 1.x or 2.x
1.x (1.3.5) though
ionic info
output below seems to think it is 1.3.1 which may be an indicator of the problem.Plunker that shows an example of your issue
Run
ionic info
from terminal/cmd prompt: (paste output below)[WARN] Error with ./www/lib/ionic/version.json file: FILE_NOT_FOUND, trying ./bower.json.
cli packages: (/Users/stibrewal/.nvm/versions/node/v6.9.1/lib/node_modules)
global packages:
local packages:
System:
Environment Variables:
Misc:
Couple things look odd here. Per the instructions to support iPhone X I ran the following command
bower install ionic-team/ionic-bower#1.3.5
and I see in my lib/ionic/js/ionic.js that the version is " * Ionic, v1.3.5" but theionic info
command above seems to think it is 1.3.1 which is what I had earlier but doesn't show the updated version.Also there seems to be a missing ./www/lib/ionic/version.json file though the bower.json file at the root has the following. I don't understand why there are both 1.3.1 and 1.3.5 entries there.
Also the name "HelloIonic" seems wrong. I replaced that with the App name GroupTrac and tried but get the same result.
Thanks,
Sanjay.
(Edit:
cordova build ios
completes successfully)The text was updated successfully, but these errors were encountered: