はじめに
XCode
でc++
のライブラリを作成しようとしたところ、以下のようなエラーが出てきてしまいました。
'__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
一応解決できたので対処法をメモしておきます。
対処法

上の画像を参考にしながら、Custom Compiler Flags
のOther C++ Flags
に-fdeclspec
を追加すればOKです。