本來可以正常 build 的 pod 檔案內容:
![](http://35.229.131.145/wp-content/uploads/2020/03/image.png)
在 20200314 做了 pod update 之後,會發現 FirebaseInstanceID 這個 framework 沒有被放進來,所以 build xcode workspace 會 fail。
![](http://35.229.131.145/wp-content/uploads/2020/03/image-2.png)
後來將 pod 檔案修改一下,加入 FirebaseInstanceID:
![](http://35.229.131.145/wp-content/uploads/2020/03/image-4.png)
再做 pod deintegrate 然後 pod install:
![](http://35.229.131.145/wp-content/uploads/2020/03/image-5.png)
就可以看到 FirebaseInstanceID 回來了。
不知道是 Firebase 本身的問題,還是 CocoaPods 的問題?
結論是 Cocoapods 問題,升級 Cocoapods 到新版之後就沒有這個狀況了。