LoginSignup
4
4

More than 5 years have passed since last update.

podsのプロジェクトファイルセッティングを64bit対応する方

Posted at

Git管理下にPodsプロジェクトを設定していないため、Podsプロジェクトセッティングをいちいち変えなくちゃいけなかったので、こうしてみた。Pod installするたびにデフォルトに戻っちゃうので。

Podfileに以下を追加する

Podfile
post_install do |installer|
    installer.project.build_configurations.each do |configuration|
        installer.project.build_settings(configuration.name)['ARCHS'] = '$(ARCHS_STANDARD) armv7s'
        installer.project.build_settings(configuration.name)['ONLY_ACTIVE_ARCH'] = 'NO'
        installer.project.targets.each do |target|
            target.build_configurations.each do |configuration|
                target.build_settings(configuration.name)['ARCHS'] = '$(ARCHS_STANDARD) armv7s'
                target.build_settings(configuration.name)['ONLY_ACTIVE_ARCH'] = 'NO'
            end
        end
    end
end
4
4
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
4
4