I have been trying to update Pods, however, I get this warning every time I run pod update
.
Here are the Excluded Architectures of the Project and Pods respectively.
What I've tried
- Added this snippet to the top of Podfile
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
Removed Podfile.lock and Pods directory and run
pod install
Almost followed this except for adding this snippet since I do not have
.podspec
file.
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
It would be great if you have advice and tips.
Thanks.
[Update] February 23, 2021 (PST)
I have not figured out this, can anyone help me to solve it, please?
Things I did additionally
- Added this snippet to the top Podfile.
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["ONLY_ACTIVE_ARCH"] = "YES"
end
end
end
- Tried to remove
VALID_ARCHS
from the Target, however, it's not removable. Also, replace them with blank. Nothing changes.
Curious
This is a screenshot of the build settings of Pods.
Build Active Architecture Only
for Release
is currently set No
. Even if I change this to Yes
, it's overwritten. Is this fine with leaving it as No
?