问题
Is it possible to debug iOS Safari without owning an Apple device?
I've deployed a React app I've been working on, and later found out the app looked weird when viewed from an iPhone. I live in a country where iPhones are not as popular, and I don't own any Apple device myself.
I manually tested the iPhone view using both Firefox's and Chrome's responsive design mode, but couldn't replicate the bug.
I've searched for ways to debug iOS Safari from a PC, and(1) found(2) some(3) answers(4), but they all require owning an Apple device.
I've found a list of services that simulate iOS, but they are either paid services (not an option), or fail to replicate the bug.
I even considered asking iPhone users to access the app from a different browser, but apparently, all browsers on iOS are basically Safari.
After endless blind CSS tweaking, I managed to fix it. But for the sake of future development and others who struggle with this, I'd like to know if it's possible at all. Thanks :)
来源:https://stackoverflow.com/questions/63358968/debugging-iphone-safari-from-a-pc-without-an-apple-device