How can I resolve the message Warning: CocoaPods is installed but broken. Skipping Pod install. You appear to have cocoa pods installed but its not working.
?
The issue:
- It works fine if I create a new project and run it on IOS but from the previous projects it doesn't work on IOS.
- If I open the runner file from Xcode it launches but doesn't launch from android studio.
Therefore, when do pod install in the file it gives me this error:
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
require': dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) - /Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
require'
So can you explain how can I resolve this error?