はじめに
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です。