Reputation: 81
I have recently updated my Xcode to version 12.2 and my macOS to version 11.0.1 Big Sur . My project will successfully when I select my actual device but when I select a Simulator it starts showing this error
No such module as 'X'
Of course rebuilding and deleting DrivedData and pod install ... not worked. where is the problem? it has no issue runnig on my actual device.
Upvotes: 3
Views: 1088
Reputation: 81
Just add this piece of code at the end of your PodFile and you are good to go
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
Upvotes: 3