Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to debug app with dataset in production environment?

My CloudKit dataset in Production Environment is somewhat bigger than Development, and other exotic difference could exist.

There is a nasty deadlock using my app in Production Mode. Is it possible to debug client in any way? Or should I log as many thing as possible and send somehow out?

It is a threading issue, so without examining threads in Xcode it is really though to do anything. Any idea? I am using Core Data to local storage.

like image 455
János Avatar asked Mar 26 '15 09:03

János


1 Answers

  1. Rollback changes in the source code, to be able to run app.
  2. Sync down records from Production Environment to local Core Data Storage.
  3. Copy out in Xcode Device menu the sqlite database from container.
  4. Create an temporary project with same model, populate it with the database.
  5. Set up temporary project to able to use previous CloudKit container.
  6. Reset Development Environment in Dashboard.
  7. Upload all record from temporary project.
  8. Run original project with original source code.
like image 94
János Avatar answered Sep 27 '22 23:09

János