post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'endendend
I got above answer from below solution
Finally I discovered the issue.
In Pods project or in every pod build config you can see that Cocoapods is forcing the "debug" Build active architecture only property to YES.
'Build active architecture only = YES'
Changing it manually to NO in every pod, did the trick, but that is not a good way to solve it.
You must go to your podfile and add this in the bottom part:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
end
end
end
That will force NO to every pod in Build active architecture only and the project will start compiling in your M1 mac.