Crash :Critical failure: the LastResort font is unavailable in ios7

我只是一个虾纸丫 提交于 2019-12-11 11:29:16

问题


Iam inserting the contacts from the address book in to the sqlite3 database. for only some contacts my app is getting crashed at

sqlite3_finalize(statement)

this statement. and this is happening in ios7. The crash log is as follows

"Critical failure: the LastResort font is unavailable. in ios"


NSString *insertSQL = [NSString stringWithFormat:@"insert into vcards (some thing data)",(something data)];
const char *insert_stmt = [insertSQL UTF8String];
      sqlite3_prepare_v2(database, insert_stmt,-1, &statement, NULL);
      if (sqlite3_step(statement) == SQLITE_DONE)
      {
         NSLog(@"Record inserted");
      }
      else {
           NSLog(@"Record inserted failed");
        }
      sqlite3_finalize(statement);
    sqlite3_close(database);

please any one suggest me how to fix this crash.


回答1:


This has nothing to do with your contacts but to do with the fonts when transitioning from ios 6 to ios 7. Delete all the fonts in your project and then carefully add one by one to your .plist testing each time before adding the next until you find the one that is causing the problem.

Have a look at this post from someone who also had the same problem as you and the person's answer.

Person have the same problem as you



来源:https://stackoverflow.com/questions/21007399/crash-critical-failure-the-lastresort-font-is-unavailable-in-ios7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!