From c86ff0e1825cee979c7532dd7137cf99b31440ab Mon Sep 17 00:00:00 2001 From: kishikawa katsumi Date: Sat, 4 Apr 2015 00:03:10 +0900 Subject: [PATCH] Fix sample project --- .../Example-iOS.xcodeproj/project.pbxproj | 37 +++---------------- .../Example-iOS/Example-iOS/AppDelegate.m | 4 ++ .../Example-iOS/Base.lproj/LaunchScreen.xib | 18 --------- .../Example-iOS/Base.lproj/Main.storyboard | 25 ------------- .../LaunchImage.launchimage/Contents.json | 37 +++++++++++++++++++ Examples/Example-iOS/Example-iOS/Info.plist | 4 -- 6 files changed, 47 insertions(+), 78 deletions(-) delete mode 100644 Examples/Example-iOS/Example-iOS/Base.lproj/LaunchScreen.xib delete mode 100644 Examples/Example-iOS/Example-iOS/Base.lproj/Main.storyboard create mode 100644 Examples/Example-iOS/Example-iOS/Images.xcassets/LaunchImage.launchimage/Contents.json diff --git a/Examples/Example-iOS/Example-iOS.xcodeproj/project.pbxproj b/Examples/Example-iOS/Example-iOS.xcodeproj/project.pbxproj index bc09085..68ff74c 100644 --- a/Examples/Example-iOS/Example-iOS.xcodeproj/project.pbxproj +++ b/Examples/Example-iOS/Example-iOS.xcodeproj/project.pbxproj @@ -10,11 +10,9 @@ 145BF3FA1A66C24500D01D0D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 145BF3F91A66C24500D01D0D /* main.m */; }; 145BF3FD1A66C24500D01D0D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 145BF3FC1A66C24500D01D0D /* AppDelegate.m */; }; 145BF4001A66C24500D01D0D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 145BF3FF1A66C24500D01D0D /* ViewController.m */; }; - 145BF4031A66C24500D01D0D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 145BF4011A66C24500D01D0D /* Main.storyboard */; }; 145BF4051A66C24500D01D0D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 145BF4041A66C24500D01D0D /* Images.xcassets */; }; - 145BF4081A66C24500D01D0D /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 145BF4061A66C24500D01D0D /* LaunchScreen.xib */; }; - 145BF4381A66C34C00D01D0D /* UICKeyChainStore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 145BF4291A66C32F00D01D0D /* UICKeyChainStore.framework */; }; 145BF43A1A66C46400D01D0D /* UICKeyChainStore.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 145BF4291A66C32F00D01D0D /* UICKeyChainStore.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 147FA7E71ACECFE3008EEC3B /* libUICKeyChainStore.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 145BF4311A66C32F00D01D0D /* libUICKeyChainStore.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -97,9 +95,7 @@ 145BF3FC1A66C24500D01D0D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 145BF3FE1A66C24500D01D0D /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 145BF3FF1A66C24500D01D0D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 145BF4021A66C24500D01D0D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 145BF4041A66C24500D01D0D /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 145BF4071A66C24500D01D0D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 145BF41D1A66C32F00D01D0D /* UICKeyChainStore.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UICKeyChainStore.xcodeproj; path = ../../Lib/UICKeyChainStore.xcodeproj; sourceTree = ""; }; /* End PBXFileReference section */ @@ -108,7 +104,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 145BF4381A66C34C00D01D0D /* UICKeyChainStore.framework in Frameworks */, + 147FA7E71ACECFE3008EEC3B /* libUICKeyChainStore.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -139,8 +135,6 @@ 145BF3FC1A66C24500D01D0D /* AppDelegate.m */, 145BF3FE1A66C24500D01D0D /* ViewController.h */, 145BF3FF1A66C24500D01D0D /* ViewController.m */, - 145BF4011A66C24500D01D0D /* Main.storyboard */, - 145BF4061A66C24500D01D0D /* LaunchScreen.xib */, 145BF4041A66C24500D01D0D /* Images.xcassets */, 145BF3F71A66C24500D01D0D /* Supporting Files */, ); @@ -294,8 +288,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 145BF4031A66C24500D01D0D /* Main.storyboard in Resources */, - 145BF4081A66C24500D01D0D /* LaunchScreen.xib in Resources */, 145BF4051A66C24500D01D0D /* Images.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -315,25 +307,6 @@ }; /* End PBXSourcesBuildPhase section */ -/* Begin PBXVariantGroup section */ - 145BF4011A66C24500D01D0D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 145BF4021A66C24500D01D0D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 145BF4061A66C24500D01D0D /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - 145BF4071A66C24500D01D0D /* Base */, - ); - name = LaunchScreen.xib; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - /* Begin XCBuildConfiguration section */ 145BF4151A66C24500D01D0D /* Debug */ = { isa = XCBuildConfiguration; @@ -369,7 +342,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -404,7 +377,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; @@ -415,6 +388,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = "Example-iOS/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -425,6 +399,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; INFOPLIST_FILE = "Example-iOS/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Examples/Example-iOS/Example-iOS/AppDelegate.m b/Examples/Example-iOS/Example-iOS/AppDelegate.m index 2afcf15..1663b2e 100644 --- a/Examples/Example-iOS/Example-iOS/AppDelegate.m +++ b/Examples/Example-iOS/Example-iOS/AppDelegate.m @@ -7,6 +7,7 @@ // #import "AppDelegate.h" +#import @interface AppDelegate () @@ -15,6 +16,9 @@ @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + UICKeyChainStore *keychainStore = [UICKeyChainStore keyChainStore]; + keychainStore[@"password"] = @"abcd1234"; + NSLog(@"%@", keychainStore[@"a"]); return YES; } diff --git a/Examples/Example-iOS/Example-iOS/Base.lproj/LaunchScreen.xib b/Examples/Example-iOS/Example-iOS/Base.lproj/LaunchScreen.xib deleted file mode 100644 index e8ff1fc..0000000 --- a/Examples/Example-iOS/Example-iOS/Base.lproj/LaunchScreen.xib +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/Examples/Example-iOS/Example-iOS/Base.lproj/Main.storyboard b/Examples/Example-iOS/Example-iOS/Base.lproj/Main.storyboard deleted file mode 100644 index d912f9d..0000000 --- a/Examples/Example-iOS/Example-iOS/Base.lproj/Main.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/Example-iOS/Example-iOS/Images.xcassets/LaunchImage.launchimage/Contents.json b/Examples/Example-iOS/Example-iOS/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..0b4b945 --- /dev/null +++ b/Examples/Example-iOS/Example-iOS/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,37 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "minimum-system-version" : "7.0", + "subtype" : "retina4", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "scale" : "1x", + "orientation" : "portrait" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "orientation" : "portrait" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Examples/Example-iOS/Example-iOS/Info.plist b/Examples/Example-iOS/Example-iOS/Info.plist index 6fe2fbf..d2e35dd 100644 --- a/Examples/Example-iOS/Example-iOS/Info.plist +++ b/Examples/Example-iOS/Example-iOS/Info.plist @@ -22,10 +22,6 @@ 1 LSRequiresIPhoneOS - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main UIRequiredDeviceCapabilities armv7