【お知らせ】みんプロ式Flutter講座は2026年4月末をもって新規販売を終了いたしました。詳しくはこちら →
[Flutter/iOS]Appシリコン(M1)のMacでpod installしたら「Illegal instruction at・・」というエラーが出て失敗してしまう場合の対処法(動画無し)
このページには広告が含まれる場合があります。
Appシリコン(M1)のMacで、ターミナルから「pod install」すると、以下のような超長いエラーが出て失敗してしまう場合があります。
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36: [BUG] Illegal instruction at 0x0000000100a64000
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0042 p:---- s:0237 e:000236 CFUNC :getdtablesize
c:0041 p:0050 s:0233 e:000232 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36
c:0040 p:0075 s:0230 e:000229 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:27
c:0039 p:0007 s:0227 e:000226 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:3
から始まって、、、、
8 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/defaults.rb
9 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/deprecate.rb
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
559 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/settings.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
に至るまで、延々とわけわからんエラーメッセージが出て呆然とさせられます。
キーワードは
・[BUG] Illegal instruction at 0x0000000100a64000
とか
・You may have encountered a bug in the Ruby interpreter or extension libraries.
かと思われますが、これの対処法は、
1)以下の要領でターミナルをRossetaを使って開くように設定
Mac に Rosetta をインストールする必要がある場合
Rosetta 2 を使えば、Apple シリコンを搭載した Mac でも、Intel プロセッサ搭載 Mac 用に開発された App を使えるようになります。
2)ターミナルから「sudo gem install ffi」
3)Android StudioのTerminalから「ios」フォルダに移動してから再度「pod install」
cd ios pod install
すると解消するようです。





