On May 16, 2017, new update data for Pokémon Sun and Pokémon Moon became available bringing the game up to version 1.2. This update must be applied in order to use the Internet features of Pokémon Sun and Pokémon Moon. The Save data will still be available for use after downloading the update but do not delete the update data. The update data can be viewed in the "Downloadable Content" area of the Data Management menu.
Patch Notes - Pokémon Sun and Pokémon Moon Version 1.2
- Fixed the issue that occurred when attacking with Sky Drop on a Pokémon using Spiky Shield.
- Fixed the issue where Scatterbug didn’t learn Egg Moves properly.
- Various fixes to improve gameplay.
- Once version 1.2 has been installed, any Battle Videos saved prior to this cannot be played or shared.
Source:
http://en-americas-support.nintendo.com/app/answers/detail/a_id/25400/~/how-to-update-pok%C3%A9mon-sun-and-pok%C3%A9mon-moon