├── README.md
├── GIKeychainDemo
├── GIKeychainDemo.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ └── shen.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ ├── xcuserdata
│ │ └── shen.xcuserdatad
│ │ │ └── xcschemes
│ │ │ ├── xcschememanagement.plist
│ │ │ └── GIKeychainDemo.xcscheme
│ └── project.pbxproj
├── GIKeychainDemo
│ ├── ViewController.h
│ ├── KeychainAccessGroups.plist
│ ├── AppDelegate.h
│ ├── main.m
│ ├── GIKeychain.h
│ ├── ViewController.m
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Info.plist
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ ├── AppDelegate.m
│ └── GIKeychain.m
├── GIKeychainDemoTests
│ ├── Info.plist
│ └── GIKeychainDemoTests.m
└── GIKeychainDemoUITests
│ ├── Info.plist
│ └── GIKeychainDemoUITests.m
└── GIKeychainDemo2
├── GIKeychainDemo2.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── shen.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
├── xcuserdata
│ └── shen.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── GIKeychainDemo2.xcscheme
└── project.pbxproj
├── GIKeychainDemo2
├── ViewController.h
├── KeychainAccessGroups.plist
├── AppDelegate.h
├── main.m
├── GIKeychain.h
├── ViewController.m
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
├── Info.plist
├── AppDelegate.m
└── GIKeychain.m
├── GIKeychainDemo2Tests
├── Info.plist
└── GIKeychainDemo2Tests.m
└── GIKeychainDemo2UITests
├── Info.plist
└── GIKeychainDemo2UITests.m
/README.md:
--------------------------------------------------------------------------------
1 | # GIKeychainGroupDemo
2 | [iOS Data] using keychain to store data and share datas between apps
3 |
4 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo.xcodeproj/project.xcworkspace/xcuserdata/shen.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rayshen/GIKeychainGroupDemo/HEAD/GIKeychainDemo/GIKeychainDemo.xcodeproj/project.xcworkspace/xcuserdata/shen.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2.xcodeproj/project.xcworkspace/xcuserdata/shen.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rayshen/GIKeychainGroupDemo/HEAD/GIKeychainDemo2/GIKeychainDemo2.xcodeproj/project.xcworkspace/xcuserdata/shen.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // GIKeychainDemo2
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/KeychainAccessGroups.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | keychain-access-groups
6 |
7 | XXXXX.GrassInfoAppFamily
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/KeychainAccessGroups.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | keychain-access-groups
6 |
7 | XXXXX.GrassInfoAppFamily
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // GIKeychainDemo2
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // GIKeychainDemo2
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/GIKeychain.h:
--------------------------------------------------------------------------------
1 | //
2 | // GIKeychain.h
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #define accessGroupItem @"XXXXX.GrassInfoAppFamily"
12 |
13 | @interface GIKeychain : NSObject
14 |
15 | + (id)getKeychainDataForKey:(NSString *)key;
16 | + (void)addKeychainData:(id)data forKey:(NSString *)key;
17 | + (void)deleteKeychainDataForKey:(NSString *)key;
18 | + (void)addShareKeyChainData:(id)data forKey:(NSString *)key;
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/GIKeychain.h:
--------------------------------------------------------------------------------
1 | //
2 | // GIKeychain.h
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #define accessGroupItem @"XXXXX.GrassInfoAppFamily"
12 |
13 | @interface GIKeychain : NSObject
14 |
15 | + (id)getKeychainDataForKey:(NSString *)key;
16 | + (void)addKeychainData:(id)data forKey:(NSString *)key;
17 | + (void)deleteKeychainDataForKey:(NSString *)key;
18 | + (void)addShareKeyChainData:(id)data forKey:(NSString *)key;
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemoTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemoUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2Tests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2UITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo.xcodeproj/xcuserdata/shen.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | GIKeychainDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 642B47371C2B83550090642F
16 |
17 | primary
18 |
19 |
20 | 642B47501C2B83550090642F
21 |
22 | primary
23 |
24 |
25 | 642B475B1C2B83550090642F
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2.xcodeproj/xcuserdata/shen.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | GIKeychainDemo2.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 642B477C1C2B87530090642F
16 |
17 | primary
18 |
19 |
20 | 642B47951C2B87530090642F
21 |
22 | primary
23 |
24 |
25 | 642B47A01C2B87530090642F
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemoTests/GIKeychainDemoTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // GIKeychainDemoTests.m
3 | // GIKeychainDemoTests
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface GIKeychainDemoTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation GIKeychainDemoTests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 | // Put setup code here. This method is called before the invocation of each test method in the class.
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | [super tearDown];
25 | }
26 |
27 | - (void)testExample {
28 | // This is an example of a functional test case.
29 | // Use XCTAssert and related functions to verify your tests produce the correct results.
30 | }
31 |
32 | - (void)testPerformanceExample {
33 | // This is an example of a performance test case.
34 | [self measureBlock:^{
35 | // Put the code you want to measure the time of here.
36 | }];
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2Tests/GIKeychainDemo2Tests.m:
--------------------------------------------------------------------------------
1 | //
2 | // GIKeychainDemo2Tests.m
3 | // GIKeychainDemo2Tests
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface GIKeychainDemo2Tests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation GIKeychainDemo2Tests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 | // Put setup code here. This method is called before the invocation of each test method in the class.
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | [super tearDown];
25 | }
26 |
27 | - (void)testExample {
28 | // This is an example of a functional test case.
29 | // Use XCTAssert and related functions to verify your tests produce the correct results.
30 | }
31 |
32 | - (void)testPerformanceExample {
33 | // This is an example of a performance test case.
34 | [self measureBlock:^{
35 | // Put the code you want to measure the time of here.
36 | }];
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "GIKeychain.h"
11 | @interface ViewController ()
12 |
13 | @end
14 |
15 | @implementation ViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | NSString *accountKey=@"accountKey";
20 | NSString *accountName=@"Alibaba";
21 | NSString *accountName2=@"Netease";
22 | if ([GIKeychain getKeychainDataForKey:accountKey]) {
23 | NSLog(@"该key内容已经存在,为:%@",[GIKeychain getKeychainDataForKey:accountKey]);
24 | [GIKeychain addKeychainData:accountName2 forKey:accountKey];
25 | NSLog(@"该key内容被修改,为:%@",[GIKeychain getKeychainDataForKey:accountKey]);
26 |
27 | }else{
28 | NSLog(@"该key不存在,准备写入");
29 | [GIKeychain addKeychainData:accountName forKey:accountKey];
30 | NSLog(@"已写入,该key内容:%@",[GIKeychain getKeychainDataForKey:accountKey]);
31 | }
32 | }
33 |
34 | - (void)didReceiveMemoryWarning {
35 | [super didReceiveMemoryWarning];
36 | // Dispose of any resources that can be recreated.
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // GIKeychainDemo2
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "GIKeychain.h"
11 |
12 | @interface ViewController ()
13 |
14 | @end
15 |
16 | @implementation ViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 | NSString *accountKey=@"accountKey";
21 | NSString *accountName3=@"Google";
22 | NSString *accountName4=@"Apple";
23 | if ([GIKeychain getKeychainDataForKey:accountKey]) {
24 | NSLog(@"该key内容已经存在,为:%@",[GIKeychain getKeychainDataForKey:accountKey]);
25 | [GIKeychain addKeychainData:accountName4 forKey:accountKey];
26 | NSLog(@"该key内容被修改,为:%@",[GIKeychain getKeychainDataForKey:accountKey]);
27 |
28 | }else{
29 | NSLog(@"该key不存在,准备写入");
30 | [GIKeychain addKeychainData:accountName3 forKey:accountKey];
31 | NSLog(@"已写入,该key内容:%@",[GIKeychain getKeychainDataForKey:accountKey]);
32 | }
33 | }
34 |
35 | - (void)didReceiveMemoryWarning {
36 | [super didReceiveMemoryWarning];
37 | // Dispose of any resources that can be recreated.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemoUITests/GIKeychainDemoUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // GIKeychainDemoUITests.m
3 | // GIKeychainDemoUITests
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface GIKeychainDemoUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation GIKeychainDemoUITests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 |
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 |
22 | // In UI tests it is usually best to stop immediately when a failure occurs.
23 | self.continueAfterFailure = NO;
24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
25 | [[[XCUIApplication alloc] init] launch];
26 |
27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
28 | }
29 |
30 | - (void)tearDown {
31 | // Put teardown code here. This method is called after the invocation of each test method in the class.
32 | [super tearDown];
33 | }
34 |
35 | - (void)testExample {
36 | // Use recording to get started writing UI tests.
37 | // Use XCTAssert and related functions to verify your tests produce the correct results.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2UITests/GIKeychainDemo2UITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // GIKeychainDemo2UITests.m
3 | // GIKeychainDemo2UITests
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface GIKeychainDemo2UITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation GIKeychainDemo2UITests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 |
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 |
22 | // In UI tests it is usually best to stop immediately when a failure occurs.
23 | self.continueAfterFailure = NO;
24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
25 | [[[XCUIApplication alloc] init] launch];
26 |
27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
28 | }
29 |
30 | - (void)tearDown {
31 | // Put teardown code here. This method is called after the invocation of each test method in the class.
32 | [super tearDown];
33 | }
34 |
35 | - (void)testExample {
36 | // Use recording to get started writing UI tests.
37 | // Use XCTAssert and related functions to verify your tests produce the correct results.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // GIKeychainDemo2
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo/GIKeychain.m:
--------------------------------------------------------------------------------
1 | //
2 | // GIKeychain.m
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import "GIKeychain.h"
10 |
11 | @implementation GIKeychain
12 |
13 | //创建一个基本的查询字典
14 | + (NSMutableDictionary *)getKeychainQuery:(NSString *)service {
15 | return [NSMutableDictionary dictionaryWithObjectsAndKeys:
16 | (__bridge id)kSecClassGenericPassword,(__bridge id)kSecClass,
17 | service, (__bridge id)kSecAttrService,
18 | service, (__bridge id)kSecAttrAccount,
19 | (__bridge id)kSecAttrAccessibleAfterFirstUnlock,(__bridge id)kSecAttrAccessible,
20 | nil];
21 | }
22 |
23 | + (id)getKeychainDataForKey:(NSString *)key{
24 | id ret = nil;
25 | NSMutableDictionary *keychainQuery = [self getKeychainQuery:key];
26 | //Configure the search setting
27 | //Since in our simple case we are expecting only a single attribute to be returned (the password) we can set the attribute kSecReturnData to kCFBooleanTrue
28 | [keychainQuery setObject:(id)kCFBooleanTrue forKey:(__bridge id)kSecReturnData];
29 | [keychainQuery setObject:(__bridge id)kSecMatchLimitOne forKey:(__bridge id)kSecMatchLimit];
30 | CFDataRef keyData = NULL;
31 | if (SecItemCopyMatching((__bridge CFDictionaryRef)keychainQuery, (CFTypeRef *)&keyData) == noErr) {
32 | @try {
33 | ret = [NSKeyedUnarchiver unarchiveObjectWithData:(__bridge NSData *)keyData];
34 | } @catch (NSException *e) {
35 | NSLog(@"Unarchive of %@ failed: %@",key,e);
36 | } @finally {
37 | }
38 | }
39 | if (keyData)
40 | CFRelease(keyData);
41 | return ret;
42 | }
43 |
44 | + (void)addKeychainData:(id)data forKey:(NSString *)key{
45 | //Get search dictionary
46 | NSMutableDictionary *keychainQuery = [self getKeychainQuery:key];
47 | //Delete old item before add new item
48 | SecItemDelete((__bridge CFDictionaryRef)keychainQuery);
49 | //Add new object to search dictionary(Attention:the data format)
50 | [keychainQuery setObject:[NSKeyedArchiver archivedDataWithRootObject:data] forKey:(__bridge id)kSecValueData];
51 | //Add item to keychain with the search dictionary
52 | SecItemAdd((__bridge CFDictionaryRef)keychainQuery, NULL);
53 | }
54 |
55 | +(void)addShareKeyChainData:(id)data forKey:(NSString *)key{
56 | //Get search dictionary
57 | NSMutableDictionary *keychainQuery = [self getKeychainQuery:key];
58 | [keychainQuery setObject:accessGroupItem forKey:(id)kSecAttrAccessGroup];
59 | //Delete old item before add new item
60 | SecItemDelete((__bridge CFDictionaryRef)keychainQuery);
61 | //Add new object to search dictionary(Attention:the data format)
62 | [keychainQuery setObject:[NSKeyedArchiver archivedDataWithRootObject:data] forKey:(__bridge id)kSecValueData];
63 | //Add item to keychain with the search dictionary
64 | SecItemAdd((__bridge CFDictionaryRef)keychainQuery, NULL);
65 |
66 | }
67 |
68 | + (void)deleteKeychainDataForKey:(NSString *)key{
69 | NSMutableDictionary *keychainQuery = [self getKeychainQuery:key];
70 | SecItemDelete((__bridge CFDictionaryRef)keychainQuery);
71 | }
72 |
73 | @end
74 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2/GIKeychain.m:
--------------------------------------------------------------------------------
1 | //
2 | // GIKeychain.m
3 | // GIKeychainDemo
4 | //
5 | // Created by shen on 15/12/24.
6 | // Copyright © 2015年 shen. All rights reserved.
7 | //
8 |
9 | #import "GIKeychain.h"
10 |
11 | @implementation GIKeychain
12 |
13 | //创建一个基本的查询字典
14 | + (NSMutableDictionary *)getKeychainQuery:(NSString *)service {
15 | return [NSMutableDictionary dictionaryWithObjectsAndKeys:
16 | (__bridge id)kSecClassGenericPassword,(__bridge id)kSecClass,
17 | service, (__bridge id)kSecAttrService,
18 | service, (__bridge id)kSecAttrAccount,
19 | (__bridge id)kSecAttrAccessibleAfterFirstUnlock,(__bridge id)kSecAttrAccessible,
20 | nil];
21 | }
22 |
23 | + (id)getKeychainDataForKey:(NSString *)key{
24 | id ret = nil;
25 | NSMutableDictionary *keychainQuery = [self getKeychainQuery:key];
26 | //Configure the search setting
27 | //Since in our simple case we are expecting only a single attribute to be returned (the password) we can set the attribute kSecReturnData to kCFBooleanTrue
28 | [keychainQuery setObject:(id)kCFBooleanTrue forKey:(__bridge id)kSecReturnData];
29 | [keychainQuery setObject:(__bridge id)kSecMatchLimitOne forKey:(__bridge id)kSecMatchLimit];
30 | CFDataRef keyData = NULL;
31 | if (SecItemCopyMatching((__bridge CFDictionaryRef)keychainQuery, (CFTypeRef *)&keyData) == noErr) {
32 | @try {
33 | ret = [NSKeyedUnarchiver unarchiveObjectWithData:(__bridge NSData *)keyData];
34 | } @catch (NSException *e) {
35 | NSLog(@"Unarchive of %@ failed: %@",key,e);
36 | } @finally {
37 | }
38 | }
39 | if (keyData)
40 | CFRelease(keyData);
41 | return ret;
42 | }
43 |
44 | + (void)addKeychainData:(id)data forKey:(NSString *)key{
45 | //Get search dictionary
46 | NSMutableDictionary *keychainQuery = [self getKeychainQuery:key];
47 | //Delete old item before add new item
48 | SecItemDelete((__bridge CFDictionaryRef)keychainQuery);
49 | //Add new object to search dictionary(Attention:the data format)
50 | [keychainQuery setObject:[NSKeyedArchiver archivedDataWithRootObject:data] forKey:(__bridge id)kSecValueData];
51 | //Add item to keychain with the search dictionary
52 | SecItemAdd((__bridge CFDictionaryRef)keychainQuery, NULL);
53 | }
54 |
55 | +(void)addShareKeyChainData:(id)data forKey:(NSString *)key{
56 | //Get search dictionary
57 | NSMutableDictionary *keychainQuery = [self getKeychainQuery:key];
58 | [keychainQuery setObject:accessGroupItem forKey:(id)kSecAttrAccessGroup];
59 | //Delete old item before add new item
60 | SecItemDelete((__bridge CFDictionaryRef)keychainQuery);
61 | //Add new object to search dictionary(Attention:the data format)
62 | [keychainQuery setObject:[NSKeyedArchiver archivedDataWithRootObject:data] forKey:(__bridge id)kSecValueData];
63 | //Add item to keychain with the search dictionary
64 | SecItemAdd((__bridge CFDictionaryRef)keychainQuery, NULL);
65 |
66 | }
67 |
68 | + (void)deleteKeychainDataForKey:(NSString *)key{
69 | NSMutableDictionary *keychainQuery = [self getKeychainQuery:key];
70 | SecItemDelete((__bridge CFDictionaryRef)keychainQuery);
71 | }
72 |
73 | @end
74 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo.xcodeproj/xcuserdata/shen.xcuserdatad/xcschemes/GIKeychainDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2.xcodeproj/xcuserdata/shen.xcuserdatad/xcschemes/GIKeychainDemo2.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/GIKeychainDemo/GIKeychainDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 642B473D1C2B83550090642F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B473C1C2B83550090642F /* main.m */; };
11 | 642B47401C2B83550090642F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B473F1C2B83550090642F /* AppDelegate.m */; };
12 | 642B47431C2B83550090642F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47421C2B83550090642F /* ViewController.m */; };
13 | 642B47461C2B83550090642F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 642B47441C2B83550090642F /* Main.storyboard */; };
14 | 642B47481C2B83550090642F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 642B47471C2B83550090642F /* Assets.xcassets */; };
15 | 642B474B1C2B83550090642F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 642B47491C2B83550090642F /* LaunchScreen.storyboard */; };
16 | 642B47561C2B83550090642F /* GIKeychainDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47551C2B83550090642F /* GIKeychainDemoTests.m */; };
17 | 642B47611C2B83550090642F /* GIKeychainDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47601C2B83550090642F /* GIKeychainDemoUITests.m */; };
18 | 642B47711C2B83850090642F /* GIKeychain.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47701C2B83850090642F /* GIKeychain.m */; };
19 | 642B47731C2B84320090642F /* KeychainAccessGroups.plist in Resources */ = {isa = PBXBuildFile; fileRef = 642B47721C2B84320090642F /* KeychainAccessGroups.plist */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXContainerItemProxy section */
23 | 642B47521C2B83550090642F /* PBXContainerItemProxy */ = {
24 | isa = PBXContainerItemProxy;
25 | containerPortal = 642B47301C2B83550090642F /* Project object */;
26 | proxyType = 1;
27 | remoteGlobalIDString = 642B47371C2B83550090642F;
28 | remoteInfo = GIKeychainDemo;
29 | };
30 | 642B475D1C2B83550090642F /* PBXContainerItemProxy */ = {
31 | isa = PBXContainerItemProxy;
32 | containerPortal = 642B47301C2B83550090642F /* Project object */;
33 | proxyType = 1;
34 | remoteGlobalIDString = 642B47371C2B83550090642F;
35 | remoteInfo = GIKeychainDemo;
36 | };
37 | /* End PBXContainerItemProxy section */
38 |
39 | /* Begin PBXFileReference section */
40 | 642B47381C2B83550090642F /* GIKeychainDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GIKeychainDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 642B473C1C2B83550090642F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
42 | 642B473E1C2B83550090642F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
43 | 642B473F1C2B83550090642F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
44 | 642B47411C2B83550090642F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
45 | 642B47421C2B83550090642F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
46 | 642B47451C2B83550090642F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
47 | 642B47471C2B83550090642F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
48 | 642B474A1C2B83550090642F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
49 | 642B474C1C2B83550090642F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
50 | 642B47511C2B83550090642F /* GIKeychainDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GIKeychainDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 642B47551C2B83550090642F /* GIKeychainDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GIKeychainDemoTests.m; sourceTree = ""; };
52 | 642B47571C2B83550090642F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
53 | 642B475C1C2B83550090642F /* GIKeychainDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GIKeychainDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
54 | 642B47601C2B83550090642F /* GIKeychainDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GIKeychainDemoUITests.m; sourceTree = ""; };
55 | 642B47621C2B83550090642F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
56 | 642B476F1C2B83850090642F /* GIKeychain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIKeychain.h; sourceTree = ""; };
57 | 642B47701C2B83850090642F /* GIKeychain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIKeychain.m; sourceTree = ""; };
58 | 642B47721C2B84320090642F /* KeychainAccessGroups.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = KeychainAccessGroups.plist; sourceTree = ""; };
59 | /* End PBXFileReference section */
60 |
61 | /* Begin PBXFrameworksBuildPhase section */
62 | 642B47351C2B83550090642F /* Frameworks */ = {
63 | isa = PBXFrameworksBuildPhase;
64 | buildActionMask = 2147483647;
65 | files = (
66 | );
67 | runOnlyForDeploymentPostprocessing = 0;
68 | };
69 | 642B474E1C2B83550090642F /* Frameworks */ = {
70 | isa = PBXFrameworksBuildPhase;
71 | buildActionMask = 2147483647;
72 | files = (
73 | );
74 | runOnlyForDeploymentPostprocessing = 0;
75 | };
76 | 642B47591C2B83550090642F /* Frameworks */ = {
77 | isa = PBXFrameworksBuildPhase;
78 | buildActionMask = 2147483647;
79 | files = (
80 | );
81 | runOnlyForDeploymentPostprocessing = 0;
82 | };
83 | /* End PBXFrameworksBuildPhase section */
84 |
85 | /* Begin PBXGroup section */
86 | 642B472F1C2B83550090642F = {
87 | isa = PBXGroup;
88 | children = (
89 | 642B473A1C2B83550090642F /* GIKeychainDemo */,
90 | 642B47541C2B83550090642F /* GIKeychainDemoTests */,
91 | 642B475F1C2B83550090642F /* GIKeychainDemoUITests */,
92 | 642B47391C2B83550090642F /* Products */,
93 | );
94 | sourceTree = "";
95 | };
96 | 642B47391C2B83550090642F /* Products */ = {
97 | isa = PBXGroup;
98 | children = (
99 | 642B47381C2B83550090642F /* GIKeychainDemo.app */,
100 | 642B47511C2B83550090642F /* GIKeychainDemoTests.xctest */,
101 | 642B475C1C2B83550090642F /* GIKeychainDemoUITests.xctest */,
102 | );
103 | name = Products;
104 | sourceTree = "";
105 | };
106 | 642B473A1C2B83550090642F /* GIKeychainDemo */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 642B476E1C2B83730090642F /* GIKeychain */,
110 | 642B473E1C2B83550090642F /* AppDelegate.h */,
111 | 642B473F1C2B83550090642F /* AppDelegate.m */,
112 | 642B47411C2B83550090642F /* ViewController.h */,
113 | 642B47421C2B83550090642F /* ViewController.m */,
114 | 642B47441C2B83550090642F /* Main.storyboard */,
115 | 642B47471C2B83550090642F /* Assets.xcassets */,
116 | 642B47491C2B83550090642F /* LaunchScreen.storyboard */,
117 | 642B47721C2B84320090642F /* KeychainAccessGroups.plist */,
118 | 642B474C1C2B83550090642F /* Info.plist */,
119 | 642B473B1C2B83550090642F /* Supporting Files */,
120 | );
121 | path = GIKeychainDemo;
122 | sourceTree = "";
123 | };
124 | 642B473B1C2B83550090642F /* Supporting Files */ = {
125 | isa = PBXGroup;
126 | children = (
127 | 642B473C1C2B83550090642F /* main.m */,
128 | );
129 | name = "Supporting Files";
130 | sourceTree = "";
131 | };
132 | 642B47541C2B83550090642F /* GIKeychainDemoTests */ = {
133 | isa = PBXGroup;
134 | children = (
135 | 642B47551C2B83550090642F /* GIKeychainDemoTests.m */,
136 | 642B47571C2B83550090642F /* Info.plist */,
137 | );
138 | path = GIKeychainDemoTests;
139 | sourceTree = "";
140 | };
141 | 642B475F1C2B83550090642F /* GIKeychainDemoUITests */ = {
142 | isa = PBXGroup;
143 | children = (
144 | 642B47601C2B83550090642F /* GIKeychainDemoUITests.m */,
145 | 642B47621C2B83550090642F /* Info.plist */,
146 | );
147 | path = GIKeychainDemoUITests;
148 | sourceTree = "";
149 | };
150 | 642B476E1C2B83730090642F /* GIKeychain */ = {
151 | isa = PBXGroup;
152 | children = (
153 | 642B476F1C2B83850090642F /* GIKeychain.h */,
154 | 642B47701C2B83850090642F /* GIKeychain.m */,
155 | );
156 | name = GIKeychain;
157 | sourceTree = "";
158 | };
159 | /* End PBXGroup section */
160 |
161 | /* Begin PBXNativeTarget section */
162 | 642B47371C2B83550090642F /* GIKeychainDemo */ = {
163 | isa = PBXNativeTarget;
164 | buildConfigurationList = 642B47651C2B83550090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemo" */;
165 | buildPhases = (
166 | 642B47341C2B83550090642F /* Sources */,
167 | 642B47351C2B83550090642F /* Frameworks */,
168 | 642B47361C2B83550090642F /* Resources */,
169 | );
170 | buildRules = (
171 | );
172 | dependencies = (
173 | );
174 | name = GIKeychainDemo;
175 | productName = GIKeychainDemo;
176 | productReference = 642B47381C2B83550090642F /* GIKeychainDemo.app */;
177 | productType = "com.apple.product-type.application";
178 | };
179 | 642B47501C2B83550090642F /* GIKeychainDemoTests */ = {
180 | isa = PBXNativeTarget;
181 | buildConfigurationList = 642B47681C2B83550090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemoTests" */;
182 | buildPhases = (
183 | 642B474D1C2B83550090642F /* Sources */,
184 | 642B474E1C2B83550090642F /* Frameworks */,
185 | 642B474F1C2B83550090642F /* Resources */,
186 | );
187 | buildRules = (
188 | );
189 | dependencies = (
190 | 642B47531C2B83550090642F /* PBXTargetDependency */,
191 | );
192 | name = GIKeychainDemoTests;
193 | productName = GIKeychainDemoTests;
194 | productReference = 642B47511C2B83550090642F /* GIKeychainDemoTests.xctest */;
195 | productType = "com.apple.product-type.bundle.unit-test";
196 | };
197 | 642B475B1C2B83550090642F /* GIKeychainDemoUITests */ = {
198 | isa = PBXNativeTarget;
199 | buildConfigurationList = 642B476B1C2B83550090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemoUITests" */;
200 | buildPhases = (
201 | 642B47581C2B83550090642F /* Sources */,
202 | 642B47591C2B83550090642F /* Frameworks */,
203 | 642B475A1C2B83550090642F /* Resources */,
204 | );
205 | buildRules = (
206 | );
207 | dependencies = (
208 | 642B475E1C2B83550090642F /* PBXTargetDependency */,
209 | );
210 | name = GIKeychainDemoUITests;
211 | productName = GIKeychainDemoUITests;
212 | productReference = 642B475C1C2B83550090642F /* GIKeychainDemoUITests.xctest */;
213 | productType = "com.apple.product-type.bundle.ui-testing";
214 | };
215 | /* End PBXNativeTarget section */
216 |
217 | /* Begin PBXProject section */
218 | 642B47301C2B83550090642F /* Project object */ = {
219 | isa = PBXProject;
220 | attributes = {
221 | LastUpgradeCheck = 0720;
222 | ORGANIZATIONNAME = shen;
223 | TargetAttributes = {
224 | 642B47371C2B83550090642F = {
225 | CreatedOnToolsVersion = 7.2;
226 | };
227 | 642B47501C2B83550090642F = {
228 | CreatedOnToolsVersion = 7.2;
229 | TestTargetID = 642B47371C2B83550090642F;
230 | };
231 | 642B475B1C2B83550090642F = {
232 | CreatedOnToolsVersion = 7.2;
233 | TestTargetID = 642B47371C2B83550090642F;
234 | };
235 | };
236 | };
237 | buildConfigurationList = 642B47331C2B83550090642F /* Build configuration list for PBXProject "GIKeychainDemo" */;
238 | compatibilityVersion = "Xcode 3.2";
239 | developmentRegion = English;
240 | hasScannedForEncodings = 0;
241 | knownRegions = (
242 | en,
243 | Base,
244 | );
245 | mainGroup = 642B472F1C2B83550090642F;
246 | productRefGroup = 642B47391C2B83550090642F /* Products */;
247 | projectDirPath = "";
248 | projectRoot = "";
249 | targets = (
250 | 642B47371C2B83550090642F /* GIKeychainDemo */,
251 | 642B47501C2B83550090642F /* GIKeychainDemoTests */,
252 | 642B475B1C2B83550090642F /* GIKeychainDemoUITests */,
253 | );
254 | };
255 | /* End PBXProject section */
256 |
257 | /* Begin PBXResourcesBuildPhase section */
258 | 642B47361C2B83550090642F /* Resources */ = {
259 | isa = PBXResourcesBuildPhase;
260 | buildActionMask = 2147483647;
261 | files = (
262 | 642B474B1C2B83550090642F /* LaunchScreen.storyboard in Resources */,
263 | 642B47481C2B83550090642F /* Assets.xcassets in Resources */,
264 | 642B47731C2B84320090642F /* KeychainAccessGroups.plist in Resources */,
265 | 642B47461C2B83550090642F /* Main.storyboard in Resources */,
266 | );
267 | runOnlyForDeploymentPostprocessing = 0;
268 | };
269 | 642B474F1C2B83550090642F /* Resources */ = {
270 | isa = PBXResourcesBuildPhase;
271 | buildActionMask = 2147483647;
272 | files = (
273 | );
274 | runOnlyForDeploymentPostprocessing = 0;
275 | };
276 | 642B475A1C2B83550090642F /* Resources */ = {
277 | isa = PBXResourcesBuildPhase;
278 | buildActionMask = 2147483647;
279 | files = (
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | };
283 | /* End PBXResourcesBuildPhase section */
284 |
285 | /* Begin PBXSourcesBuildPhase section */
286 | 642B47341C2B83550090642F /* Sources */ = {
287 | isa = PBXSourcesBuildPhase;
288 | buildActionMask = 2147483647;
289 | files = (
290 | 642B47431C2B83550090642F /* ViewController.m in Sources */,
291 | 642B47401C2B83550090642F /* AppDelegate.m in Sources */,
292 | 642B473D1C2B83550090642F /* main.m in Sources */,
293 | 642B47711C2B83850090642F /* GIKeychain.m in Sources */,
294 | );
295 | runOnlyForDeploymentPostprocessing = 0;
296 | };
297 | 642B474D1C2B83550090642F /* Sources */ = {
298 | isa = PBXSourcesBuildPhase;
299 | buildActionMask = 2147483647;
300 | files = (
301 | 642B47561C2B83550090642F /* GIKeychainDemoTests.m in Sources */,
302 | );
303 | runOnlyForDeploymentPostprocessing = 0;
304 | };
305 | 642B47581C2B83550090642F /* Sources */ = {
306 | isa = PBXSourcesBuildPhase;
307 | buildActionMask = 2147483647;
308 | files = (
309 | 642B47611C2B83550090642F /* GIKeychainDemoUITests.m in Sources */,
310 | );
311 | runOnlyForDeploymentPostprocessing = 0;
312 | };
313 | /* End PBXSourcesBuildPhase section */
314 |
315 | /* Begin PBXTargetDependency section */
316 | 642B47531C2B83550090642F /* PBXTargetDependency */ = {
317 | isa = PBXTargetDependency;
318 | target = 642B47371C2B83550090642F /* GIKeychainDemo */;
319 | targetProxy = 642B47521C2B83550090642F /* PBXContainerItemProxy */;
320 | };
321 | 642B475E1C2B83550090642F /* PBXTargetDependency */ = {
322 | isa = PBXTargetDependency;
323 | target = 642B47371C2B83550090642F /* GIKeychainDemo */;
324 | targetProxy = 642B475D1C2B83550090642F /* PBXContainerItemProxy */;
325 | };
326 | /* End PBXTargetDependency section */
327 |
328 | /* Begin PBXVariantGroup section */
329 | 642B47441C2B83550090642F /* Main.storyboard */ = {
330 | isa = PBXVariantGroup;
331 | children = (
332 | 642B47451C2B83550090642F /* Base */,
333 | );
334 | name = Main.storyboard;
335 | sourceTree = "";
336 | };
337 | 642B47491C2B83550090642F /* LaunchScreen.storyboard */ = {
338 | isa = PBXVariantGroup;
339 | children = (
340 | 642B474A1C2B83550090642F /* Base */,
341 | );
342 | name = LaunchScreen.storyboard;
343 | sourceTree = "";
344 | };
345 | /* End PBXVariantGroup section */
346 |
347 | /* Begin XCBuildConfiguration section */
348 | 642B47631C2B83550090642F /* Debug */ = {
349 | isa = XCBuildConfiguration;
350 | buildSettings = {
351 | ALWAYS_SEARCH_USER_PATHS = NO;
352 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
353 | CLANG_CXX_LIBRARY = "libc++";
354 | CLANG_ENABLE_MODULES = YES;
355 | CLANG_ENABLE_OBJC_ARC = YES;
356 | CLANG_WARN_BOOL_CONVERSION = YES;
357 | CLANG_WARN_CONSTANT_CONVERSION = YES;
358 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
359 | CLANG_WARN_EMPTY_BODY = YES;
360 | CLANG_WARN_ENUM_CONVERSION = YES;
361 | CLANG_WARN_INT_CONVERSION = YES;
362 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
363 | CLANG_WARN_UNREACHABLE_CODE = YES;
364 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
365 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
366 | COPY_PHASE_STRIP = NO;
367 | DEBUG_INFORMATION_FORMAT = dwarf;
368 | ENABLE_STRICT_OBJC_MSGSEND = YES;
369 | ENABLE_TESTABILITY = YES;
370 | GCC_C_LANGUAGE_STANDARD = gnu99;
371 | GCC_DYNAMIC_NO_PIC = NO;
372 | GCC_NO_COMMON_BLOCKS = YES;
373 | GCC_OPTIMIZATION_LEVEL = 0;
374 | GCC_PREPROCESSOR_DEFINITIONS = (
375 | "DEBUG=1",
376 | "$(inherited)",
377 | );
378 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
379 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
380 | GCC_WARN_UNDECLARED_SELECTOR = YES;
381 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
382 | GCC_WARN_UNUSED_FUNCTION = YES;
383 | GCC_WARN_UNUSED_VARIABLE = YES;
384 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
385 | MTL_ENABLE_DEBUG_INFO = YES;
386 | ONLY_ACTIVE_ARCH = YES;
387 | SDKROOT = iphoneos;
388 | TARGETED_DEVICE_FAMILY = "1,2";
389 | };
390 | name = Debug;
391 | };
392 | 642B47641C2B83550090642F /* Release */ = {
393 | isa = XCBuildConfiguration;
394 | buildSettings = {
395 | ALWAYS_SEARCH_USER_PATHS = NO;
396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
397 | CLANG_CXX_LIBRARY = "libc++";
398 | CLANG_ENABLE_MODULES = YES;
399 | CLANG_ENABLE_OBJC_ARC = YES;
400 | CLANG_WARN_BOOL_CONVERSION = YES;
401 | CLANG_WARN_CONSTANT_CONVERSION = YES;
402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
403 | CLANG_WARN_EMPTY_BODY = YES;
404 | CLANG_WARN_ENUM_CONVERSION = YES;
405 | CLANG_WARN_INT_CONVERSION = YES;
406 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
407 | CLANG_WARN_UNREACHABLE_CODE = YES;
408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
409 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
410 | COPY_PHASE_STRIP = NO;
411 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
412 | ENABLE_NS_ASSERTIONS = NO;
413 | ENABLE_STRICT_OBJC_MSGSEND = YES;
414 | GCC_C_LANGUAGE_STANDARD = gnu99;
415 | GCC_NO_COMMON_BLOCKS = YES;
416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
418 | GCC_WARN_UNDECLARED_SELECTOR = YES;
419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
420 | GCC_WARN_UNUSED_FUNCTION = YES;
421 | GCC_WARN_UNUSED_VARIABLE = YES;
422 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
423 | MTL_ENABLE_DEBUG_INFO = NO;
424 | SDKROOT = iphoneos;
425 | TARGETED_DEVICE_FAMILY = "1,2";
426 | VALIDATE_PRODUCT = YES;
427 | };
428 | name = Release;
429 | };
430 | 642B47661C2B83550090642F /* Debug */ = {
431 | isa = XCBuildConfiguration;
432 | buildSettings = {
433 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
434 | CODE_SIGN_ENTITLEMENTS = GIKeychainDemo/KeychainAccessGroups.plist;
435 | INFOPLIST_FILE = GIKeychainDemo/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemo;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | };
440 | name = Debug;
441 | };
442 | 642B47671C2B83550090642F /* Release */ = {
443 | isa = XCBuildConfiguration;
444 | buildSettings = {
445 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
446 | CODE_SIGN_ENTITLEMENTS = GIKeychainDemo/KeychainAccessGroups.plist;
447 | INFOPLIST_FILE = GIKeychainDemo/Info.plist;
448 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
449 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemo;
450 | PRODUCT_NAME = "$(TARGET_NAME)";
451 | };
452 | name = Release;
453 | };
454 | 642B47691C2B83550090642F /* Debug */ = {
455 | isa = XCBuildConfiguration;
456 | buildSettings = {
457 | BUNDLE_LOADER = "$(TEST_HOST)";
458 | INFOPLIST_FILE = GIKeychainDemoTests/Info.plist;
459 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
460 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemoTests;
461 | PRODUCT_NAME = "$(TARGET_NAME)";
462 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GIKeychainDemo.app/GIKeychainDemo";
463 | };
464 | name = Debug;
465 | };
466 | 642B476A1C2B83550090642F /* Release */ = {
467 | isa = XCBuildConfiguration;
468 | buildSettings = {
469 | BUNDLE_LOADER = "$(TEST_HOST)";
470 | INFOPLIST_FILE = GIKeychainDemoTests/Info.plist;
471 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
472 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemoTests;
473 | PRODUCT_NAME = "$(TARGET_NAME)";
474 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GIKeychainDemo.app/GIKeychainDemo";
475 | };
476 | name = Release;
477 | };
478 | 642B476C1C2B83550090642F /* Debug */ = {
479 | isa = XCBuildConfiguration;
480 | buildSettings = {
481 | INFOPLIST_FILE = GIKeychainDemoUITests/Info.plist;
482 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
483 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemoUITests;
484 | PRODUCT_NAME = "$(TARGET_NAME)";
485 | TEST_TARGET_NAME = GIKeychainDemo;
486 | USES_XCTRUNNER = YES;
487 | };
488 | name = Debug;
489 | };
490 | 642B476D1C2B83550090642F /* Release */ = {
491 | isa = XCBuildConfiguration;
492 | buildSettings = {
493 | INFOPLIST_FILE = GIKeychainDemoUITests/Info.plist;
494 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
495 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemoUITests;
496 | PRODUCT_NAME = "$(TARGET_NAME)";
497 | TEST_TARGET_NAME = GIKeychainDemo;
498 | USES_XCTRUNNER = YES;
499 | };
500 | name = Release;
501 | };
502 | /* End XCBuildConfiguration section */
503 |
504 | /* Begin XCConfigurationList section */
505 | 642B47331C2B83550090642F /* Build configuration list for PBXProject "GIKeychainDemo" */ = {
506 | isa = XCConfigurationList;
507 | buildConfigurations = (
508 | 642B47631C2B83550090642F /* Debug */,
509 | 642B47641C2B83550090642F /* Release */,
510 | );
511 | defaultConfigurationIsVisible = 0;
512 | defaultConfigurationName = Release;
513 | };
514 | 642B47651C2B83550090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemo" */ = {
515 | isa = XCConfigurationList;
516 | buildConfigurations = (
517 | 642B47661C2B83550090642F /* Debug */,
518 | 642B47671C2B83550090642F /* Release */,
519 | );
520 | defaultConfigurationIsVisible = 0;
521 | };
522 | 642B47681C2B83550090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemoTests" */ = {
523 | isa = XCConfigurationList;
524 | buildConfigurations = (
525 | 642B47691C2B83550090642F /* Debug */,
526 | 642B476A1C2B83550090642F /* Release */,
527 | );
528 | defaultConfigurationIsVisible = 0;
529 | };
530 | 642B476B1C2B83550090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemoUITests" */ = {
531 | isa = XCConfigurationList;
532 | buildConfigurations = (
533 | 642B476C1C2B83550090642F /* Debug */,
534 | 642B476D1C2B83550090642F /* Release */,
535 | );
536 | defaultConfigurationIsVisible = 0;
537 | };
538 | /* End XCConfigurationList section */
539 | };
540 | rootObject = 642B47301C2B83550090642F /* Project object */;
541 | }
542 |
--------------------------------------------------------------------------------
/GIKeychainDemo2/GIKeychainDemo2.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 642B47821C2B87530090642F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47811C2B87530090642F /* main.m */; };
11 | 642B47851C2B87530090642F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47841C2B87530090642F /* AppDelegate.m */; };
12 | 642B47881C2B87530090642F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47871C2B87530090642F /* ViewController.m */; };
13 | 642B478B1C2B87530090642F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 642B47891C2B87530090642F /* Main.storyboard */; };
14 | 642B478D1C2B87530090642F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 642B478C1C2B87530090642F /* Assets.xcassets */; };
15 | 642B47901C2B87530090642F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 642B478E1C2B87530090642F /* LaunchScreen.storyboard */; };
16 | 642B479B1C2B87530090642F /* GIKeychainDemo2Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B479A1C2B87530090642F /* GIKeychainDemo2Tests.m */; };
17 | 642B47A61C2B87530090642F /* GIKeychainDemo2UITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47A51C2B87530090642F /* GIKeychainDemo2UITests.m */; };
18 | 642B47B61C2B8A830090642F /* GIKeychain.m in Sources */ = {isa = PBXBuildFile; fileRef = 642B47B51C2B8A830090642F /* GIKeychain.m */; };
19 | 642B47B81C2B8A9D0090642F /* KeychainAccessGroups.plist in Resources */ = {isa = PBXBuildFile; fileRef = 642B47B71C2B8A9D0090642F /* KeychainAccessGroups.plist */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXContainerItemProxy section */
23 | 642B47971C2B87530090642F /* PBXContainerItemProxy */ = {
24 | isa = PBXContainerItemProxy;
25 | containerPortal = 642B47751C2B87530090642F /* Project object */;
26 | proxyType = 1;
27 | remoteGlobalIDString = 642B477C1C2B87530090642F;
28 | remoteInfo = GIKeychainDemo2;
29 | };
30 | 642B47A21C2B87530090642F /* PBXContainerItemProxy */ = {
31 | isa = PBXContainerItemProxy;
32 | containerPortal = 642B47751C2B87530090642F /* Project object */;
33 | proxyType = 1;
34 | remoteGlobalIDString = 642B477C1C2B87530090642F;
35 | remoteInfo = GIKeychainDemo2;
36 | };
37 | /* End PBXContainerItemProxy section */
38 |
39 | /* Begin PBXFileReference section */
40 | 642B477D1C2B87530090642F /* GIKeychainDemo2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GIKeychainDemo2.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 642B47811C2B87530090642F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
42 | 642B47831C2B87530090642F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
43 | 642B47841C2B87530090642F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
44 | 642B47861C2B87530090642F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
45 | 642B47871C2B87530090642F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
46 | 642B478A1C2B87530090642F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
47 | 642B478C1C2B87530090642F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
48 | 642B478F1C2B87530090642F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
49 | 642B47911C2B87530090642F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
50 | 642B47961C2B87530090642F /* GIKeychainDemo2Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GIKeychainDemo2Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 642B479A1C2B87530090642F /* GIKeychainDemo2Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GIKeychainDemo2Tests.m; sourceTree = ""; };
52 | 642B479C1C2B87530090642F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
53 | 642B47A11C2B87530090642F /* GIKeychainDemo2UITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GIKeychainDemo2UITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
54 | 642B47A51C2B87530090642F /* GIKeychainDemo2UITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GIKeychainDemo2UITests.m; sourceTree = ""; };
55 | 642B47A71C2B87530090642F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
56 | 642B47B41C2B8A830090642F /* GIKeychain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIKeychain.h; sourceTree = ""; };
57 | 642B47B51C2B8A830090642F /* GIKeychain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIKeychain.m; sourceTree = ""; };
58 | 642B47B71C2B8A9D0090642F /* KeychainAccessGroups.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = KeychainAccessGroups.plist; sourceTree = ""; };
59 | /* End PBXFileReference section */
60 |
61 | /* Begin PBXFrameworksBuildPhase section */
62 | 642B477A1C2B87530090642F /* Frameworks */ = {
63 | isa = PBXFrameworksBuildPhase;
64 | buildActionMask = 2147483647;
65 | files = (
66 | );
67 | runOnlyForDeploymentPostprocessing = 0;
68 | };
69 | 642B47931C2B87530090642F /* Frameworks */ = {
70 | isa = PBXFrameworksBuildPhase;
71 | buildActionMask = 2147483647;
72 | files = (
73 | );
74 | runOnlyForDeploymentPostprocessing = 0;
75 | };
76 | 642B479E1C2B87530090642F /* Frameworks */ = {
77 | isa = PBXFrameworksBuildPhase;
78 | buildActionMask = 2147483647;
79 | files = (
80 | );
81 | runOnlyForDeploymentPostprocessing = 0;
82 | };
83 | /* End PBXFrameworksBuildPhase section */
84 |
85 | /* Begin PBXGroup section */
86 | 642B47741C2B87530090642F = {
87 | isa = PBXGroup;
88 | children = (
89 | 642B477F1C2B87530090642F /* GIKeychainDemo2 */,
90 | 642B47991C2B87530090642F /* GIKeychainDemo2Tests */,
91 | 642B47A41C2B87530090642F /* GIKeychainDemo2UITests */,
92 | 642B477E1C2B87530090642F /* Products */,
93 | );
94 | sourceTree = "";
95 | };
96 | 642B477E1C2B87530090642F /* Products */ = {
97 | isa = PBXGroup;
98 | children = (
99 | 642B477D1C2B87530090642F /* GIKeychainDemo2.app */,
100 | 642B47961C2B87530090642F /* GIKeychainDemo2Tests.xctest */,
101 | 642B47A11C2B87530090642F /* GIKeychainDemo2UITests.xctest */,
102 | );
103 | name = Products;
104 | sourceTree = "";
105 | };
106 | 642B477F1C2B87530090642F /* GIKeychainDemo2 */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 642B47B31C2B8A720090642F /* GIKeychain */,
110 | 642B47831C2B87530090642F /* AppDelegate.h */,
111 | 642B47841C2B87530090642F /* AppDelegate.m */,
112 | 642B47861C2B87530090642F /* ViewController.h */,
113 | 642B47871C2B87530090642F /* ViewController.m */,
114 | 642B47891C2B87530090642F /* Main.storyboard */,
115 | 642B478C1C2B87530090642F /* Assets.xcassets */,
116 | 642B478E1C2B87530090642F /* LaunchScreen.storyboard */,
117 | 642B47B71C2B8A9D0090642F /* KeychainAccessGroups.plist */,
118 | 642B47911C2B87530090642F /* Info.plist */,
119 | 642B47801C2B87530090642F /* Supporting Files */,
120 | );
121 | path = GIKeychainDemo2;
122 | sourceTree = "";
123 | };
124 | 642B47801C2B87530090642F /* Supporting Files */ = {
125 | isa = PBXGroup;
126 | children = (
127 | 642B47811C2B87530090642F /* main.m */,
128 | );
129 | name = "Supporting Files";
130 | sourceTree = "";
131 | };
132 | 642B47991C2B87530090642F /* GIKeychainDemo2Tests */ = {
133 | isa = PBXGroup;
134 | children = (
135 | 642B479A1C2B87530090642F /* GIKeychainDemo2Tests.m */,
136 | 642B479C1C2B87530090642F /* Info.plist */,
137 | );
138 | path = GIKeychainDemo2Tests;
139 | sourceTree = "";
140 | };
141 | 642B47A41C2B87530090642F /* GIKeychainDemo2UITests */ = {
142 | isa = PBXGroup;
143 | children = (
144 | 642B47A51C2B87530090642F /* GIKeychainDemo2UITests.m */,
145 | 642B47A71C2B87530090642F /* Info.plist */,
146 | );
147 | path = GIKeychainDemo2UITests;
148 | sourceTree = "";
149 | };
150 | 642B47B31C2B8A720090642F /* GIKeychain */ = {
151 | isa = PBXGroup;
152 | children = (
153 | 642B47B41C2B8A830090642F /* GIKeychain.h */,
154 | 642B47B51C2B8A830090642F /* GIKeychain.m */,
155 | );
156 | name = GIKeychain;
157 | sourceTree = "";
158 | };
159 | /* End PBXGroup section */
160 |
161 | /* Begin PBXNativeTarget section */
162 | 642B477C1C2B87530090642F /* GIKeychainDemo2 */ = {
163 | isa = PBXNativeTarget;
164 | buildConfigurationList = 642B47AA1C2B87530090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemo2" */;
165 | buildPhases = (
166 | 642B47791C2B87530090642F /* Sources */,
167 | 642B477A1C2B87530090642F /* Frameworks */,
168 | 642B477B1C2B87530090642F /* Resources */,
169 | );
170 | buildRules = (
171 | );
172 | dependencies = (
173 | );
174 | name = GIKeychainDemo2;
175 | productName = GIKeychainDemo2;
176 | productReference = 642B477D1C2B87530090642F /* GIKeychainDemo2.app */;
177 | productType = "com.apple.product-type.application";
178 | };
179 | 642B47951C2B87530090642F /* GIKeychainDemo2Tests */ = {
180 | isa = PBXNativeTarget;
181 | buildConfigurationList = 642B47AD1C2B87530090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemo2Tests" */;
182 | buildPhases = (
183 | 642B47921C2B87530090642F /* Sources */,
184 | 642B47931C2B87530090642F /* Frameworks */,
185 | 642B47941C2B87530090642F /* Resources */,
186 | );
187 | buildRules = (
188 | );
189 | dependencies = (
190 | 642B47981C2B87530090642F /* PBXTargetDependency */,
191 | );
192 | name = GIKeychainDemo2Tests;
193 | productName = GIKeychainDemo2Tests;
194 | productReference = 642B47961C2B87530090642F /* GIKeychainDemo2Tests.xctest */;
195 | productType = "com.apple.product-type.bundle.unit-test";
196 | };
197 | 642B47A01C2B87530090642F /* GIKeychainDemo2UITests */ = {
198 | isa = PBXNativeTarget;
199 | buildConfigurationList = 642B47B01C2B87530090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemo2UITests" */;
200 | buildPhases = (
201 | 642B479D1C2B87530090642F /* Sources */,
202 | 642B479E1C2B87530090642F /* Frameworks */,
203 | 642B479F1C2B87530090642F /* Resources */,
204 | );
205 | buildRules = (
206 | );
207 | dependencies = (
208 | 642B47A31C2B87530090642F /* PBXTargetDependency */,
209 | );
210 | name = GIKeychainDemo2UITests;
211 | productName = GIKeychainDemo2UITests;
212 | productReference = 642B47A11C2B87530090642F /* GIKeychainDemo2UITests.xctest */;
213 | productType = "com.apple.product-type.bundle.ui-testing";
214 | };
215 | /* End PBXNativeTarget section */
216 |
217 | /* Begin PBXProject section */
218 | 642B47751C2B87530090642F /* Project object */ = {
219 | isa = PBXProject;
220 | attributes = {
221 | LastUpgradeCheck = 0720;
222 | ORGANIZATIONNAME = shen;
223 | TargetAttributes = {
224 | 642B477C1C2B87530090642F = {
225 | CreatedOnToolsVersion = 7.2;
226 | };
227 | 642B47951C2B87530090642F = {
228 | CreatedOnToolsVersion = 7.2;
229 | TestTargetID = 642B477C1C2B87530090642F;
230 | };
231 | 642B47A01C2B87530090642F = {
232 | CreatedOnToolsVersion = 7.2;
233 | TestTargetID = 642B477C1C2B87530090642F;
234 | };
235 | };
236 | };
237 | buildConfigurationList = 642B47781C2B87530090642F /* Build configuration list for PBXProject "GIKeychainDemo2" */;
238 | compatibilityVersion = "Xcode 3.2";
239 | developmentRegion = English;
240 | hasScannedForEncodings = 0;
241 | knownRegions = (
242 | en,
243 | Base,
244 | );
245 | mainGroup = 642B47741C2B87530090642F;
246 | productRefGroup = 642B477E1C2B87530090642F /* Products */;
247 | projectDirPath = "";
248 | projectRoot = "";
249 | targets = (
250 | 642B477C1C2B87530090642F /* GIKeychainDemo2 */,
251 | 642B47951C2B87530090642F /* GIKeychainDemo2Tests */,
252 | 642B47A01C2B87530090642F /* GIKeychainDemo2UITests */,
253 | );
254 | };
255 | /* End PBXProject section */
256 |
257 | /* Begin PBXResourcesBuildPhase section */
258 | 642B477B1C2B87530090642F /* Resources */ = {
259 | isa = PBXResourcesBuildPhase;
260 | buildActionMask = 2147483647;
261 | files = (
262 | 642B47901C2B87530090642F /* LaunchScreen.storyboard in Resources */,
263 | 642B478D1C2B87530090642F /* Assets.xcassets in Resources */,
264 | 642B47B81C2B8A9D0090642F /* KeychainAccessGroups.plist in Resources */,
265 | 642B478B1C2B87530090642F /* Main.storyboard in Resources */,
266 | );
267 | runOnlyForDeploymentPostprocessing = 0;
268 | };
269 | 642B47941C2B87530090642F /* Resources */ = {
270 | isa = PBXResourcesBuildPhase;
271 | buildActionMask = 2147483647;
272 | files = (
273 | );
274 | runOnlyForDeploymentPostprocessing = 0;
275 | };
276 | 642B479F1C2B87530090642F /* Resources */ = {
277 | isa = PBXResourcesBuildPhase;
278 | buildActionMask = 2147483647;
279 | files = (
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | };
283 | /* End PBXResourcesBuildPhase section */
284 |
285 | /* Begin PBXSourcesBuildPhase section */
286 | 642B47791C2B87530090642F /* Sources */ = {
287 | isa = PBXSourcesBuildPhase;
288 | buildActionMask = 2147483647;
289 | files = (
290 | 642B47881C2B87530090642F /* ViewController.m in Sources */,
291 | 642B47851C2B87530090642F /* AppDelegate.m in Sources */,
292 | 642B47821C2B87530090642F /* main.m in Sources */,
293 | 642B47B61C2B8A830090642F /* GIKeychain.m in Sources */,
294 | );
295 | runOnlyForDeploymentPostprocessing = 0;
296 | };
297 | 642B47921C2B87530090642F /* Sources */ = {
298 | isa = PBXSourcesBuildPhase;
299 | buildActionMask = 2147483647;
300 | files = (
301 | 642B479B1C2B87530090642F /* GIKeychainDemo2Tests.m in Sources */,
302 | );
303 | runOnlyForDeploymentPostprocessing = 0;
304 | };
305 | 642B479D1C2B87530090642F /* Sources */ = {
306 | isa = PBXSourcesBuildPhase;
307 | buildActionMask = 2147483647;
308 | files = (
309 | 642B47A61C2B87530090642F /* GIKeychainDemo2UITests.m in Sources */,
310 | );
311 | runOnlyForDeploymentPostprocessing = 0;
312 | };
313 | /* End PBXSourcesBuildPhase section */
314 |
315 | /* Begin PBXTargetDependency section */
316 | 642B47981C2B87530090642F /* PBXTargetDependency */ = {
317 | isa = PBXTargetDependency;
318 | target = 642B477C1C2B87530090642F /* GIKeychainDemo2 */;
319 | targetProxy = 642B47971C2B87530090642F /* PBXContainerItemProxy */;
320 | };
321 | 642B47A31C2B87530090642F /* PBXTargetDependency */ = {
322 | isa = PBXTargetDependency;
323 | target = 642B477C1C2B87530090642F /* GIKeychainDemo2 */;
324 | targetProxy = 642B47A21C2B87530090642F /* PBXContainerItemProxy */;
325 | };
326 | /* End PBXTargetDependency section */
327 |
328 | /* Begin PBXVariantGroup section */
329 | 642B47891C2B87530090642F /* Main.storyboard */ = {
330 | isa = PBXVariantGroup;
331 | children = (
332 | 642B478A1C2B87530090642F /* Base */,
333 | );
334 | name = Main.storyboard;
335 | sourceTree = "";
336 | };
337 | 642B478E1C2B87530090642F /* LaunchScreen.storyboard */ = {
338 | isa = PBXVariantGroup;
339 | children = (
340 | 642B478F1C2B87530090642F /* Base */,
341 | );
342 | name = LaunchScreen.storyboard;
343 | sourceTree = "";
344 | };
345 | /* End PBXVariantGroup section */
346 |
347 | /* Begin XCBuildConfiguration section */
348 | 642B47A81C2B87530090642F /* Debug */ = {
349 | isa = XCBuildConfiguration;
350 | buildSettings = {
351 | ALWAYS_SEARCH_USER_PATHS = NO;
352 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
353 | CLANG_CXX_LIBRARY = "libc++";
354 | CLANG_ENABLE_MODULES = YES;
355 | CLANG_ENABLE_OBJC_ARC = YES;
356 | CLANG_WARN_BOOL_CONVERSION = YES;
357 | CLANG_WARN_CONSTANT_CONVERSION = YES;
358 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
359 | CLANG_WARN_EMPTY_BODY = YES;
360 | CLANG_WARN_ENUM_CONVERSION = YES;
361 | CLANG_WARN_INT_CONVERSION = YES;
362 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
363 | CLANG_WARN_UNREACHABLE_CODE = YES;
364 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
365 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
366 | COPY_PHASE_STRIP = NO;
367 | DEBUG_INFORMATION_FORMAT = dwarf;
368 | ENABLE_STRICT_OBJC_MSGSEND = YES;
369 | ENABLE_TESTABILITY = YES;
370 | GCC_C_LANGUAGE_STANDARD = gnu99;
371 | GCC_DYNAMIC_NO_PIC = NO;
372 | GCC_NO_COMMON_BLOCKS = YES;
373 | GCC_OPTIMIZATION_LEVEL = 0;
374 | GCC_PREPROCESSOR_DEFINITIONS = (
375 | "DEBUG=1",
376 | "$(inherited)",
377 | );
378 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
379 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
380 | GCC_WARN_UNDECLARED_SELECTOR = YES;
381 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
382 | GCC_WARN_UNUSED_FUNCTION = YES;
383 | GCC_WARN_UNUSED_VARIABLE = YES;
384 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
385 | MTL_ENABLE_DEBUG_INFO = YES;
386 | ONLY_ACTIVE_ARCH = YES;
387 | SDKROOT = iphoneos;
388 | TARGETED_DEVICE_FAMILY = "1,2";
389 | };
390 | name = Debug;
391 | };
392 | 642B47A91C2B87530090642F /* Release */ = {
393 | isa = XCBuildConfiguration;
394 | buildSettings = {
395 | ALWAYS_SEARCH_USER_PATHS = NO;
396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
397 | CLANG_CXX_LIBRARY = "libc++";
398 | CLANG_ENABLE_MODULES = YES;
399 | CLANG_ENABLE_OBJC_ARC = YES;
400 | CLANG_WARN_BOOL_CONVERSION = YES;
401 | CLANG_WARN_CONSTANT_CONVERSION = YES;
402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
403 | CLANG_WARN_EMPTY_BODY = YES;
404 | CLANG_WARN_ENUM_CONVERSION = YES;
405 | CLANG_WARN_INT_CONVERSION = YES;
406 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
407 | CLANG_WARN_UNREACHABLE_CODE = YES;
408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
409 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
410 | COPY_PHASE_STRIP = NO;
411 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
412 | ENABLE_NS_ASSERTIONS = NO;
413 | ENABLE_STRICT_OBJC_MSGSEND = YES;
414 | GCC_C_LANGUAGE_STANDARD = gnu99;
415 | GCC_NO_COMMON_BLOCKS = YES;
416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
418 | GCC_WARN_UNDECLARED_SELECTOR = YES;
419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
420 | GCC_WARN_UNUSED_FUNCTION = YES;
421 | GCC_WARN_UNUSED_VARIABLE = YES;
422 | IPHONEOS_DEPLOYMENT_TARGET = 9.2;
423 | MTL_ENABLE_DEBUG_INFO = NO;
424 | SDKROOT = iphoneos;
425 | TARGETED_DEVICE_FAMILY = "1,2";
426 | VALIDATE_PRODUCT = YES;
427 | };
428 | name = Release;
429 | };
430 | 642B47AB1C2B87530090642F /* Debug */ = {
431 | isa = XCBuildConfiguration;
432 | buildSettings = {
433 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
434 | CODE_SIGN_ENTITLEMENTS = GIKeychainDemo2/KeychainAccessGroups.plist;
435 | INFOPLIST_FILE = GIKeychainDemo2/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemo2;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | };
440 | name = Debug;
441 | };
442 | 642B47AC1C2B87530090642F /* Release */ = {
443 | isa = XCBuildConfiguration;
444 | buildSettings = {
445 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
446 | CODE_SIGN_ENTITLEMENTS = GIKeychainDemo2/KeychainAccessGroups.plist;
447 | INFOPLIST_FILE = GIKeychainDemo2/Info.plist;
448 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
449 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemo2;
450 | PRODUCT_NAME = "$(TARGET_NAME)";
451 | };
452 | name = Release;
453 | };
454 | 642B47AE1C2B87530090642F /* Debug */ = {
455 | isa = XCBuildConfiguration;
456 | buildSettings = {
457 | BUNDLE_LOADER = "$(TEST_HOST)";
458 | INFOPLIST_FILE = GIKeychainDemo2Tests/Info.plist;
459 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
460 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemo2Tests;
461 | PRODUCT_NAME = "$(TARGET_NAME)";
462 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GIKeychainDemo2.app/GIKeychainDemo2";
463 | };
464 | name = Debug;
465 | };
466 | 642B47AF1C2B87530090642F /* Release */ = {
467 | isa = XCBuildConfiguration;
468 | buildSettings = {
469 | BUNDLE_LOADER = "$(TEST_HOST)";
470 | INFOPLIST_FILE = GIKeychainDemo2Tests/Info.plist;
471 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
472 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemo2Tests;
473 | PRODUCT_NAME = "$(TARGET_NAME)";
474 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GIKeychainDemo2.app/GIKeychainDemo2";
475 | };
476 | name = Release;
477 | };
478 | 642B47B11C2B87530090642F /* Debug */ = {
479 | isa = XCBuildConfiguration;
480 | buildSettings = {
481 | INFOPLIST_FILE = GIKeychainDemo2UITests/Info.plist;
482 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
483 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemo2UITests;
484 | PRODUCT_NAME = "$(TARGET_NAME)";
485 | TEST_TARGET_NAME = GIKeychainDemo2;
486 | USES_XCTRUNNER = YES;
487 | };
488 | name = Debug;
489 | };
490 | 642B47B21C2B87530090642F /* Release */ = {
491 | isa = XCBuildConfiguration;
492 | buildSettings = {
493 | INFOPLIST_FILE = GIKeychainDemo2UITests/Info.plist;
494 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
495 | PRODUCT_BUNDLE_IDENTIFIER = cn.grassinfo.GIKeychainDemo2UITests;
496 | PRODUCT_NAME = "$(TARGET_NAME)";
497 | TEST_TARGET_NAME = GIKeychainDemo2;
498 | USES_XCTRUNNER = YES;
499 | };
500 | name = Release;
501 | };
502 | /* End XCBuildConfiguration section */
503 |
504 | /* Begin XCConfigurationList section */
505 | 642B47781C2B87530090642F /* Build configuration list for PBXProject "GIKeychainDemo2" */ = {
506 | isa = XCConfigurationList;
507 | buildConfigurations = (
508 | 642B47A81C2B87530090642F /* Debug */,
509 | 642B47A91C2B87530090642F /* Release */,
510 | );
511 | defaultConfigurationIsVisible = 0;
512 | defaultConfigurationName = Release;
513 | };
514 | 642B47AA1C2B87530090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemo2" */ = {
515 | isa = XCConfigurationList;
516 | buildConfigurations = (
517 | 642B47AB1C2B87530090642F /* Debug */,
518 | 642B47AC1C2B87530090642F /* Release */,
519 | );
520 | defaultConfigurationIsVisible = 0;
521 | };
522 | 642B47AD1C2B87530090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemo2Tests" */ = {
523 | isa = XCConfigurationList;
524 | buildConfigurations = (
525 | 642B47AE1C2B87530090642F /* Debug */,
526 | 642B47AF1C2B87530090642F /* Release */,
527 | );
528 | defaultConfigurationIsVisible = 0;
529 | };
530 | 642B47B01C2B87530090642F /* Build configuration list for PBXNativeTarget "GIKeychainDemo2UITests" */ = {
531 | isa = XCConfigurationList;
532 | buildConfigurations = (
533 | 642B47B11C2B87530090642F /* Debug */,
534 | 642B47B21C2B87530090642F /* Release */,
535 | );
536 | defaultConfigurationIsVisible = 0;
537 | };
538 | /* End XCConfigurationList section */
539 | };
540 | rootObject = 642B47751C2B87530090642F /* Project object */;
541 | }
542 |
--------------------------------------------------------------------------------