Showing posts with label debug. Show all posts
Showing posts with label debug. Show all posts

Wednesday, March 9, 2016

Reading Crash Logs

This post will list the steps you need to take to read a crash log after receiving the crash log file.  This assumes you are using the same Xcode (6+) that you used to Archive the app.


  1. Connect your iOS device.
  2. Open Xcode
  3. In the menu, go to Window->Devices
  4. Select your iOS device and click on the View Device Logs button.
  5. Select the "All Logs" tab.
  6. If you crash log file does not have the .crash extension, rename it to have a .crash extension.
  7. Drag the file into the device's log window.  Specifically, the left column.
  8. Wait a minute or so until the list of logs shows the log you dragged in.
  9. When your log shows up, right-click on your log and select Re-Symbolicate Log.
  10. Once Re-Symbolicating is done you will have a readable crash log.
This information has been compiled from the Stack Overflow answer and comments:


Sunday, July 14, 2013

Unknown class in Interface Builder file

This error can show up when using Storyboard or Interface Builder.  The problem is that no actual code references so the linker optimizes the class out of existence.  One solution to select the .m of the class that is giving you trouble.  Then show the file inspector (View->Utilities->Show file inspector) and check your target under the Target Membership section.

More info here:
http://stackoverflow.com/questions/1725881/unknown-class-myclass-in-interface-builder-file-error-at-runtime

Wednesday, September 19, 2012

Location of Sqlite DB in Simulator

In Terminal, navigate to:
~/Library/Application Support/iPhone Simulator

Then it's your os version number and find the folder for the app.  Your App data along with the sqlite database is in the Documents folder.

Sunday, August 12, 2012

Storekit Woes: paymentQueueRestoreCompletedTransactionsFinished

I have a problem with restoring a purchase.  I created a test user that can purchase the item fine.  I delete the app, reinstall the app and then try the restore button, but it doesn't work the first time.  I get 0 transactions in paymentQueueRestoreCompletedTransactionsFinished.  I then exit the app, go back in try again and it restores ok. It's always the 2nd time.  Some other people have had some inconsistent troubles with Storekit also.  I'm not sure if my problem is related though.

http://stackoverflow.com/questions/11059830/storekit-restorecompletedtransactions-doesnt-return-any-transactions
http://stackoverflow.com/questions/10559161/paymentqueuerestorecompletedtransactionsfinished-is-returning-an-empty-queue-wh

Tuesday, May 8, 2012

Assertion failure in -[MainMenuScene addChild:z:tag:]

Normally an assertion failure with cocos2d addChild method is caused by adding a CCNode to the same layer more than once.

keywords: assertion failure cocos2d addchild
source: http://www.cocos2d-iphone.org/forum/topic/11657