From 1221174b2560f5a7350f2f7668fa1c4f737b270e Mon Sep 17 00:00:00 2001 From: Magnus Date: Fri, 19 Jan 2018 16:09:34 +0800 Subject: [PATCH 1/5] Warnings fixed --- OpenUDID.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenUDID.m b/OpenUDID.m index 904066e..2ac4802 100644 --- a/OpenUDID.m +++ b/OpenUDID.m @@ -178,12 +178,12 @@ + (NSString*) _generateFreshOpenUDID { CFStringRef cfstring = CFUUIDCreateString(kCFAllocatorDefault, uuid); const char *cStr = CFStringGetCStringPtr(cfstring,CFStringGetFastestEncoding(cfstring)); unsigned char result[16]; - CC_MD5( cStr, strlen(cStr), result ); + CC_MD5( cStr, (CC_LONG)strlen(cStr), result ); CFRelease(uuid); CFRelease(cfstring); _openUDID = [NSString stringWithFormat: - @"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%08x", + @"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%08lx", result[0], result[1], result[2], result[3], result[4], result[5], result[6], result[7], result[8], result[9], result[10], result[11], From 517f98ee35fdd274b0ee91e71b846fd96c75f52e Mon Sep 17 00:00:00 2001 From: Magnus Date: Sat, 20 Jan 2018 08:22:02 +0800 Subject: [PATCH 2/5] podspec --- OpenUDID.podspec | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 OpenUDID.podspec diff --git a/OpenUDID.podspec b/OpenUDID.podspec new file mode 100644 index 0000000..e38f3ee --- /dev/null +++ b/OpenUDID.podspec @@ -0,0 +1,11 @@ +Pod::Spec.new do |s| + s.name = 'OpenUDID' + s.version = '1.0.1' + s.summary = 'OpenUDID.' + s.homepage = 'https://github.com/magnusguo/OpenUDID' + s.license = { :type => 'Apache', :file => 'LICENSE' } + s.source = { :git => 'https://github.com/magnusguo/OpenUDID.git', :tag => "#{s.version}" } + s.author = { 'Magnus' => 'https://github.com/magnusguo' } + s.ios.deployment_target = '6.0' + s.source_files = 'OpenUDID/*.{h,m}' +end From db452509454f452c13fad9b06798be63cc46d632 Mon Sep 17 00:00:00 2001 From: Magnus Date: Sat, 20 Jan 2018 08:30:16 +0800 Subject: [PATCH 3/5] trying to fix some bugs --- OpenUDID.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenUDID.podspec b/OpenUDID.podspec index e38f3ee..aa12543 100644 --- a/OpenUDID.podspec +++ b/OpenUDID.podspec @@ -8,4 +8,5 @@ Pod::Spec.new do |s| s.author = { 'Magnus' => 'https://github.com/magnusguo' } s.ios.deployment_target = '6.0' s.source_files = 'OpenUDID/*.{h,m}' + s.requires_arc = true end From d80c5dbe48a133ee4f810a18d26c40a7538158b7 Mon Sep 17 00:00:00 2001 From: Magnus Date: Sat, 20 Jan 2018 09:08:54 +0800 Subject: [PATCH 4/5] trying to fix some bugs --- OpenUDID.h => OpenUDID/OpenUDID.h | 0 OpenUDID.m => OpenUDID/OpenUDID.m | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename OpenUDID.h => OpenUDID/OpenUDID.h (100%) rename OpenUDID.m => OpenUDID/OpenUDID.m (100%) diff --git a/OpenUDID.h b/OpenUDID/OpenUDID.h similarity index 100% rename from OpenUDID.h rename to OpenUDID/OpenUDID.h diff --git a/OpenUDID.m b/OpenUDID/OpenUDID.m similarity index 100% rename from OpenUDID.m rename to OpenUDID/OpenUDID.m From e96ba6f3cd03a2d0edf50d4f8d3a1e3365948055 Mon Sep 17 00:00:00 2001 From: Magnus Date: Sat, 20 Jan 2018 09:14:55 +0800 Subject: [PATCH 5/5] trying to fix some bugs --- OpenUDID.podspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenUDID.podspec b/OpenUDID.podspec index aa12543..8b82efa 100644 --- a/OpenUDID.podspec +++ b/OpenUDID.podspec @@ -8,5 +8,6 @@ Pod::Spec.new do |s| s.author = { 'Magnus' => 'https://github.com/magnusguo' } s.ios.deployment_target = '6.0' s.source_files = 'OpenUDID/*.{h,m}' - s.requires_arc = true + s.requires_arc = false + s.compiler_flags = '-fno-objc-arc' end