LoginSignup
2
2

More than 5 years have passed since last update.

ファイルごとにARCを利用するか決める

Posted at

iPhoneアプリを作っていると便利なオープンソースライブラリなどが沢山あるので使いたい場面が沢山あるかと思います。
しかし、そんな時自身の使っているプロジェクトがARCを有効にしていないと、予めARCを想定しているライブラリなどを利用したい時は一手間が必要になります。

xcodeでプロジェクトを選択

Build Phasesのタブを選択

Compile Sourcesを開きARCを適用する(しない)ファイルをダブルクリックして

-fobjc-arc(ARCを有効に)
-fno-objc-arc(ARCを無効に)

というオプションを書き込んで下さい。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2