hi
I have used these lines in our iphone application
NSString *uniqueID = [[UIDevice currentDevice] uniqueIdentifier];
CFTypeRef serialNumberAsCFString;
io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault,IOServiceMatching("IOPlatformExpertdevice"));
if(platformExpert)
{
serialNumberAsCFString = IORegistryEntryCreateCFProperty(platformExpert, CFSTR(kIOPlatformSerialNumberKey), kCFAllocatorDefault,0);
}
IOObjectRelease(platformExpert);
NSString *serial = [[NSString alloc] initWithFormat"%@",serialNumberAsCFString];
now when i am compiling this code in iphone simulator it is working fine...
but when i am compiiling in iphone device that it is giving an error that these lines are undeclared.
same problem is also coming when I am using NSCalenderDate.
it is working fine in simulator but in device it is undeclared
May I know why it is so??
please help me.
I have used these lines in our iphone application
NSString *uniqueID = [[UIDevice currentDevice] uniqueIdentifier];
CFTypeRef serialNumberAsCFString;
io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault,IOServiceMatching("IOPlatformExpertdevice"));
if(platformExpert)
{
serialNumberAsCFString = IORegistryEntryCreateCFProperty(platformExpert, CFSTR(kIOPlatformSerialNumberKey), kCFAllocatorDefault,0);
}
IOObjectRelease(platformExpert);
NSString *serial = [[NSString alloc] initWithFormat"%@",serialNumberAsCFString];
now when i am compiling this code in iphone simulator it is working fine...
but when i am compiiling in iphone device that it is giving an error that these lines are undeclared.
same problem is also coming when I am using NSCalenderDate.
it is working fine in simulator but in device it is undeclared
May I know why it is so??
please help me.