Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

watchos

Detecting available API iOS vs. watchOS in Swift

August 17, 2023 by Tarik

If you want to execute that code only on iOS, then use #if os(iOS) instead of the if #available(iOS …). This way, you are not using a dynamic check for the version of your operating system, but are compiling a different code for one OS or the other.

Categories ios Tags ios, swift2, watchos, watchos-2 Leave a comment

Xcode 13: Build hangs with “iPhone is busy: making Apple Watch ready for development”

July 26, 2023 by Tarik

I have been struggling with this for some time now. If you don’t need the Apple Watch, instead of turning it off completely, you can also turn on airplane mode if configured correctly. On your watch, go to Settings App → Airplane Mode. Make sure that both WIFI and Bluetooth switches are turned off! When … Read more

Categories xcode Tags watchos, xcode Leave a comment

Equal widths of subviews with SwiftUI

July 9, 2023 by Tarik

I’m still confused about when and how relativeWidth is supposed to be used, but I was able to achieve want I wanted without using it. (EDIT 18 July 2019: According to the iOS 13 Beta 4 release notes, relativeWidth is now deprecated) In the last update to my question I had some extra spacing between … Read more

Categories watchos Tags swiftui, watchos Leave a comment

Non-Public Library SockPuppetGizmo

May 8, 2023 by Tarik

You have not done anything wrong. I created an empty sample project, archived it, and can confirm the SockPuppetGizmo framework is linked by default. This is either a bug with Xcode linking or with the validation in iTunes connect. I suggest we all file a radar to bring this to Apple’s attention ASAP. otool -L … Read more

Categories ios Tags apple-watch, ios, watchos, xcode Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa