iPhoneアプリ開発時にハマる色んなエラー

iPhoneアプリを開発して AppStore に上げるたびに、その過程で様々なエラーが出てハマるので解決策をメモしておきます。

Couldn't register xxxxx.debug with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: "SIGABRT".

実機でテストしようと思ったら、main.m でこんなエラーを吐いてコケる。原因不明ですが、電源 OFF-ON で実機を再起動したらエラーが出なくなりました。なんなんでしょうか。

Code Sign error: The default keychain doesn't have an identity matching the profile 'xxxxx profile' and identity 'iPhone Developer'

AppStore 申請時にアーカイブのバリデーションを行ったら、このエラーが発生。きちんと証明書もインストールしているし、配布用のプロビジョニングファイルもオーガナイザにインストールしています。

これは読んで字のごとく、ビルド設定のコード書名IDの設定が誤っていました。Debug は iPhone Developer を、Release は iPhone Distribution を指定しないとダメですね。アーカイブ作成時点ではビルドが成功するので、分かりにくいです。

com.apple.transporter.util.StreamUtil.readBytes(Ljava/io/InputStream;)[B

アーカイブしたファイルを、オーガナイザから AppStore に転送しようと思ったら、こんなエラーが出ました。意味が分かりません。どうも Xcode4 のバグが原因のようです。Xcode3 にダウングレードして、そのオーガナイザから転送したら上手くいきました。

ちなみに、Xcode3 と Xcode4 は共存可能です。私は、/Xcode3 というディレクトリを作ってそこにインストールしました。Xcode4 が枯れてきたらそちらに移るつもりなので、一時的にこのような構成にしました。

Objective-C コードのビルド時にエラーが起こるものは、プログラムのバグ、もしくはビルド設定の誤りが原因なので、解決のアプローチが簡単です。Google 先生に聞いても、多くのケースで答えが返ってきます。それ以外の、上記のようなエラーは、なかなか答えが見当たらないのが厄介です。

今後、他にもハマったら更新します。

このエントリーのトラックバックURL
http://www.deftrash.com/admin/mt4/mt-tb.cgi/538
Look At This at 2013年11月13日 22:22

Every time a gambler ties the experience, these are placed into a period in which is maintained twenty-eight days, using twenty six game titles competed and a couple times among times. While this can be a fascinating component intended for encountered people inside the genre, it’s less than great for brand new participants as it can certainly abandon very little to complete. This challenge introduced themselves these days. All of us became a member of about Day time only two with the time of year, whenever game titles do not start off right up until Morning 3. We all wasted with regards to a couple of hours trying to figure out how to participate in any fit before seeing this particular fact. The sole game titles that we may participate in were being pleasant meets between good friends that needs to be slated for particular dates along with occasions. Even this can be slow shed. Complements may simply end up being planned for each and every 1 fourth hours, which means gamers might have to wait around 15 minutes to do something.

СТО Киева at 2014年2月24日 18:56

This is very attention-grabbing, You're an excessively professional blogger. I have joined your rss feed and sit up for in search of more of your magnificent post. Also, I've shared your website in my social networks

ICas Network at 2015年7月27日 11:27

If McComb was on Sea World’s payroll during this time, just what was it he was being paid to do? For Sea World to suggest that they were unaware of McComb’s activities is simply not credible. The most serious issue here is that the Pasadena Police may have collaborated with Sea World and knowingly were aware that McComb was an agent provocateur.