CoreDataのiCloud統合機能がiOS 10からdeprecatedになっていた件

 

 絶賛絶句中です。

 

スポンサーリンク

読み込み中です。少々お待ち下さい

マジかよ......

 まぁ、表題の通りなのですが。

 最初は、「NSPersistentStoreUbiquitousContentNameKey」や「NSPersistentStoreDidImportUbiquitousContentChanges」が deprecated になってて、「ん?」と思ったんです。

 で、ちょっと調べてみたら、マジで非推奨になってたというね。

What's New in Core Data in macOS 10.12, iOS 10.0, tvOS 10.0, and watchOS 3.0 の「Core Data iCloud Deprecation」から引用

As of macOS v10.12 and iOS 10.0; Core Data's iCloud integration feature has been deprecated. Apps will continue to work. There are no changes to or removal of the functionality in macOS 10.12 and iOS 10. Historically, deprecated symbols in Cocoa remain functional for a considerable period of time before removal. Only the client side Core Data iCloud API symbols are deprecated. Core Data with iCloud is built on top of the iCloud Drive service. The service pieces are not effected in any way. If and when the deprecated APIs are disabled in some future OS version, applications running on iOS 9 or 10 will continue to work.

 まぁ、とりあえず当分は使えるそうですし、将来的に完全に廃止されたとしても iOS 9 と 10 では引き続き動作するそうですが......全然慰めになっていないというね。

 うぅん、さすが Apple 様と言わざるを得ない。

 ここにきて、こんなトコ変えるか、普通。

 まだほぼ英語の情報しかないっぽいけど、使ってる人、みんな困惑してるじゃねーかw

おわりに

 そもそも CoreData + iCloud って物凄いクセが強くて安定し難いので、ある程度以上に資本力があるところは元から普通にクラウドデータベースを使ってたと思うんですけど、そちらに予算を割けない小規模開発の場合は困るんじゃないかなぁ、これ。

 CloudKit は、乗せ換えるにはちょっと用途が違うしなぁ(とはいえ、実際はこれがファーストチョイスになるでしょうけれども)。

 まぁ、当座は将来に目をつぶる方向でいくしかないかもですね(笑)

 個人的には、最悪でも iOS 11 までは大丈夫だと信じたいところですが、なにしろ Apple のやることだからなぁ......

この記事をシェア
  • このエントリーをはてなブックマークに追加
  • Share on Google+
  • この記事についてツイート
  • この記事を Facebook でシェア