I am getting build error at XRVideoCardRun run object since that data object to which it is pointing is null
I am little confused about the path u have used in your code "`/Desktop/1.run" , from where u got this folder and what actually this folder should contain.
In my case i took this 1.run folder from the trace file package and i founded that it was having 2 zipped files and i Unzipped those folder and even used those directory in the path.
I am damm sure that I am making some path error.
This is my main class
int main(int argc, const char *argv[])
{
@autoreleasepool
{
// Read the trace file into memory, it assumes the extracted trace file content to be on the Desktop
NSURL *traceFile = [NSURL fileURLWithPath:[@"/Users/admnistrator/Desktop/1.run" stringByExpandingTildeInPath]];
NSData *data = [NSData dataWithContentsOfURL:traceFile];
// Deserialize the data and dump its content
XRVideoCardRun *run = [NSUnarchiver unarchiveObjectWithData:data];
NSLog(@"%@", run);
}
return 0;
}
I have copied 1.run file from my trace file and copied it on Desktop , I have even tried Unzipping the 2 .zip file in the1.run directory , but still the data object is showing null after building , i tried different paths for .tracefile object creation still data object is showing null , I Tried different variations of path but still its not working.
I have copied this .run file from a standard .trace file opening in Instruments ,
i have entered the .tracefile path pointing to .trace template still the data object remains empty , Please help me,
Thanking you !
I am getting build error at XRVideoCardRun run object since that data object to which it is pointing is null
I am little confused about the path u have used in your code "`/Desktop/1.run" , from where u got this folder and what actually this folder should contain.
In my case i took this 1.run folder from the trace file package and i founded that it was having 2 zipped files and i Unzipped those folder and even used those directory in the path.
I am damm sure that I am making some path error.
This is my main class
int main(int argc, const char *argv[])
{
@autoreleasepool
{
// Read the trace file into memory, it assumes the extracted trace file content to be on the Desktop
NSURL *traceFile = [NSURL fileURLWithPath:[@"/Users/admnistrator/Desktop/1.run" stringByExpandingTildeInPath]];
}
I have copied 1.run file from my trace file and copied it on Desktop , I have even tried Unzipping the 2 .zip file in the1.run directory , but still the data object is showing null after building , i tried different paths for .tracefile object creation still data object is showing null , I Tried different variations of path but still its not working.
I have copied this .run file from a standard .trace file opening in Instruments ,
i have entered the .tracefile path pointing to .trace template still the data object remains empty , Please help me,
Thanking you !