Skip to main content

How to Deploy or Debug Apple Watch Apps in Physical Device #WatchOSDev



Hello everyone, this is my first tutorial about watchOS hope you enjoy.

WatchOS is the operating system that support for apple watch, in this watchOS we could develop apps, but first thing that we must know, watch apps in 5 version and bellow are not support for independent apps, so the watch apps must develop with IOS apps in the seems time. but in WWDC 19, apple announce that WatchOS 6 will support independent apps, so the users could install apps directly from apple watch.

in this tutorial we will learn about how to create first Apple Watch Apps and deploy it in physical device, why this tutorial matter, because deploying apps in apple watch is not seems as you deploy IOS apps in IPhone or IPad, there is several unique thing that you should know. 

until this tutorial has written, I have not found anything tutorial that talking about this theme. so here it is.


first thing we must create an xcode project. and choose WatchOS like bellow


hit next, and fill the apps name as you want.


and here's the first look for apple watch apps project. you can see the different if you have experience in IOS apps developing.


and then hit the main storyboard, and add some label in there like this.


also the interface storyboard, you should add label like the main storyboard, FYI the interface storyboard is the storyboard for your watch apps. and the interface controller would be your main controller.


after that, klik on your project, and klik on watch kit app in TARGET section. look up for deployment info, in that section, you should see many version of watchOS, if your apple watch is in lower version, you should change this into your current watchOS version or lower. 

in several case developer did not notice this deployment version, so the apps are not showing in watch apps installation.
do this action to watch extension too. 

finally, run your apps in IPhone that already paired with apple watch. and let see the result.


your apps should look like this.



and let see the watch apps (not your project) in your iphone, and scroll it until down. you should see your watch apps like this


tap install and check your Apple Watch, now you should see the debug apps like bellow




Finally, we are successful deploying apps into real apple watch.  now test your own project, good luck everyone ^_^

Bonus!

for the first time deploying watch apps in physical device, you should see the warning like bellow. you dont need to worry, just tap trust and continue developing.




Popular posts from this blog

Mengapa .env File Laravel Tidak Terupload / Tercommit ke Git

.env file atau bisa kita bilang "environment file" atau file yang berisi variable constan untuk memberikan value secara global ke dalam aplikasi kita. file ini berisi variable dan value yang sensitif yang membuatnya sangat riskan atau beresiko apabila di ketahui oleh orang yang tidak bertanggung jawab. contoh  seperti berikut ini file .env di atas memiliki informasi sensitif seperti host, user dan password dari database kita. maka dari itu kita sebagai developer harus pintar-pintar untuk memperlakukan .env file ini, secara default apabila kita upload ke hosting atau vps file .env ini tidak akan bisa di akses secara global dari host kita, karna letak root host kita ada di folder public yang notabene berada di satu level ke atas folder dari posisi .env. jadi user awam tidak akan bisa mengakses dari host kita eg : http://angon.dev/.env . nah kalo ke git gmn? apabila kita menggunakan version controller seperti github, gitlab, bitbucket. secara default git akan mem

Laravel Tips : Membuat Model, Migration dan Controller dengan Sekali Jalan

  php artisan adalah generator laravel yang berfungsi untuk membuat file kodingan dengan mudah, seperti membuat controller, model, seeder, migration dan masih banyak lagi. artisan hanya bisa di lakukan di dalam lingkungan console, seperti cmd dan terminal. berikut akan saya tunjukan cara membuat controller, model, migration menggunakan php artisan. # membuat controller ketikkan perintah di bawah ini php artisan make:controller BlogController # membuat model ketikkan perintah di bawah ini php artisan make:model Blog # membuat migration ketikkan perintah di bawah ini php artisan make:migration blog # membuat seeder ketikkan perintah di bawah ini php artisan make:seeder BlogSeeder # membuat migration, controller, dan model sekaligus ketikkan perintah di bawah ini php artisan make:model -crm Blog perintah di atas akan mengenerate controller dengan nama BlogController dengan keadaan Resource method tertulis, model

Automatic API Documentation Swagger in Golang #GolangDev

pixabay.com In this article, I'll explain how to generate an API blueprint instantly using SwagGo in Golang. API blueprint is a document that contains a bunch of API endpoints, its slickly same as documentation but less description, it's allow another programmer to read and see all the available endpoint and try it out with sandbox feature. Swagger is one of the most used API blueprints right now, it's available in free but limited usage. if you wanna use the free credit, you need to understand YAML notation, you can read the example notation in swagger official documentation. but again, it's really hard and takes an expensive time to arranges all the notation to achieve a good API blueprint. fortunately, there are tools in Golang that allow us to generate the YAML notation and automatically generate the blueprint page with only using markup notation, and it's FREE unlimited for self-host, insane right? SwagGo tools are available here , the documentation is very cl