Just My Life & My Work

Posts tagged ‘watchos’

[watchOS] 使用加速度計 (Using Accelerometer)

最近要做穿戴式裝置的App,需要研究Apple Watch如何使用加速度計 (Using Accelerometer)

[watchOS] 使用加速度計 (Using Accelerometer).jpg

(繼續閱讀…)

廣告

[iOS][watchOS] Watch App三個ID設定

三年前(2015年)幫公司製作比特幣查詢用的Watch App,已有開發經驗遇過一些坑,照理說能馬上迎刃而解才是,不過大腦卻沒能及時反應,只好上網打關鍵字求解!

watch apps

問題:

error: WatchKit Extension doesn’t contain any WatchKit apps whose bundle identifiers match “com.happy.watch.watchkit". Verify that the value of WKAppBundleIdentifier in your WatchKit Extension’s Info.plist matches the value of CFBundleIdentifier in your WatchKit App’s Info.plist.

想開發Watch App,需要申請三個ID:

  1. iOS
  2. WatchKit App
  3. WatchKit Extension

這三個ID逐一依賴,怎麼說?3依賴2,2依賴1,缺一不可哪~

(繼續閱讀…)

[iOS][watchOS] 位元代碼 (Bitcode)

還沒看到有高人翻譯,所以我暫且稱之為位元代碼 (Bitcode),看來我被中國化了⋯⋯台灣用語應為位元程式碼!其實在WWDC 2015,Apple只是提到它,並沒有詳細介紹它架構與運作,謎樣地描述什麼是位元代碼 (Bitcode):

Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store.

Xcode hides symbols generated during build time by default, so they are not readable by Apple. Only if you choose to include symbols when uploading your app to iTunes Connect would the symbols be sent to Apple. You must include symbols to receive crash reports from Apple.

Note: For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.

如果以圖示來描繪是:

bitcode

(繼續閱讀…)

[iOS][watchOS] Phone與Watch溝通

來到watchOS2的時代,除了Watch可以獨立運行外,與Phone溝通也變得比較容易,透過全新的WatchConnectivity framework,就能彼此溝通呢!於是就不用像watchOS1時代拐彎抹角囉~

Watch Connectivity00001

(繼續閱讀…)

[watchOS] 開發watchOS 2前一定要知道的四件事

這次來個殺人標題,讓路過的人比較會有好奇心來一探究竟:P~

先前已寫過watchOS1和watchOS2的架構,大致上知道運算核心擴展 (Extension),從iPhone搬到Apple Watch上。

watchOS 2_1 watchOS 2_2

(繼續閱讀…)

標籤雲

%d 位部落客按了讚: