2013年2月19日火曜日

[iOS]This bundle is invalid.

This bundle is invalid. The key CFBundleVersion in the info.plist file must contain a higher version than that of the previously uploaded version.

iTunesConnectに審査提出中にOrganaizerで上記のエラーが発生した。

CFBundleVersionが前のバージョンより新しくしてください、
ってことなんだけど、1.1.0から1.1.1でもちろん新しくなってる。

原因は
plistからBundle versionが抜けていた。

Target>SummaryのVersionって修正してもplistに反映されないのね。

2013年2月18日月曜日

[iOS]NSPersistentStoreCoordinatorでエラー


Coredataを使用中に
persistentStoreCoordinator_ = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]];
でエラーを吐いた。
persistentStoreCoordinator_
を生成できないらしい。

現象は
http://stackoverflow.com/questions/4199466/core-data-crash-in-initwithmanagedobjectmodel
と同じで、appname.xcdatamodeldのファイルがおかしいらしい

appname.xcdatamodeldがxCode上から開けない状態だったので、
一度xCode上から削除して再度インポートするとエラーは消えた。

他にもxcdatamodeldが前のバージョンと違ってもこのエラーらしいね。

2013年2月8日金曜日

[iOS]iPadのサイズとか

iPhoneサイズ
320x480
640x960
640x1136

ステータスバーを省いたサイズ
320x460
640x620
640x1096

iPad、iPadMiniサイズ
Portrait 768 x 1024
Landscape 1024 x 768

ステータスバーを省いたサイズ
Portrait 768 x 1004
Landscape 1024 x 748


iPad(Retina)サイズ
Portrait 1536 x 2048
Landscape 2048 x 1536

ステータスバーを省いたサイズ
Portrait 1536 x 2008
Landscape 2048 x 1496