Cocoapods: Xcode 12 warning update to recommended settings

Created on 4 Nov 2020  路  8Comments  路  Source: CocoaPods/CocoaPods

running CocoaPods 1.10 with Xcode 12. I am getting the following warning for all targets "Target '' overrides the Architectures setting. This will remove the setting and allow Xcode to automatically select Architectures available based on hardware available for the active platform and deployment target"

awaiting input need sample

Most helpful comment

CocoaPods 1.10.1 Xcode 12.3 Xcodeproj 1.19.0 yet again "Pods project: Update to recommended settings"

All 8 comments

Did you update Xcodeproj? gem update xcodeproj.

Alternatively please include a sample app demonstrating the issue.

I'm not using xcodeproj gem. I'll create a sample app and report back.

CocoaPods uses the xcodeproj gem. If you are using CocoaPods then its using this gem and its version is not locked except the major part.

Xcodeproj manages the default build settings for the Pods.xcodeproj CocoaPods generates.

Looks like I have 1.19 installed already.

@dnkoutso when trying to create a sample project I found my issue. There was an old override in the pod file. Thanks for the help.

awesome!

CocoaPods 1.10.1 Xcode 12.3 Xcodeproj 1.19.0 yet again "Pods project: Update to recommended settings"

I'm running into the same issue (Xcode 12.4 - cocoapods 1.10.1 - xcodeproj 1.19.0).

As a temporary workaround, you can add the following to your Podfile:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings.delete 'ARCHS'
    end
  end
end

This will remove the _Architectures_ setting from all of the pods in your project, which allows them to simply inherit the project/workspace _Architectures_. This was inspired by this blog post.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tlandsmancars picture tlandsmancars  路  3Comments

k06a picture k06a  路  3Comments

Curtis-Halbrook picture Curtis-Halbrook  路  3Comments

luhui picture luhui  路  3Comments

steffendsommer picture steffendsommer  路  3Comments