Debuging on iphone - can linking to Safari cause problems


#1

I am trying to debug my app on an iPhone 5c. When I link the device to Safari on the macbook it appears to generate errors whereas without the link to the macbook the app seems to behave as expected.

So I am not sure if I am seeing real errors using the macbook or problems caused by the cable link.

Has anyone else experienced this?


#2

Inspecting via Safari should not really influence the program.

What kind of errors are you seeing?


#3

The main problem seems to be with polyfills.js “Error:Network Error”. Reading on the net seems to be an issue which seems to popup at random. Only thing is I am not sure that polyfills is the cause of the error or some bug in my code causing it to fail.

I have already taken out all the toast calls - they worked fine in Android but on the iPhone I kept getting:

removeView was not found

so by removed all the toasts no “removeView not being found” are generated.


#4

What exact code is causing what exact error message?

And standard question in such cases:
What is your ionic info output?


#5

That’s the main problem the polyfill error appears on it own - running the same code over and over again fails to report it.

At this stage I really wanted to see if anyone had the same problem if not it’s a case of separating the code in question and checking line by line.

li packages: (C:\Users\John\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : android 6.2.3 ios 4.5.4
Ionic Framework    : ionic-angular 3.8.0

System:

ios-deploy : 1.9.2
Node : v6.10.2
npm  : 3.10.10
OS   : macOS High Sierra

XCode: Xcode 9.1 Build version 9B55

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro