Troubles with iconv with M1/M2 mac
Hi,
There is an issue with iconv after the latest osx upgrades on M1/M2 macs, the Iconv errors and the solution is to install iconv separately with command
gem install iconv -- --with-cflags="-Wno-incompatible-function-pointer-types"
Solution grapped from https://github.com/ruby/iconv/issues/25
No idea if anything besides refactoring the gem out can solve it properly here.
Thank you for the report, I mess around with this a bit on my m2.
Looks like this repeats with M3 also with Sonoma 14.3, just fyi.
This was fixed in https://github.com/ruby/iconv/pull/26
But iconv maintainers did not release a new version with the fix, so in the meantime you can point to iconv's master branch
# Gemfile
gem 'iconv', github: 'ruby/iconv', branch: 'master'