在 artisan tinker 裡用 Guzzle Client 抓資料時,macOS 會噴出 objc[86150]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called。這是 macOS 的 Objective-C runtime 在 fork 時的安全檢查機制造成的。
關閉 fork 安全檢查
設定環境變數讓 macOS 跳過這個檢查:
| |
加到 ~/.bashrc 或 ~/.zshrc 就不用每次手動設定了。
