13 報

Share this post

開發者週報 #19 更新 iOS 不可能變磚的原理

www.ethanhuang13.com

開發者週報 #19 更新 iOS 不可能變磚的原理

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

13
Dec 15, 2019
1
Share

13的話

本週大事:Xcode 11.3、iOS 11.3、Mac Pro 上架(台灣還沒)、Flutter 1.12

用我的話來說是這樣:

Twitter avatar for @ethanhuang13
13.3 @ethanhuang13
How long have we not seen iOS, iPadOS, macOS, tvOS, watchOS, and Xcode official released at the same day?🤔 仔細想想,我們有多久沒有見到 iOS、iPadOS、macOS, tvOS、watchOS、Xcode 在同一天出正式版了?#重大突破
6:15 AM ∙ Dec 11, 2019
21Likes3Retweets

Xcode 11.3 正式版

我用 xcversion 下載到 beta 版,最後還是直接上官網抓。

Twitter avatar for @XcodeReleases
Xcode Releases @XcodeReleases
🚨 #Xcode11.3 GM Seed is out! 🚨 📝 - developer.apple.com/documentation/… (Link says beta?) ⬇️ - download.developer.apple.com/Developer_Tool…
download.developer.apple.comUnauthorized - Apple DeveloperThe page you requested does not exist.
6:05 PM ∙ Dec 10, 2019
41Likes13Retweets

iOS 13.3

馬上就來把 Memoji 從鍵盤中關掉。

Twitter avatar for @ethanhuang13
13.3 @ethanhuang13
馬上關掉
Twitter avatar for @AppleTerminal
Apple Terminal @AppleTerminal
iOS 13.3 New Feature: You can now disable Memoji Stickers within the stock iOS keyboard, here's how to do it: Go to Settings, General, Keyboard, all the way on the bottom disable "Memoji Stickers." #Apple #iOS13 #iOS133 https://t.co/DxDZ2KUqry
2:38 AM ∙ Dec 11, 2019
4Likes1Retweet

如何整合 Sign in with Apple 到自己的 iOS App 上

iOS & Backend

越來越多 Sign In with Apple 踩坑文章了。👍

此外 13.2 有新增了「註冊」按鈕:

Twitter avatar for @parrots
Curtis Herbert @parrots
Oh, Apple added a .signUp style for Sign in with Apple buttons in iOS 13.2. Much nicer than “Continue with Apple”.
4:31 PM ∙ Dec 13, 2019
33Likes4Retweets

Swift 的 && 與 || 右邊用了 @autoclosure

Twitter avatar for @handkid
Green @handkid
刷題遇到了一個 Swift 問題 在 recursive function (func A) 內 有一段這樣的內容 isTrue = isTrue && x==y && A(y) 這時候 A(y) 沒有反應 容我補個 gist
8:37 AM ∙ Dec 10, 2019
Twitter avatar for @yllan
宇宙漂流井底之蛙🐸 @yllan
@handkid 因為 && 前面遇到 false 了,後面無論再怎樣都對結果沒影響,就不需要執行了 同樣的行爲也發生在 || 遇到 true (未看先猜是這個)
9:00 AM ∙ Dec 10, 2019
Twitter avatar for @PofatTseng
Pofat @PofatTseng
@marslin_dev @NelsonT @handkid 我來補完,就 Swift 討論,&& 和 || 都是 static func 定義在 sodlib 裡, rhs argument用 autoclosure 包起來,讓它有 lazy 的功能,如下: static func && (lhs: Bool, rhs: @autoclosure () throws -> Bool) rethrows -> Bool { return lhs ? try rhs() : false } 可以看到唯有 true 才 rhs()
2:58 PM ∙ Dec 10, 2019
28Likes2Retweets
Twitter avatar for @PofatTseng
Pofat @PofatTseng
@marslin_dev @NelsonT @handkid @autoclosure 同理 static func || (lhs: Bool, rhs: @autoclosure () throws -> Bool) rethrows -> Bool { return lhs ? true : try rhs() } 比較特別的是 ==, || , && 都不是語言層面的運算子,而是一個 stdlib 裡的 function
2:59 PM ∙ Dec 10, 2019
11Likes1Retweet
Twitter avatar for @PofatTseng
Pofat @PofatTseng
喵的,我去年 iPlayground 有講啊... 果然是冷門場次啊,大家都去隔壁棚 @marslin_dev 那場瞻仰其風采了
Twitter avatar for @PofatTseng
Pofat @PofatTseng
@marslin_dev @NelsonT @handkid 我來補完,就 Swift 討論,&& 和 || 都是 static func 定義在 sodlib 裡, rhs argument用 autoclosure 包起來,讓它有 lazy 的功能,如下: static func && (lhs: Bool, rhs: @autoclosure () throws -> Bool) rethrows -> Bool { return lhs ? try rhs() : false } 可以看到唯有 true 才 rhs()
3:20 PM ∙ Dec 10, 2019
18Likes1Retweet

Mac Pro 到底貴不貴

頂規 50,199,美金!

Twitter avatar for @ethanhuang13
13.3 @ethanhuang13
第一眼我還以為是台幣😂C
Twitter avatar for @XcodeReleases
Xcode Releases @XcodeReleases
#Finally a Mac that can unzip #Xcode in a reasonable amount of time. https://t.co/AFVc9pZya3
2:23 AM ∙ Dec 11, 2019

有輪子的機殼要加價。Apple 第一台四輪產品?

Twitter avatar for @stroughtonsmith
Steve Troughton-Smith @stroughtonsmith
Feet or Wheels? Only €480 extra, because of course it requires a whole new chassis frame and isn't just something you can attach later
Image
Image
5:20 PM ∙ Dec 10, 2019
54Likes17Retweets

推文作者是 Disney 的員工。對他們來說似乎不貴。

Twitter avatar for @yiningkarlli
Yining Karl Li @yiningkarlli
Also, to be fair, the price for the Mac Pro is not an issue for large VFX/CG firms. Here’s the top-end Mac Pro vs. a similarly spec’d Dell (and you’ll find similar Dells/HPs at every large VFX/CG house). Crazy price for normal people, but Mac Pro is not for normal people.
Image
12:50 AM ∙ Dec 11, 2019
87Likes38Retweets

但是對於一般開發者來說呢:

Twitter avatar for @cyanapps
Ying Zhong @cyanapps
把配置推到顶,然后默默关掉页面,已经成为我这样贫穷开发者的爱好了。
Image
11:37 PM ∙ Dec 10, 2019
31Likes1Retweet

還是用 iMac Pro/MacBook Pro 吧。

不然就試試看這招?

Twitter avatar for @ChristianSelig
Christian Selig @ChristianSelig
wonder if this would pass app review
Image
4:52 PM ∙ Dec 10, 2019
1,209Likes115Retweets

「iOS 更新不可能變磚」的原理

我在 MacRumors 的留言區看到的。

Twitter avatar for @ethanhuang13
13.3 @ethanhuang13
TIL「iOS 更新不可能變磚」的原理,又用到 APFS 特性!
forums.macrumors.comApple Releases iOS and iPadOS 13.3 With Communication Limits for Screen Time, Safari Physical Security Key Support, and MoreiOS devices can’t really be bricked because you can always DFU them. Even with over the air updates, bricking is practically impossible now with APFS. The way the updates work is: - The OS partition is cloned. (copy on write, this doesn’t take extra space) - The update is applied to the...
2:30 AM ∙ Dec 11, 2019
33Likes18Retweets

Xcode 小技巧

搜尋用 regex 找中文

Twitter avatar for @tualatrix
TualatriX @tualatrix
刚刚学到了一招,在 Xcode 里面使用正则表达式来匹配中文字符串,可以用 \p{Han}。比如我要匹配所有中文内容的 String 类型,就可以用:"\p{Han}+"。 这一搜不得了,原来我的项目里还有这么多中文,国际化之路漫漫。哭了…
Image
5:34 AM ∙ Dec 11, 2019
252Likes48Retweets
Twitter avatar for @Tomato_Zen
Tomato @Tomato_Zen
寫swift真的是很久沒用到正則😇 如果想找到包含其他符號文字的中文字串的話建議使用 ".*\p{Han}+.*"q
Twitter avatar for @tualatrix
TualatriX @tualatrix
刚刚学到了一招,在 Xcode 里面使用正则表达式来匹配中文字符串,可以用 \p{Han}。比如我要匹配所有中文内容的 String 类型,就可以用:"\p{Han}+"。 这一搜不得了,原来我的项目里还有这么多中文,国际化之路漫漫。哭了… https://t.co/paHWLCawx7
6:41 AM ∙ Dec 11, 2019

內建 Build Settings 說明

其實我也是看推才想起來😂

Twitter avatar for @X140Yu_
Xinyu Zhao @X140Yu_
原来 Xcode 右边就能看到对于每一个 build setting 的说明,之前一直在网上找来着 =,=
Image
7:42 AM ∙ Dec 15, 2019
41Likes10Retweets

Code Review 導讀與討論

最近也是滿多人在討論 code review 的。

下面是其他角度:

Twitter avatar for @saiday
迷學威龍 @saiday
跟同事一起開發程式就像是吃火鍋,圍爐的那種,端著一盤屎想丟進去煮的人當然有問題,但阻止不了有人丟屎的鍋友是不是問題也不小? 是屎耶,這滿好勸退的吧,怎麼就煮了呢?
6:04 AM ∙ Dec 12, 2019
58Likes12Retweets
Twitter avatar for @PofatTseng
Pofat @PofatTseng
@YodaWangTW @niafan12 @weak_self 看誰寫的,別人的是 shit 自己的是 the shit
11:29 AM ∙ Dec 13, 2019
5Likes1Retweet

Flutter 1.12 以及 macOS 上的 Flutter App

Twitter avatar for @zonble
zonble 🍺 ゾンビル @zonble
Flutter 1.12 - iOS Darkmode - New Cupertino Widgets - Upgraded add-to-app support - Google Fonts - Android X by default #FlutterInteract
3:31 PM ∙ Dec 11, 2019
13Likes1Retweet
Twitter avatar for @zonble
zonble 🍺 ゾンビル @zonble
Flutter 1.12 的桌面版本支援進入 alpha 階段 #FlutterInteract
3:43 PM ∙ Dec 11, 2019
Twitter avatar for @zonble
zonble 🍺 ゾンビル @zonble
iPlayground Flutter app for macOS :p
Image
Image
Image
3:55 PM ∙ Dec 15, 2019

剩下的請自行 follow GDE 的推文。

五階段

Twitter avatar for @myread02
翎小二 @myread02
發生bug的五個階段: 否認:這不可能出問題 憤怒:是他挖坑給我跳 討價還價:使用者不要這樣用就好啦! 抑鬱:我code寫超爛 接受:好吧,改吧
7:28 AM ∙ Dec 12, 2019
267Likes58Retweets

資深工程師症候群?

Twitter avatar for @saiday
迷學威龍 @saiday
做到生氣去看 WWDC session,結果發現是我現場參加還有做筆記的 session,我氣我自己!
11:37 AM ∙ Dec 9, 2019
Twitter avatar for @p5d12000
工程師幹話 @p5d12000
上週我勉強體會到了什麼是成為資深工程師的滋味。 我花了一個下午寫了一個 Library,正要在 GitLab 上面建一個 project 推上去,定神一看才發現 GitLab 上面已經有一分一模一樣用途的 Library,還是自己在七個月之前寫的。 而且七個月之前寫的那份還比現在寫得好。
12:46 PM ∙ Dec 9, 2019
521Likes93Retweets

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

1
Share
Comments
Top
New
Community

No posts

Ready for more?

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