Xcode5.1のバージョンアップに伴い、今作っているアプリの対応バージョンをiOS5からiOS6にしようと思ったところ、下のプログラムで、エラーが発生。
dispatch_releaseで、エラーの内容は下のような感じ。
ARC forbids explicit message send of 'release' |
確かに、コメントアウトしたら、エラーがなくなりました。If you used GCD or library that depends on it (e.g. Reachability), you should know dispatch_release is no longer needed in iOS 6 with ARC. In fact, if you try to use it, it is a compiler error, just like what happen when you call release in earlier SDK.
via:dispatch_release is no longer needed in iOS 6 with ARC
0 コメント:
コメントを投稿