In a circumstances, when you tried to debug your app on an iOS device or simulator, your splash screen could be not passed and your app is just stuck on that screen.

Even you reinstall the app, it does not be fixed.

Here is a solution.

Delete ‘DeviceSupport’ or retry a pairing your device.

Or you couldn’t resolve with above, try it.

1. Quit Xcode.2. Open the Mac desktop application Execute command "rm -rf ~/Library/Developer/Xcode".4. Open Xcode.5. Select the Xcode menu "Product - Scheme - Edit Scheme".6. Check the "debug executable" in "Run …

Class {  var = 3  Func {
element.addEventListener("click", this.handler())

In this case, if you use the ‘this’ keyword in the listener, that works differently.


Write your code block and wrap that up with template tag and name the id as you want.

That template block does not be shown on the page.

You can get the template block with querySelector. and you can manipulate and store for a kind of repetitive tasks.

With this tag, you can save yourself from a lot of efforts and do without template frameworks like React, Vue, and Svelte

Alternative way: not using cloneNode() method.

If you made an element using “template.content.cloneNode(true)”, You cannot access the under of the element as a normal HTML element. What you can see is the only “document-fragment”. …

If you restart firebase emulator, you will lose all of the data in the firestore. To keep the data, you need to export and import execution.

Export data

> firebase emulators:export ./firestore-snapshotFound running emulator hub for project speech at http://localhost:4400
? The directory /Users/fredriccliver/Projects/Speech/firestore-snapshot already contains export data. Exporting again to the same directory will overwrite all data. Do you want to continue? Yes
i Deleting directory /Users/fredriccliver/Projects/Speech/firestore-snapshot/firestore_export
i Exporting data to: /Users/fredriccliver/Projects/Speech/firestore-snapshot
✔ Export complete

In my case, I’d export data in the same path already, so it warned me, and I overwrote it.

Import data

firebase emulators:start --import ./firestore-snapshot --inspect-functions

I’m using inspector for cloud function debugging, so if you not, just ignore the last part ‘ — inspect-functions’

Just you need to do is adding this after the emulators:start command.

--import [path]


Fredric Cliver

Dropout from Physics, self-taught and worked on the IT industry as a Dev/Design/Planning for 7 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store