From eb24554cc8e97a0793e021972579ac4ec44eb879 Mon Sep 17 00:00:00 2001 From: mingweizhang Date: Thu, 16 Jun 2016 17:19:06 +0800 Subject: [PATCH 1/5] fix podspec issue. --- AwesomeMenu.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AwesomeMenu.podspec b/AwesomeMenu.podspec index c1ec33f..d22cbcb 100644 --- a/AwesomeMenu.podspec +++ b/AwesomeMenu.podspec @@ -6,6 +6,6 @@ Pod::Spec.new do |spec| spec.homepage = 'https://github.com/levey/AwesomeMenu' spec.author = 'Levey Zhu' spec.source = { :git => 'git@github.com:levey/AwesomeMenu.git', :tag => '2.0.0'} - spec.source_files = '/AwesomeMenu/AwesomeMenu/*' + spec.source_files = 'AwesomeMenu/AwesomeMenu/*' spec.requires_arc = true end From 24e72aeeec2aeec2704fa1ed1ae02347cc590fa6 Mon Sep 17 00:00:00 2001 From: mingweizhang Date: Thu, 16 Jun 2016 17:33:09 +0800 Subject: [PATCH 2/5] fix demo crash issue. --- AwesomeMenu/AppDelegate.h | 3 +- AwesomeMenu/AppDelegate.m | 118 +-------------------------- AwesomeMenu/RootViewController.h | 13 +++ AwesomeMenu/RootViewController.m | 136 +++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+), 117 deletions(-) create mode 100644 AwesomeMenu/RootViewController.h create mode 100644 AwesomeMenu/RootViewController.m diff --git a/AwesomeMenu/AppDelegate.h b/AwesomeMenu/AppDelegate.h index 3b65818..908e222 100644 --- a/AwesomeMenu/AppDelegate.h +++ b/AwesomeMenu/AppDelegate.h @@ -7,8 +7,7 @@ // #import -#import "AwesomeMenu.h" -@interface AppDelegate : UIResponder +@interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; diff --git a/AwesomeMenu/AppDelegate.m b/AwesomeMenu/AppDelegate.m index 9331adb..d427752 100644 --- a/AwesomeMenu/AppDelegate.m +++ b/AwesomeMenu/AppDelegate.m @@ -7,6 +7,7 @@ // #import "AppDelegate.h" +#import "RootViewController.h" @implementation AppDelegate @@ -17,123 +18,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor = [UIColor whiteColor]; - - UIImage *storyMenuItemImage = [UIImage imageNamed:@"bg-menuitem.png"]; - UIImage *storyMenuItemImagePressed = [UIImage imageNamed:@"bg-menuitem-highlighted.png"]; - - UIImage *starImage = [UIImage imageNamed:@"icon-star.png"]; - - // Default Menu - - AwesomeMenuItem *starMenuItem1 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem2 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem3 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem4 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem5 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem6 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem7 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem8 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem9 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - - NSArray *menuItems = [NSArray arrayWithObjects:starMenuItem1, starMenuItem2, starMenuItem3, starMenuItem4, starMenuItem5, starMenuItem6, starMenuItem7,starMenuItem8,starMenuItem9, nil]; - - AwesomeMenuItem *startItem = [[AwesomeMenuItem alloc] initWithImage:[UIImage imageNamed:@"bg-addbutton.png"] - highlightedImage:[UIImage imageNamed:@"bg-addbutton-highlighted.png"] - ContentImage:[UIImage imageNamed:@"icon-plus.png"] - highlightedContentImage:[UIImage imageNamed:@"icon-plus-highlighted.png"]]; - - AwesomeMenu *menu = [[AwesomeMenu alloc] initWithFrame:self.window.bounds startItem:startItem menuItems:menuItems]; - menu.delegate = self; - - - - /* Path-like customization - - AwesomeMenuItem *starMenuItem1 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem2 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem3 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem4 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - AwesomeMenuItem *starMenuItem5 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage - highlightedImage:storyMenuItemImagePressed - ContentImage:starImage - highlightedContentImage:nil]; - - NSArray *menus = [NSArray arrayWithObjects:starMenuItem1, starMenuItem2, starMenuItem3, starMenuItem4, starMenuItem5, nil]; - - AwesomeMenuItem *startItem = [[AwesomeMenuItem alloc] initWithImage:[UIImage imageNamed:@"bg-addbutton.png"] - highlightedImage:[UIImage imageNamed:@"bg-addbutton-highlighted.png"] - ContentImage:[UIImage imageNamed:@"icon-plus.png"] - highlightedContentImage:[UIImage imageNamed:@"icon-plus-highlighted.png"]]; - - AwesomeMenu *menu = [[AwesomeMenu alloc] initWithFrame:self.window.bounds startItem:startItem optionMenus:menus]; - menu.delegate = self; - - menu.menuWholeAngle = M_PI_2; - menu.farRadius = 110.0f; - menu.endRadius = 100.0f; - menu.nearRadius = 90.0f; - menu.animationDuration = 0.3f; - menu.startPoint = CGPointMake(50.0, 410.0); - - */ - - [self.window addSubview:menu]; + RootViewController *rootVC = [RootViewController new]; + self.window.rootViewController = rootVC; [self.window makeKeyAndVisible]; return YES; } - -/* ⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇ */ -/* ⬇⬇⬇⬇⬇⬇ GET RESPONSE OF MENU ⬇⬇⬇⬇⬇⬇ */ -/* ⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇ */ - -- (void)awesomeMenu:(AwesomeMenu *)menu didSelectIndex:(NSInteger)idx -{ - NSLog(@"Select the index : %d",idx); -} -- (void)awesomeMenuDidFinishAnimationClose:(AwesomeMenu *)menu { - NSLog(@"Menu was closed!"); -} -- (void)awesomeMenuDidFinishAnimationOpen:(AwesomeMenu *)menu { - NSLog(@"Menu is open!"); -} @end diff --git a/AwesomeMenu/RootViewController.h b/AwesomeMenu/RootViewController.h new file mode 100644 index 0000000..32c5fd4 --- /dev/null +++ b/AwesomeMenu/RootViewController.h @@ -0,0 +1,13 @@ +// +// RootViewController.h +// AwesomeMenu +// +// Created by Parsifal on 16/6/16. +// +// + +#import + +@interface RootViewController : UIViewController + +@end diff --git a/AwesomeMenu/RootViewController.m b/AwesomeMenu/RootViewController.m new file mode 100644 index 0000000..43f2ee3 --- /dev/null +++ b/AwesomeMenu/RootViewController.m @@ -0,0 +1,136 @@ +// +// RootViewController.m +// AwesomeMenu +// +// Created by Parsifal on 16/6/16. +// +// + +#import "RootViewController.h" +#import "AwesomeMenu.h" + +@interface RootViewController () + +@end + +@implementation RootViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + self.view.backgroundColor = [UIColor whiteColor]; + UIImage *storyMenuItemImage = [UIImage imageNamed:@"bg-menuitem.png"]; + UIImage *storyMenuItemImagePressed = [UIImage imageNamed:@"bg-menuitem-highlighted.png"]; + + UIImage *starImage = [UIImage imageNamed:@"icon-star.png"]; + + // Default Menu + + AwesomeMenuItem *starMenuItem1 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem2 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem3 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem4 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem5 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem6 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem7 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem8 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem9 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + + NSArray *menuItems = [NSArray arrayWithObjects:starMenuItem1, starMenuItem2, starMenuItem3, starMenuItem4, starMenuItem5, starMenuItem6, starMenuItem7,starMenuItem8,starMenuItem9, nil]; + + AwesomeMenuItem *startItem = [[AwesomeMenuItem alloc] initWithImage:[UIImage imageNamed:@"bg-addbutton.png"] + highlightedImage:[UIImage imageNamed:@"bg-addbutton-highlighted.png"] + ContentImage:[UIImage imageNamed:@"icon-plus.png"] + highlightedContentImage:[UIImage imageNamed:@"icon-plus-highlighted.png"]]; + + AwesomeMenu *menu = [[AwesomeMenu alloc] initWithFrame:[UIScreen mainScreen].bounds startItem:startItem menuItems:menuItems]; + menu.delegate = self; + + /* Path-like customization + + AwesomeMenuItem *starMenuItem1 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem2 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem3 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem4 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + AwesomeMenuItem *starMenuItem5 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage + highlightedImage:storyMenuItemImagePressed + ContentImage:starImage + highlightedContentImage:nil]; + + NSArray *menus = [NSArray arrayWithObjects:starMenuItem1, starMenuItem2, starMenuItem3, starMenuItem4, starMenuItem5, nil]; + + AwesomeMenuItem *startItem = [[AwesomeMenuItem alloc] initWithImage:[UIImage imageNamed:@"bg-addbutton.png"] + highlightedImage:[UIImage imageNamed:@"bg-addbutton-highlighted.png"] + ContentImage:[UIImage imageNamed:@"icon-plus.png"] + highlightedContentImage:[UIImage imageNamed:@"icon-plus-highlighted.png"]]; + + AwesomeMenu *menu = [[AwesomeMenu alloc] initWithFrame:self.window.bounds startItem:startItem optionMenus:menus]; + menu.delegate = self; + + menu.menuWholeAngle = M_PI_2; + menu.farRadius = 110.0f; + menu.endRadius = 100.0f; + menu.nearRadius = 90.0f; + menu.animationDuration = 0.3f; + menu.startPoint = CGPointMake(50.0, 410.0); + + */ + [self.view addSubview:menu]; +} + + + +/* ⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇ */ +/* ⬇⬇⬇⬇⬇⬇ GET RESPONSE OF MENU ⬇⬇⬇⬇⬇⬇ */ +/* ⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇ */ + +- (void)awesomeMenu:(AwesomeMenu *)menu didSelectIndex:(NSInteger)idx +{ + NSLog(@"Select the index : %@",@(idx)); +} +- (void)awesomeMenuDidFinishAnimationClose:(AwesomeMenu *)menu { + NSLog(@"Menu was closed!"); +} +- (void)awesomeMenuDidFinishAnimationOpen:(AwesomeMenu *)menu { + NSLog(@"Menu is open!"); +} + +@end From 15264c2386aec9bed427557269cf1834421fd2fc Mon Sep 17 00:00:00 2001 From: mingweizhang Date: Thu, 16 Jun 2016 17:33:35 +0800 Subject: [PATCH 3/5] update Xcode Settings. --- AwesomeMenu.xcodeproj/project.pbxproj | 34 +++++++++++++++++++++++---- AwesomeMenu/AwesomeMenu-Info.plist | 2 +- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/AwesomeMenu.xcodeproj/project.pbxproj b/AwesomeMenu.xcodeproj/project.pbxproj index 9de0973..6e3f42a 100644 --- a/AwesomeMenu.xcodeproj/project.pbxproj +++ b/AwesomeMenu.xcodeproj/project.pbxproj @@ -30,6 +30,7 @@ 5C5949CA153ACC510023B034 /* AwesomeMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C5949C7153ACC510023B034 /* AwesomeMenu.m */; }; 5C5949CB153ACC510023B034 /* AwesomeMenuItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C5949C9153ACC510023B034 /* AwesomeMenuItem.m */; }; 5C93DC61148673F2003029CA /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C93DC60148673F2003029CA /* QuartzCore.framework */; }; + 902AD38E1D12A8D60021FBC5 /* RootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 902AD38D1D12A8D60021FBC5 /* RootViewController.m */; }; DCDD5EA716E5B2A1005D7B61 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DCDD5EA616E5B2A1005D7B61 /* Default-568h@2x.png */; }; /* End PBXBuildFile section */ @@ -63,6 +64,8 @@ 5C5949C8153ACC510023B034 /* AwesomeMenuItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AwesomeMenuItem.h; sourceTree = ""; }; 5C5949C9153ACC510023B034 /* AwesomeMenuItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AwesomeMenuItem.m; sourceTree = ""; }; 5C93DC60148673F2003029CA /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; + 902AD38C1D12A8D60021FBC5 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = ""; }; + 902AD38D1D12A8D60021FBC5 /* RootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RootViewController.m; sourceTree = ""; }; DCDD5EA616E5B2A1005D7B61 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -138,6 +141,8 @@ 5C5949C5153ACC510023B034 /* AwesomeMenu */, 5C3FF3721486564E0098EE93 /* AppDelegate.h */, 5C3FF3731486564E0098EE93 /* AppDelegate.m */, + 902AD38C1D12A8D60021FBC5 /* RootViewController.h */, + 902AD38D1D12A8D60021FBC5 /* RootViewController.m */, 5C3FF36A1486564E0098EE93 /* Supporting Files */, ); path = AwesomeMenu; @@ -191,7 +196,7 @@ 5C3FF3561486564E0098EE93 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0460; + LastUpgradeCheck = 0730; }; buildConfigurationList = 5C3FF3591486564E0098EE93 /* Build configuration list for PBXProject "AwesomeMenu" */; compatibilityVersion = "Xcode 3.2"; @@ -245,6 +250,7 @@ 5C3FF3741486564E0098EE93 /* AppDelegate.m in Sources */, 5C5949CA153ACC510023B034 /* AwesomeMenu.m in Sources */, 5C5949CB153ACC510023B034 /* AwesomeMenuItem.m in Sources */, + 902AD38E1D12A8D60021FBC5 /* RootViewController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -266,16 +272,21 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", @@ -283,11 +294,15 @@ ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 5.0; + ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; name = Debug; @@ -296,19 +311,26 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = YES; + ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 5.0; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; @@ -324,7 +346,8 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AwesomeMenu/AwesomeMenu-Prefix.pch"; INFOPLIST_FILE = "AwesomeMenu/AwesomeMenu-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.lunaapp.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; RUN_CLANG_STATIC_ANALYZER = YES; WARNING_CFLAGS = "-Wall"; @@ -339,7 +362,8 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AwesomeMenu/AwesomeMenu-Prefix.pch"; INFOPLIST_FILE = "AwesomeMenu/AwesomeMenu-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.lunaapp.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; RUN_CLANG_STATIC_ANALYZER = YES; WARNING_CFLAGS = "-Wall"; diff --git a/AwesomeMenu/AwesomeMenu-Info.plist b/AwesomeMenu/AwesomeMenu-Info.plist index d9e2d10..daff4d3 100644 --- a/AwesomeMenu/AwesomeMenu-Info.plist +++ b/AwesomeMenu/AwesomeMenu-Info.plist @@ -11,7 +11,7 @@ CFBundleIconFiles CFBundleIdentifier - com.lunaapp.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName From 8d76114185894421c7d962c70aef9186f6d9530f Mon Sep 17 00:00:00 2001 From: mingweizhang Date: Thu, 16 Jun 2016 17:47:34 +0800 Subject: [PATCH 4/5] update podspec file. --- AwesomeMenu.podspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AwesomeMenu.podspec b/AwesomeMenu.podspec index d22cbcb..6d839d8 100644 --- a/AwesomeMenu.podspec +++ b/AwesomeMenu.podspec @@ -5,7 +5,8 @@ Pod::Spec.new do |spec| spec.summary = 'Path 2.0 menu using CoreAnimation' spec.homepage = 'https://github.com/levey/AwesomeMenu' spec.author = 'Levey Zhu' - spec.source = { :git => 'git@github.com:levey/AwesomeMenu.git', :tag => '2.0.0'} + spec.source = { :git => 'git@github.com:levey/AwesomeMenu.git', :tag => s.version.to_s} spec.source_files = 'AwesomeMenu/AwesomeMenu/*' spec.requires_arc = true + spec.platform = :ios, '7.0' end From 3b2562d256a5bb5c602d3bdb873b4e8b9d105022 Mon Sep 17 00:00:00 2001 From: mingweizhang Date: Thu, 16 Jun 2016 18:07:52 +0800 Subject: [PATCH 5/5] reverse. --- AwesomeMenu.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AwesomeMenu.podspec b/AwesomeMenu.podspec index 6d839d8..26dc1d6 100644 --- a/AwesomeMenu.podspec +++ b/AwesomeMenu.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |spec| spec.summary = 'Path 2.0 menu using CoreAnimation' spec.homepage = 'https://github.com/levey/AwesomeMenu' spec.author = 'Levey Zhu' - spec.source = { :git => 'git@github.com:levey/AwesomeMenu.git', :tag => s.version.to_s} + spec.source = { :git => 'git@github.com:levey/AwesomeMenu.git', :tag => '2.0.0'} spec.source_files = 'AwesomeMenu/AwesomeMenu/*' spec.requires_arc = true spec.platform = :ios, '7.0'