13 報

Share this post

開發者週報 #7 好想要 Apple Watch 啊

www.ethanhuang13.com

開發者週報 #7 好想要 Apple Watch 啊

Apple/iOS 開發者的一週大小事 2019/09/09-15

13
Sep 15, 2019
1
Share this post

開發者週報 #7 好想要 Apple Watch 啊

www.ethanhuang13.com

13 的話

今年要打破我連續六年都買 iPhone 的紀錄,不買了。

就算要買,我也只會買 11。這是我第一次感到自己不是 Apple 所謂的 Pro 使用者。非 Pro 的版本就非常夠用了(加上 Pro 也拔掉 3D Touch,一視同仁)。

Apple Watch Series 5 卻是很吸引我。隨時都顯示的螢幕,可以大幅拓展這支手錶的用途。不過我還在等台灣開賣 LTE 版。

順便說一下我會出沒在本週末的 iPlayground。當宣傳組的工作人員。第一天下午會講一場關於 watchOS x SwiftUI 的研究,歡迎來交流寫 watch app 的經驗。還會跟 weak self podcast 另外兩位主持人在那邊發貼紙。如果你有參加 iPlayground 的話,歡迎來跟我打招呼~


Apple 發表會快速回顧

懶得看完 Keynote 也沒關係。

Twitter avatar for @Apple
Apple @Apple
Image
8:16 PM ∙ Sep 10, 2019
7,224Likes2,817Retweets

裡面藏了一個藍色當機畫面的彩蛋。

系統與開發工具更新

今年的發布時程亂七八糟🙄

跟在發表會之後推出的有:

  • Xcode 11 GM。但是 asset catalog 的 named colors 功能在 iOS 11 會 crash,看起來會再出一版。

  • iOS 13.0 GM。正式上線同 iPhone 11 上市當天,即 9/19-20

  • watchOS 6.0 GM。正式上線時間應該同上

  • SF Symbols (1A84)

  • tvOS 13.0 beta 10。Release Notes 沒寫,正式上線時間未知。Apple TV app 的 icon 有更新成黑底白字

  • iOS 與 iPadOS 13.1 beta 3。預計正式上線時間是 9/30-10/1

  • macOS Catalina 10.15 beta 8。預計正式上線時間是 10 月

目前這個時機點麻煩的就是 iPadOS 13.0 沒有發布 GM,可能會跳過直接進到 13.1。

你現在已經可以用 Xcode 11 GM 上傳並送審支援 iOS 13 以及 watchOS 6 的 app 了。Apple 也明說了,從 2020 年 4 月開始,所有上傳都要用 Xcode 11 對應的系統 SDKs。

Modal Presentation 的潛在 Memory Leak

因為很重要,所以我擺在前面一點。

Twitter avatar for @chockenberry
Craig Hockenberry @chockenberry
It’s going to be a busy week for iOS developers - new Xcode, final SDK, and uploads to App Store. But I discovered something important this weekend that you need to check before you ship on iOS 13. If you don’t, you’re going to ship a memory leak to customers…
4:46 PM ∙ Sep 9, 2019
128Likes48Retweets
Twitter avatar for @chockenberry
Craig Hockenberry @chockenberry
The new modal presentation behavior in iOS 13 is something that you probably want to know about in your view controller, right? So you add this code: presentationController?.delegate = self And then implement presentationControllerDidDismiss. Works great! But only on iOS 13.
4:48 PM ∙ Sep 9, 2019
Twitter avatar for @chockenberry
Craig Hockenberry @chockenberry
The UIAdaptivePresentationControllerDelegate is declared weak on iOS 12 - but guess what? It’s not. Adding your view controller as a delegate in viewDidLoad means that controller and view will never deinit because there’s a retain cycle. A leak.
4:50 PM ∙ Sep 9, 2019
18Likes1Retweet
Twitter avatar for @chockenberry
Craig Hockenberry @chockenberry
We all know that adoption of iOS is quick - but there will be a non-zero period of time where folks are running your leaky app. So add whatever availability check is appropriate and avoid this issue. This week is going to be a doozy, so here’s no time like the present!
4:55 PM ∙ Sep 9, 2019
Twitter avatar for @chockenberry
Craig Hockenberry @chockenberry
Personally, I was able to avoid the issue by moving cleanup code into deinit (in fact, that’s how I found the issue in the first place, because that code wasn’t getting called.) So it might be a good time to consider what it means for a view controller to be “gone”.
5:02 PM ∙ Sep 9, 2019

Sign in with Apple 時程與規範更新

6 月 Apple 就有說,app 若有使用第三方登入的話,必須支援 Sign in with Apple。即日起這項規定適用於新 apps。如果是舊版更新,最遲至 2020 年 4 月必須符合規範。

Apple Arcade 宣傳影片

這部 100 秒左右的短片沒有在 Keynote 中播放,所以你可能錯過了。

Apple Watch Series 5 的 LTPO 顯示器

PCWorld 的文章。

發表會上沒講到的 iPhone 11 U1 晶片神奇功能

Quora 上的長答、Sixcolors 的報導。看起來以後能做不少有趣的事。

StarBoard

iOS 13 SDK 裡的神秘 framework,到底是用在 AR 顯示模式、還是 AR 裝置🤔?點進去看 STS 的推文串。

Twitter avatar for @stroughtonsmith
Steve Troughton-Smith @stroughtonsmith
StarBoard frameworks on iOS 13 now. StarBoard is Apple’s system shell for stereo augmented reality apps (headset). Guess secrecy is out?
Image
10:58 PM ∙ Sep 10, 2019
312Likes90Retweets

IAP 自動續扣可以啟用延長扣款寬限期功能

延長寬限期有助於避免服務中斷。但要不要啟用這項功能,主要還是取決於你的服務(後台)怎麼處理扣款失敗等待重試。

iPhone 11 Pro 究竟有多少 RAM?

眾說紛紜。可能要拿到實機才有答案。

不過我從來不覺得 iPhone 的 RAM 有不夠用。目前只有 iPad 能同時在前景使用多個 apps,這問題才比較重要。

Twitter avatar for @hirakujira
Hiraku @hirakujira
I hope this is not true but seems that both iPhone 11 Pro and iPhone 11 Pro Max only have 4GB RAM. Maybe like iPad Pro, the 512GB version have higher RAM, maybe…
Image
7:52 AM ∙ Sep 11, 2019
29Likes26Retweets
Twitter avatar for @rjonesy
Ryan Jones @rjonesy
Alleged iPhone 11 specs, formatted for sane people. iPhone 11 +25% RAM, 3 → 4GB +6% battery, 2942 → 3110 mAh iPhone 11 Pro +50% RAM, 4 → 6GB +20% battery, 2658 → 3190 mAh iPhone 11 Pro Max +50% RAM, 4 → 6GB +10% battery, 3174 → 3500 mAh https://t.co/TrqXuYyIma
Twitter avatar for @OnLeaks
Steve H.McFly @OnLeaks
For those who care about these details #Apple never share officially, seems like: - #iPhone11 = 4GB RAM + 3110mAh battery (Xr = 3GB + 2942mAh) - #iPhone11Pro = 6GB RAM + 3190mAh battery (Xs = 4GB RAM + 2658mAh) - #iPhone11ProMax = 6GB RAM + 3500mAh (Xs Max = 4GB RAM + 3174mAh)
6:16 PM ∙ Sep 13, 2019
346Likes67Retweets


社群活動

iOS @ Taipei

本週二的題目是:圖片記憶體管理

探討如何降低圖片生命週期,記憶體使用,開發工具選用及操作

CocoaHeads Taipei

本週四聚會,已知 Bitrise 要來分享他們家的 CI 服務。

iPlayground 2019

本週六、日。目前處於一個已經達標又加開的狀況。

Twitter avatar for @theiPlayground
iPlayground2019 快賣完了🔥 @theiPlayground
💯iPlayground 2019 已經達到售票目標 300 張啦!🎉 主辦單位決定加開限量名額,隨時可能關閉售票,請把握最後機會。 iplayground.kktix.cc/events/iplaygr…
iplayground.kktix.cciPlayground 2019為了 iOS/Mac 開發者的技術研討會 An iOS/Mac development-focused conference in Taipei, Taiwan.
2:33 AM ∙ Sep 13, 2019
7Likes1Retweet

podcast

weak self podcast 8: 平行宇宙工程師

上禮拜明明就是 Apple 發表會,整個 podcast 錄完竟然一句話都沒提到。你們是活在平行宇宙嗎?沒錯,這集我們穿越時空回到「提問箱」的歷史去做節目了。再加上一個小時的錄音上限,就是一個輕鬆愉快的連假。


推特上的大小事

遇到什麼職業傷害可以來 follow 一下這個帳號。應該不難猜這是誰弄的吧🤪

Twitter avatar for @1star_therapist
iOS 開發者職業傷害大全 @1star_therapist
這個 Twitter 帳號專門蒐集 iOS 開發者的悲情事蹟與職業傷害。包含但不限於: 🛠開發工具難用 💥系統 API 自爆 💊蘋果退審 ⌨️蝶式鍵盤 🤪使用者評一顆星 🦐神奇客戶需求 🐷豬隊友 💩接手髒扣 👽PM 亂開規格 😬奇葩設計 💸HR 砍價 😈老闆灌雞湯畫大餅 🤯新知太多,焦慮焦慮 歡迎提供素材,互相取暖🤗
11:06 AM ∙ Sep 10, 2019
67Likes15Retweets

我也不要用這兩個坑。

Twitter avatar for @onevcat
onevcat @onevcat
UIKit 开发两大天坑:UISearchController 和 UIPageViewController,若干次血泪的教训后,我决定以后再也不用这两个类了!
4:28 AM ∙ Sep 12, 2019
51Likes3Retweets

會心一笑

鏡頭不嫌多

照片中的場景是翻新的第五大道 Apple Store。

Twitter avatar for @jtauber
James Tauber @jtauber
Tim Cook shows early prototype of 9-camera iPhone
Image
6:41 PM ∙ Sep 10, 2019
20Likes12Retweets
Twitter avatar for @WongKeung8964
Wong Keung @WongKeung8964
You should afraid of this.
Image
11:28 AM ∙ Sep 11, 2019
55Likes21Retweets

Apple Watch 買哪一款?

當然是用鈦合金的 Apple Card 買鈦合金的款式啦。

Twitter avatar for @ijustine
iJustine Pro Max @ijustine
As a self-proclaimed Apple Fangirl, let me give you financial advice...
Image
5:14 AM ∙ Sep 11, 2019
4,741Likes363Retweets

出口民調顯示

當年顯眼的金色已經退流行了。

Twitter avatar for @markgurman
Mark Gurman @markgurman
After 3000 votes (over 1K per hour!), almost half say they’re going for the green iPhone 11 Pro. The power of Apple heavily marketing that one.
Image
8:47 PM ∙ Sep 11, 2019
635Likes50Retweets

沒有文件就自己掰

Twitter avatar for @davidchu
David Chu @davidchu
Call the API allowsCostrainedNetworkAccess when you’re in China. Call the API allowsExpensiveNetworkAccess when you’re in USA.
Twitter avatar for @caseyliss
Casey Liss @caseyliss
Dear Apple, If you’re going to add a whole bunch of new APIs that you strongly advise us to adopt, please consider adding some 🤬 documentation. WWDC videos don’t count. 💔, Me https://t.co/9ofEYxt51m
3:46 PM ∙ Sep 11, 2019
7Likes2Retweets

沒有規格就自己掰

Twitter avatar for @worinibaba
鋼板桜桃8½ @worinibaba
笑死我了,我想看一下iPhone 11 Pro的续航 他说比XS多4小时 我去看XS的续航 他说比X多30分钟 我去看X的续航 他说比7多2个小时 我去看7的续航 他说比6s多2个小时 我去看6s续航 发现6s没有写续航
5:15 AM ∙ Sep 12, 2019
399Likes157Retweets

我也是每次都要查文件

Twitter avatar for @ios_memes
A meme page to check while Xcode is indexing files @ios_memes
We won’t tell if you just call them both 🤫9
Image
10:57 AM ∙ Aug 20, 2019
239Likes47Retweets

以上就是本期的內容。歡迎轉寄或推薦給同事或開發者朋友。有問題或回饋請直接回覆電子報即可。

Share this post

開發者週報 #7 好想要 Apple Watch 啊

www.ethanhuang13.com
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 ethanhuang13
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing