- 追加された行はこの色です。
- 削除された行はこの色です。
*目次 [#g2ba815e]
#contents
*関連ページ [#t1d2275c]
-[[./Twitter]]
-[[./CoreData]]
-[[./Xcode]]
-[[Twitter]]
-[[CoreData]]
-[[CoreGraphics]]
-[[Xcode]]
*インストール [#ib2a9cf0]
dmgファイルをマウントしてインストールスクリプトを実行
*アンインストール [#h7a5599c]
ターミナルで以下のコマンドを実行
$ sudo /Developer/Library/uninstall-devtools --mode=all
*Tips [#zedb0fa5]
**アイコン [#obfaa160]
-[[Ad Hoc 配信の iTunesArtwork の設定方法 - 夜の Discovery:http://d.hatena.ne.jp/kusakari/20081122/1227290374]]
*トラブルシューティング [#v68bf56f]
**implicit declaration of function ‘usleep’ [#y81c2669]
該当ソースの先頭でunistd.hをimportする。
#import<unistd.h>
**'directoryContentsAtPath:' is deprecated [#z5764967]
enumeratorAtPathに変換する。変更前
#pre{{
NSArray *array = [[NSFileManager defaultManager] directoryContentsAtPath:path];
for (NSString *fname in array) {
}
}}
変更後
#pre{{
NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager] enumeratorAtPath:path];
NSString* fname;
while (fname = [dirEnum nextObject]) {
}
}}
**'fileAttributesAtPath:' is deprecated [#i4631689]
attributesOfItemAtPathに変換する。変更前
#pre{{
NSDictionary *fileDict = [[NSFileManager defaultManager] attributesOfItemAtPath:[path stringByAppendingPathComponent:fname] error:&error];
}}
変更後
#pre{{
NSError* error;
NSDictionary *fileDict = [[NSFileManager defaultManager] attributesOfItemAtPath:[path stringByAppendingPathComponent:fname] error:&error];
}}
**warning: 'The Validate Built Product build setting was not enabled when building for Distribution.' [#rcf27490]
プロジェクトの情報でビルドオプション→ビルドプロダクトを検証にチェック。アイコンなどの検証を行ってくれるオプション?
**warning: building with 'Targeted Device Family' set to iPhone only ('1') not supported with SDK 'Device - iPhone OS 3.2'. [#w3f7cea5]
[[Building against 3.x SDK in Xcode 3.2.3 for iPhone only app? - Stack Overflow:http://stackoverflow.com/questions/3248068/building-against-3-x-sdk-in-xcode-3-2-3-for-iphone-only-app]]によればiPhone用アプリは4.0SDKでビルドしないといけないらしい。3.2SDKが許されるのはiPad用アプリだけ。