SQLite insert works in simulator but not on device

后端 未结 2 477
星月不相逢
星月不相逢 2021-01-25 18:19

Here is SQLite code which I call and pass one variable. Where is problem?

-(IBAction)insertPet:(NSString *) name{

NSString *query = [NSString stringWithFormat:         


        
2条回答
  •  时光取名叫无心
    2021-01-25 18:55

    What worked for me was deleting the app from your device,restart the device,clean the app in Xcode then load it again,also check that Target Membership is selected on the database.

提交回复
热议问题