ObjectiveC ワーニング
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[iPhoneプログラミング一覧]]
*目次 [#hb5c0ca3]
#contents
*Warningに"format not a string literal and no format argu...
NSErrorからlocalizedDescriptionを呼び出して、それをNSLog(...
ワーニングに次のような文章が出る。
LOG([NSError localizedDescription]);
format not a string literal and no format arguments
下記のようにするとwarning出ません。
LOG((@"%@",[NSError localizedDescription]);
同様に
printf(@"%",[message UTF8String]);
だとワーニングが出ますが、
printf(@"%",[message UTF8String]);
だとでませんが、今度は、
Passing arguments 1 of
というワーニングがでてきます。
*implicit declaration of function [#o94d2e53]
プロトタイプ宣言がない!というお叱りです。 関数呼び出しの...
*iPhone SDK3でビルドするとコンパイルエラーする [#wdca7e54]
http://tech.gowest.co.jp/?p=77
iPhone SDK 3でターゲットを「Simulator – 3.0|Debug」にして...
error: syntax error before ‘AT_NAME’ token
error: syntax error before ‘}’ token
fatal error: method definition not in @implementation co...
原因はコンパイラーのバージョンによってiPhone OS 3.0用実行...
回避方法は以下の通り。
-1 XCodeのメニュー「プロジェクト」-「プロジェクト設定を...
-2 一番上のタブの「ビルド」を選択する。
-3 「コンパイラのバージョン」項目を選択する。
-4 「C/C++コンパイラのバージョン」の値を「GCC 4.0」にす...
-5 「C/C++コンパイラのバージョン」が選択されている状態で...
-6 新しいエントリーが追加されるので一番左の項目をクリッ...
-7 もう一度5,6の作業をくりかえし、左の項目「Simulator – ...
*fatal error: method definition not in @implementation co...
「method definition not in @implementation」とか出るんだけ...
-→循環参照じゃね?
-→id使えば解決さ
-→お前ら、idで誤魔化さずにちゃんと型つけて返せよ。。。
終了行:
[[iPhoneプログラミング一覧]]
*目次 [#hb5c0ca3]
#contents
*Warningに"format not a string literal and no format argu...
NSErrorからlocalizedDescriptionを呼び出して、それをNSLog(...
ワーニングに次のような文章が出る。
LOG([NSError localizedDescription]);
format not a string literal and no format arguments
下記のようにするとwarning出ません。
LOG((@"%@",[NSError localizedDescription]);
同様に
printf(@"%",[message UTF8String]);
だとワーニングが出ますが、
printf(@"%",[message UTF8String]);
だとでませんが、今度は、
Passing arguments 1 of
というワーニングがでてきます。
*implicit declaration of function [#o94d2e53]
プロトタイプ宣言がない!というお叱りです。 関数呼び出しの...
*iPhone SDK3でビルドするとコンパイルエラーする [#wdca7e54]
http://tech.gowest.co.jp/?p=77
iPhone SDK 3でターゲットを「Simulator – 3.0|Debug」にして...
error: syntax error before ‘AT_NAME’ token
error: syntax error before ‘}’ token
fatal error: method definition not in @implementation co...
原因はコンパイラーのバージョンによってiPhone OS 3.0用実行...
回避方法は以下の通り。
-1 XCodeのメニュー「プロジェクト」-「プロジェクト設定を...
-2 一番上のタブの「ビルド」を選択する。
-3 「コンパイラのバージョン」項目を選択する。
-4 「C/C++コンパイラのバージョン」の値を「GCC 4.0」にす...
-5 「C/C++コンパイラのバージョン」が選択されている状態で...
-6 新しいエントリーが追加されるので一番左の項目をクリッ...
-7 もう一度5,6の作業をくりかえし、左の項目「Simulator – ...
*fatal error: method definition not in @implementation co...
「method definition not in @implementation」とか出るんだけ...
-→循環参照じゃね?
-→id使えば解決さ
-→お前ら、idで誤魔化さずにちゃんと型つけて返せよ。。。
ページ名: