Today I learned the difference between image and container in Docker. An image is a template that can be used to create a container while container is the instances of said Docker images. The container is the one that runs your application.
To explain it in cake term, image is the recipe of the cake and container is the cake itself. You can create multiple cakes based on the same recipe.
To see all the images available, you can run the following:
$~ docker images
and to see the container that’s currently running, you can run:
$~ docker ps
or if you want to see the list of available containers, run:
Today I learned how to git clone a repository that has git submodules inside of it. I realized that when I cloned a project it will clone the parent repo but the submodules will be empty. Here are the steps on how to clone it properly.
If you haven’t cloned the repository yet, you can use --recurse-submodules option:
There may be a time when you try to run your app in your device and you get the following error:
Could not locate device support files.
This iPhone (Model …) is running iOS 13.4 (11E608c), which may not be supported by this version of Xcode.
This issue usually happened when you are still developing your app using old version of Xcode but your device have already been upgraded to latest iOS version that is not supported by Xcode.
There are multiple ways to solve this issue:
Upgrade your Xcode to the latest version - While this is the most obvious way to fix the issue, it could be your most hardest too. Depending on the situation, you might have to update all your projects issues before upgrading (Unsupported swift version, Unsupported SDK version, etc). That’s a lot of work
Keep two versions of Xcode installed - This have been my preferred option whenever there’s a new iOS beta version dropped and I couldn’t wait to upgrade my device (living on the edge baby!). You have to symlink the DeviceSupport/ folder from the beta or latest version to the stable version that you’ve been using.1 However this option might not be feasible if you have a limited disk space on your machine.
Copying the latest device support files to DeviceSupport folder - I just discovered this today and still in awe on how simple it is. I will list the steps down below.