LoginSignup
1
1

More than 5 years have passed since last update.

NS_DESIGNATED_INITIALIZER でコンパイルエラーになった時の対処方法

Last updated at Posted at 2015-07-23

Xcode5.1でAdMobSDK 7.3 をコンパイルしようとしてエラーが出たので、対処方法をメモ。

NS_DESIGNATED_INITIALIZERマクロが定義されていないので、

Objective-C
#ifndef NS_DESIGNATED_INITIALIZER
#if __has_attribute(objc_designated_initializer)
#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
#else
#define NS_DESIGNATED_INITIALIZER
#endif
#endif

を適切な場所に追加すればOK

※stackoverflow の投稿を参考にしました
NS_DESIGNATED_INITIALIZER expected : (colon)

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1