Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

NCMBFileのgetDataInBackgroundWithBlockメソッドでcastのエラー #110

Conversation

reoharada
Copy link

お世話になっております。
AppLabの原田と申します。
表題の件で、アプリが申請できないため、困っております。
修正箇所はわかったんですが、これでいいのかわからないです。
対応策を教えていただけると幸いです。

概要(Summary)

NCMBFileクラスのgetDataInBackgroundWithBlockメソッドで、
取得するファイルが存在しない場合に、castで失敗してしまうようです。
image
下記のエラーが表示されました。

Could not cast value of type '__NSDictionaryI' (0x10bb23288) to 'NSData' (0x10bb22338).

xcode8.3.1からの不具合かと思われます。
クラス判定をいれたら、正常に動作しました。
他の対応方法等あれば、ご教示いただけると幸いです。
よろしくお願い致します。

動作確認手順(Step for Confirmation)

なし

@oonoyosp
Copy link
Contributor

#125
の方でテストコードを追加したプルクリエストを作成しました。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants