zbrateam / Zebra

🦓 A Useful Package Manager for iOS
https://getzbra.com
GNU General Public License v3.0
1.2k stars 193 forks source link

Wrong UDID sent to server when downloading a package #48

Closed hugovntr closed 5 years ago

hugovntr commented 5 years ago

Describe the bug When the headers are built, you use [[UIDevice currentDevice] identifierForVendor].UUIString as a way to get a unique identifier. This format is not the one that is used "commonly" which causes verifications to fail on repositories end.

Expected behavior I found this bit of code and tested it and it returns the "right" UDID.

# Declare
OBJC_EXTERN CFStringRef MGCopyAnswer(CFStringRef key) WEAK_IMPORT_ATTRIBUTE;

# Use this to get the UDID
CFStringRef UDID = MGCopyAnswer(CFSTR("UniqueDeviceID"));
wstyres commented 5 years ago

Good to know, I'll fix this for the next beta.

wstyres commented 5 years ago

Fixed as of ad9aa0e