- XcodeでTARGETSの Build Phases の Compile Sources をクリックする。
- ARCを使用しないソースを全て選択し、ダブルクリックして、Compiler Flags に -fno-objc-arc を加える。
これをしておかないと、ビルド時に例えば以下のようなエラーになる。
'release' is unavailable: not available in automatic reference counting mode
'autorelease' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'autorelease'
0 件のコメント:
コメントを投稿