Post

Replies

Boosts

Views

Activity

Reply to Open javascript popup in WKWebView?
Answer here does not work - javaScriptCanOpenWindowsAutomatically does nothing. iOS is pain. Everything what works on Android is problematic on iOS. Android WebView has no problem with window.open(). We needed to open link with PDF and link is dynamically created. We had to change "button" element with onclick="window.open(...)" to "a" element with target=_blank and dynamic href=...
Mar ’22
Reply to "Not enough free space" when trying to install XCode even though there's ~7x more free space than required
Shame on Apple! I have 41 GB free space but I can not update latest Xcode which has just 12 GB. How much place it needs to unzip? My 4 year old MAC with 120GB disk is not usable I can trash it because I have there just MAC OS + Xcode and it says that 40 GB is not enough for Xcode update. Terrible! Also it always downloads Xcode from the start! Dear Apple, why I have to download several times 12GB when you show alert about not enough space to install (but it is already downloaded because it has only 12Gb and free space is 40 GB, why you delete it???). I have to download again and again after unsuccessful Update button click.
Feb ’21
Reply to XCode 10 simulator slow
I would like to share my knowledge with simulator performance issue. I have hybrid HTML5 + JavaScript app (web/android/iOS) and for android/iOS mobile apps I use web-view. I detected that some part of my app is extremely slow in Xcode simulator. It is part with Date object manipulations. When I run e.g. this simple JavaScript codevar x = new Date(); x.setMilliseconds(0); x.setSeconds(0); x.setMinutes(0);in cycle with e.g. 1000 iterations it runs fast (several tens milliseconds e.g. 30 ms) in any browser any device any platform including very old iOS device e.g. iPhone 5C and several years old iPad 2, BUT IN SIMULATOR IT TAKES 6000 ms (yes, 6 seconds!). So simulator is 200 times slower! Terrible! Jsfiddle demo here: https://jsfiddle.net/kjms16cw/ I see in Xcode console error: "[IPC] Connection::waitForSyncReply: Timed-out while waiting for reply". Interesting is that Xcode during that 6 seconds show app CPU usage 0% but in host device (MacBook Pro) monitor I see that CPU increased from about 5% before to 50% during test. Dear Apple can you explain please that low simulator performance? So Im not possible to test my app in simulator at all... we also need simulator for testing but also for creating screenshots for several resolutions required before app publishing in app store. My app is for public transport and we need to do lot of date calculations each second (several hundreds) which usually takes 10 ms but in simulator several seconds and interval each second makes app totally unresponsive and unusable in simulator.
Jan ’20