Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c NSDictionary上的SIG_ABRT错误?_Objective C_Ios4_Nsdictionary_Sigabrt - Fatal编程技术网

Objective c NSDictionary上的SIG_ABRT错误?

Objective c NSDictionary上的SIG_ABRT错误?,objective-c,ios4,nsdictionary,sigabrt,Objective C,Ios4,Nsdictionary,Sigabrt,我在运行我的应用程序时遇到了SIG_ABRT错误,它突出显示了这一行 NSDictionary *songInfo = [[NSDictionary alloc] initWithObjects:propertyValues forKeys:propertyKeys]; propertyValues和propertyKeys通过几行进行初始化: NSArray *propertyKeys = [[NSArray alloc] initWithObjects:songKey, albumKey,

我在运行我的应用程序时遇到了SIG_ABRT错误,它突出显示了这一行

NSDictionary *songInfo = [[NSDictionary alloc] initWithObjects:propertyValues forKeys:propertyKeys];
propertyValues和propertyKeys通过几行进行初始化:

NSArray *propertyKeys = [[NSArray alloc] initWithObjects:songKey, albumKey, artistKey, artistIDKey,lastPlayedKey, genreKey, ratingKey, playCountKey, nil];
NSArray *propertyValues = [[NSArray alloc] initWithObjects:songTitle, albumName, artistName, artistID,lastPlayed, genre, userRating, playCount, nil];

是什么导致了这个错误?某些值/键是否未初始化?

您能否提供错误日志NSDictionary未正确初始化,因为由于此错误,阵列被拒绝访问其所需的信息:在这种情况下,没有需要修复的内容。