Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) - (NSString*)deviceId { NSString *udidString; if (SYSTEM_VERSION_LESS_THAN(@"6.0")) { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; udidString = [defaults objectForKey:@"udidKey"]; if (!udidString) { CFUUIDRef identifierObject = CFUUIDCreate(kCFAllocatorDefault); // Convert the CFUUID to a string udidString = (NSString *)CFUUIDCreateString(kCFAllocatorDefault, identifierObject); [defaults setObject:udidString forKey:@"udidKey"]; [defaults synchronize]; CFRelease((CFTypeRef) identifierObject); } } else { udidString = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; } return udidString; } </code></pre> <p>if gets warning on the line: <code>udidString = [[[UIDevice currentDevice] identifierForVendor] UUIDString];</code> it means the Xcode SDK is <strong>less than 6.0</strong></p> <p>(<strong>Xcode 4.3</strong> contains iOS SDK 5.1, <strong>Xcode 4.5</strong> contains iOS SDK 6.0)</p> <p>to update Xcode iOS SDK: </p> <ol> <li>simply download the newest Xcode available on App Store (Apple doesn't give an option to download only the SDK).</li> <li><p>if want to keep current Xcode version just:</p> <ul> <li>download the newest Xcode version.</li> <li>copy iOS SDK Library from :</li> </ul></li> </ol> <p><strong>newestXcode.app</strong>/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/</p> <p>to</p> <p><strong>oldXcode.app</strong>/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/</p> <p>Reopen old Xcode and thats it!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload