├── README.md
├── changeLocationDemo
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ViewController.h
├── AppDelegate.h
├── main.m
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── Info.plist
├── AppDelegate.m
└── ViewController.m
├── changeLocationDemo.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── project.pbxproj
├── Location.gpx
├── LICENSE
└── .gitignore
/README.md:
--------------------------------------------------------------------------------
1 | # ChangeLocation
2 | 利用Gpx文件修改手机定位
3 |
--------------------------------------------------------------------------------
/changeLocationDemo/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/changeLocationDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/changeLocationDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // changeLocationDemo
4 | //
5 | // Created by baidu on 2018/10/10.
6 | // Copyright © 2018 mahp. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/changeLocationDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/changeLocationDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // changeLocationDemo
4 | //
5 | // Created by baidu on 2018/10/10.
6 | // Copyright © 2018 mahp. 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 |
--------------------------------------------------------------------------------
/changeLocationDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // changeLocationDemo
4 | //
5 | // Created by baidu on 2018/10/10.
6 | // Copyright © 2018 mahp. 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 |
--------------------------------------------------------------------------------
/Location.gpx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 | Cupertino
14 |
15 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 SmallwolfiOS
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xccheckout
23 | *.xcscmblueprint
24 |
25 | ## Obj-C/Swift specific
26 | *.hmap
27 | *.ipa
28 | *.dSYM.zip
29 | *.dSYM
30 |
31 | # CocoaPods
32 | #
33 | # We recommend against adding the Pods directory to your .gitignore. However
34 | # you should judge for yourself, the pros and cons are mentioned at:
35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
36 | #
37 | # Pods/
38 |
39 | # Carthage
40 | #
41 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
42 | # Carthage/Checkouts
43 |
44 | Carthage/Build
45 |
46 | # fastlane
47 | #
48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
49 | # screenshots whenever they are needed.
50 | # For more information about the recommended setup visit:
51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
52 |
53 | fastlane/report.xml
54 | fastlane/Preview.html
55 | fastlane/screenshots/**/*.png
56 | fastlane/test_output
57 |
58 | # Code Injection
59 | #
60 | # After new code Injection tools there's a generated folder /iOSInjectionProject
61 | # https://github.com/johnno1962/injectionforxcode
62 |
63 | iOSInjectionProject/
64 |
--------------------------------------------------------------------------------
/changeLocationDemo/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 |
--------------------------------------------------------------------------------
/changeLocationDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | NSLocationWhenInUseUsageDescription
6 | aa
7 | NSLocationAlwaysAndWhenInUseUsageDescription
8 | s
9 | NSLocationAlwaysUsageDescription
10 | aaa
11 | CFBundleDevelopmentRegion
12 | $(DEVELOPMENT_LANGUAGE)
13 | CFBundleExecutable
14 | $(EXECUTABLE_NAME)
15 | CFBundleIdentifier
16 | $(PRODUCT_BUNDLE_IDENTIFIER)
17 | CFBundleInfoDictionaryVersion
18 | 6.0
19 | CFBundleName
20 | $(PRODUCT_NAME)
21 | CFBundlePackageType
22 | APPL
23 | CFBundleShortVersionString
24 | 1.0
25 | CFBundleVersion
26 | 1
27 | LSRequiresIPhoneOS
28 |
29 | UILaunchStoryboardName
30 | LaunchScreen
31 | UIMainStoryboardFile
32 | Main
33 | UIRequiredDeviceCapabilities
34 |
35 | armv7
36 |
37 | UISupportedInterfaceOrientations
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationLandscapeLeft
41 | UIInterfaceOrientationLandscapeRight
42 |
43 | UISupportedInterfaceOrientations~ipad
44 |
45 | UIInterfaceOrientationPortrait
46 | UIInterfaceOrientationPortraitUpsideDown
47 | UIInterfaceOrientationLandscapeLeft
48 | UIInterfaceOrientationLandscapeRight
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/changeLocationDemo/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/changeLocationDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // changeLocationDemo
4 | //
5 | // Created by baidu on 2018/10/10.
6 | // Copyright © 2018 mahp. 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 |
24 | - (void)applicationWillResignActive:(UIApplication *)application {
25 | // 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.
26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
27 | }
28 |
29 |
30 | - (void)applicationDidEnterBackground:(UIApplication *)application {
31 | // 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.
32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
33 | }
34 |
35 |
36 | - (void)applicationWillEnterForeground:(UIApplication *)application {
37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
38 | }
39 |
40 |
41 | - (void)applicationDidBecomeActive:(UIApplication *)application {
42 | // 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.
43 | }
44 |
45 |
46 | - (void)applicationWillTerminate:(UIApplication *)application {
47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
48 | }
49 |
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/changeLocationDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // changeLocationDemo
4 | //
5 | // Created by baidu on 2018/10/10.
6 | // Copyright © 2018 mahp. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import
11 | @interface ViewController ()
12 |
13 |
14 | @property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
15 | @property (weak, nonatomic) IBOutlet UITextField *textField;
16 | @property (nonatomic,strong) CLLocationManager * locationManager;
17 | @end
18 |
19 | @implementation ViewController
20 |
21 | - (void)viewDidLoad {
22 | [super viewDidLoad];
23 | // Do any additional setup after loading the view, typically from a nib.
24 |
25 |
26 |
27 |
28 |
29 |
30 | if ([CLLocationManager locationServicesEnabled]) {
31 |
32 | _locationManager = [[CLLocationManager alloc]init];
33 | _locationManager.delegate = self;
34 |
35 | [_locationManager requestAlwaysAuthorization];
36 | [_locationManager startUpdatingLocation];
37 |
38 | }
39 | }
40 | - (IBAction)confirmAction:(id)sender {
41 | CLGeocoder *geocoder = [[CLGeocoder alloc] init];
42 | [geocoder geocodeAddressString:_textField.text completionHandler:^(NSArray *placemarks, NSError *error){
43 | NSLog(@"查询记录数:%ld",[placemarks count]);
44 | if ([placemarks count] > 0) {
45 | CLPlacemark *placemark = [placemarks objectAtIndex:0];
46 | CLLocationCoordinate2D coordinate = placemark.location.coordinate;
47 |
48 | NSString *strCoordinate = [NSString stringWithFormat:@"经度:%3.5f 纬度:%3.5f:",coordinate.latitude,coordinate.longitude ];
49 | NSLog(@"%@",strCoordinate);
50 | }
51 | }];
52 | }
53 |
54 |
55 | //#pragma mark CoreLocation deleagte (定位失败)
56 | /*定位成功后则执行此代理方法*/
57 | #pragma mark 定位成功
58 | -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations{
59 | // [_locationManager stopUpdatingLocation];
60 | /*旧值*/
61 | CLLocation * currentLocation = [locations lastObject];
62 | CLGeocoder * geoCoder = [[CLGeocoder alloc]init];
63 | /*打印当前经纬度*/
64 | NSLog(@"%f=====%f",currentLocation.coordinate.latitude,currentLocation.coordinate.longitude);
65 | /*地理反编码 -- 可以根据地理位置(经纬度)确认位置信息 (街道、门牌)*/
66 | // [geoCoder reverseGeocodeLocation:currentLocation completionHandler:^(NSArray * _Nullable placemarks, NSError * _Nullable error) {
67 | // if (placemarks.count >0) {
68 | // CLPlacemark * placeMark = placemarks[0];
69 | // currentCity = placeMark.locality;
70 | // if (!currentCity) {
71 | // currentCity = @"无法定位当前城市";
72 | // }
73 | // /*看需求定义一个全局变量来接受赋值*/
74 | // NSLog(@"%@",placeMark.country);/*当前国家*/
75 | // NSLog(@"%@",currentCity);/*当前城市*/
76 | // NSLog(@"%@",placeMark.subLocality);/*当前位置*/
77 | // NSLog(@"%@",placeMark.thoroughfare)/*当前街道*/
78 | // NSLog(@"%@",placeMark.name);/*具体地址 ** 市 ** 区** 街道*/
79 | // /*根据经纬度判断当前距离*/
80 | // /*这个地方需要double转字符串赋值到label上面*/
81 | // self.headView.Distance.text =HZString(@"距您%.1fkm",[self getDistance:currentLocation.coordinate.latitude lng1:currentLocation.coordinate.longitude lat2:weiDouble lng2:jingDouble]);
82 | // }
83 | // else if (error == nil&&placemarks.count == 0){
84 | // NSLog(@"没有地址返回");
85 | // }
86 | // else if (error){
87 | // NSLog(@"location error:%@",error);
88 | // }
89 | // }];
90 | //}
91 | }
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 | @end
101 |
--------------------------------------------------------------------------------
/changeLocationDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/changeLocationDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | E1B0E672216DAE3700DE18C6 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E1B0E671216DAE3700DE18C6 /* AppDelegate.m */; };
11 | E1B0E675216DAE3700DE18C6 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E1B0E674216DAE3700DE18C6 /* ViewController.m */; };
12 | E1B0E678216DAE3700DE18C6 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E1B0E676216DAE3700DE18C6 /* Main.storyboard */; };
13 | E1B0E67A216DAE3A00DE18C6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E1B0E679216DAE3A00DE18C6 /* Assets.xcassets */; };
14 | E1B0E67D216DAE3A00DE18C6 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E1B0E67B216DAE3A00DE18C6 /* LaunchScreen.storyboard */; };
15 | E1B0E680216DAE3A00DE18C6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E1B0E67F216DAE3A00DE18C6 /* main.m */; };
16 | E1B0E688216DCFCD00DE18C6 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E1B0E687216DCFCD00DE18C6 /* CoreLocation.framework */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | E1B0E66D216DAE3700DE18C6 /* changeLocationDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = changeLocationDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | E1B0E670216DAE3700DE18C6 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
22 | E1B0E671216DAE3700DE18C6 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
23 | E1B0E673216DAE3700DE18C6 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
24 | E1B0E674216DAE3700DE18C6 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
25 | E1B0E677216DAE3700DE18C6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
26 | E1B0E679216DAE3A00DE18C6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
27 | E1B0E67C216DAE3A00DE18C6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
28 | E1B0E67E216DAE3A00DE18C6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
29 | E1B0E67F216DAE3A00DE18C6 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
30 | E1B0E687216DCFCD00DE18C6 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
31 | E1B0E689216DD1F500DE18C6 /* Location.gpx */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Location.gpx; sourceTree = ""; };
32 | /* End PBXFileReference section */
33 |
34 | /* Begin PBXFrameworksBuildPhase section */
35 | E1B0E66A216DAE3700DE18C6 /* Frameworks */ = {
36 | isa = PBXFrameworksBuildPhase;
37 | buildActionMask = 2147483647;
38 | files = (
39 | E1B0E688216DCFCD00DE18C6 /* CoreLocation.framework in Frameworks */,
40 | );
41 | runOnlyForDeploymentPostprocessing = 0;
42 | };
43 | /* End PBXFrameworksBuildPhase section */
44 |
45 | /* Begin PBXGroup section */
46 | E1B0E664216DAE3700DE18C6 = {
47 | isa = PBXGroup;
48 | children = (
49 | E1B0E689216DD1F500DE18C6 /* Location.gpx */,
50 | E1B0E66F216DAE3700DE18C6 /* changeLocationDemo */,
51 | E1B0E66E216DAE3700DE18C6 /* Products */,
52 | E1B0E686216DCFCC00DE18C6 /* Frameworks */,
53 | );
54 | sourceTree = "";
55 | };
56 | E1B0E66E216DAE3700DE18C6 /* Products */ = {
57 | isa = PBXGroup;
58 | children = (
59 | E1B0E66D216DAE3700DE18C6 /* changeLocationDemo.app */,
60 | );
61 | name = Products;
62 | sourceTree = "";
63 | };
64 | E1B0E66F216DAE3700DE18C6 /* changeLocationDemo */ = {
65 | isa = PBXGroup;
66 | children = (
67 | E1B0E670216DAE3700DE18C6 /* AppDelegate.h */,
68 | E1B0E671216DAE3700DE18C6 /* AppDelegate.m */,
69 | E1B0E673216DAE3700DE18C6 /* ViewController.h */,
70 | E1B0E674216DAE3700DE18C6 /* ViewController.m */,
71 | E1B0E676216DAE3700DE18C6 /* Main.storyboard */,
72 | E1B0E679216DAE3A00DE18C6 /* Assets.xcassets */,
73 | E1B0E67B216DAE3A00DE18C6 /* LaunchScreen.storyboard */,
74 | E1B0E67E216DAE3A00DE18C6 /* Info.plist */,
75 | E1B0E67F216DAE3A00DE18C6 /* main.m */,
76 | );
77 | path = changeLocationDemo;
78 | sourceTree = "";
79 | };
80 | E1B0E686216DCFCC00DE18C6 /* Frameworks */ = {
81 | isa = PBXGroup;
82 | children = (
83 | E1B0E687216DCFCD00DE18C6 /* CoreLocation.framework */,
84 | );
85 | name = Frameworks;
86 | sourceTree = "";
87 | };
88 | /* End PBXGroup section */
89 |
90 | /* Begin PBXNativeTarget section */
91 | E1B0E66C216DAE3700DE18C6 /* changeLocationDemo */ = {
92 | isa = PBXNativeTarget;
93 | buildConfigurationList = E1B0E683216DAE3A00DE18C6 /* Build configuration list for PBXNativeTarget "changeLocationDemo" */;
94 | buildPhases = (
95 | E1B0E669216DAE3700DE18C6 /* Sources */,
96 | E1B0E66A216DAE3700DE18C6 /* Frameworks */,
97 | E1B0E66B216DAE3700DE18C6 /* Resources */,
98 | );
99 | buildRules = (
100 | );
101 | dependencies = (
102 | );
103 | name = changeLocationDemo;
104 | productName = changeLocationDemo;
105 | productReference = E1B0E66D216DAE3700DE18C6 /* changeLocationDemo.app */;
106 | productType = "com.apple.product-type.application";
107 | };
108 | /* End PBXNativeTarget section */
109 |
110 | /* Begin PBXProject section */
111 | E1B0E665216DAE3700DE18C6 /* Project object */ = {
112 | isa = PBXProject;
113 | attributes = {
114 | LastUpgradeCheck = 1000;
115 | ORGANIZATIONNAME = mahp;
116 | TargetAttributes = {
117 | E1B0E66C216DAE3700DE18C6 = {
118 | CreatedOnToolsVersion = 10.0;
119 | };
120 | };
121 | };
122 | buildConfigurationList = E1B0E668216DAE3700DE18C6 /* Build configuration list for PBXProject "changeLocationDemo" */;
123 | compatibilityVersion = "Xcode 9.3";
124 | developmentRegion = en;
125 | hasScannedForEncodings = 0;
126 | knownRegions = (
127 | en,
128 | Base,
129 | );
130 | mainGroup = E1B0E664216DAE3700DE18C6;
131 | productRefGroup = E1B0E66E216DAE3700DE18C6 /* Products */;
132 | projectDirPath = "";
133 | projectRoot = "";
134 | targets = (
135 | E1B0E66C216DAE3700DE18C6 /* changeLocationDemo */,
136 | );
137 | };
138 | /* End PBXProject section */
139 |
140 | /* Begin PBXResourcesBuildPhase section */
141 | E1B0E66B216DAE3700DE18C6 /* Resources */ = {
142 | isa = PBXResourcesBuildPhase;
143 | buildActionMask = 2147483647;
144 | files = (
145 | E1B0E67D216DAE3A00DE18C6 /* LaunchScreen.storyboard in Resources */,
146 | E1B0E67A216DAE3A00DE18C6 /* Assets.xcassets in Resources */,
147 | E1B0E678216DAE3700DE18C6 /* Main.storyboard in Resources */,
148 | );
149 | runOnlyForDeploymentPostprocessing = 0;
150 | };
151 | /* End PBXResourcesBuildPhase section */
152 |
153 | /* Begin PBXSourcesBuildPhase section */
154 | E1B0E669216DAE3700DE18C6 /* Sources */ = {
155 | isa = PBXSourcesBuildPhase;
156 | buildActionMask = 2147483647;
157 | files = (
158 | E1B0E675216DAE3700DE18C6 /* ViewController.m in Sources */,
159 | E1B0E680216DAE3A00DE18C6 /* main.m in Sources */,
160 | E1B0E672216DAE3700DE18C6 /* AppDelegate.m in Sources */,
161 | );
162 | runOnlyForDeploymentPostprocessing = 0;
163 | };
164 | /* End PBXSourcesBuildPhase section */
165 |
166 | /* Begin PBXVariantGroup section */
167 | E1B0E676216DAE3700DE18C6 /* Main.storyboard */ = {
168 | isa = PBXVariantGroup;
169 | children = (
170 | E1B0E677216DAE3700DE18C6 /* Base */,
171 | );
172 | name = Main.storyboard;
173 | sourceTree = "";
174 | };
175 | E1B0E67B216DAE3A00DE18C6 /* LaunchScreen.storyboard */ = {
176 | isa = PBXVariantGroup;
177 | children = (
178 | E1B0E67C216DAE3A00DE18C6 /* Base */,
179 | );
180 | name = LaunchScreen.storyboard;
181 | sourceTree = "";
182 | };
183 | /* End PBXVariantGroup section */
184 |
185 | /* Begin XCBuildConfiguration section */
186 | E1B0E681216DAE3A00DE18C6 /* Debug */ = {
187 | isa = XCBuildConfiguration;
188 | buildSettings = {
189 | ALWAYS_SEARCH_USER_PATHS = NO;
190 | CLANG_ANALYZER_NONNULL = YES;
191 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
192 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
193 | CLANG_CXX_LIBRARY = "libc++";
194 | CLANG_ENABLE_MODULES = YES;
195 | CLANG_ENABLE_OBJC_ARC = YES;
196 | CLANG_ENABLE_OBJC_WEAK = YES;
197 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
198 | CLANG_WARN_BOOL_CONVERSION = YES;
199 | CLANG_WARN_COMMA = YES;
200 | CLANG_WARN_CONSTANT_CONVERSION = YES;
201 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
202 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
203 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
204 | CLANG_WARN_EMPTY_BODY = YES;
205 | CLANG_WARN_ENUM_CONVERSION = YES;
206 | CLANG_WARN_INFINITE_RECURSION = YES;
207 | CLANG_WARN_INT_CONVERSION = YES;
208 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
209 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
210 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
211 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
212 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
213 | CLANG_WARN_STRICT_PROTOTYPES = YES;
214 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
215 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
216 | CLANG_WARN_UNREACHABLE_CODE = YES;
217 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
218 | CODE_SIGN_IDENTITY = "iPhone Developer";
219 | COPY_PHASE_STRIP = NO;
220 | DEBUG_INFORMATION_FORMAT = dwarf;
221 | ENABLE_STRICT_OBJC_MSGSEND = YES;
222 | ENABLE_TESTABILITY = YES;
223 | GCC_C_LANGUAGE_STANDARD = gnu11;
224 | GCC_DYNAMIC_NO_PIC = NO;
225 | GCC_NO_COMMON_BLOCKS = YES;
226 | GCC_OPTIMIZATION_LEVEL = 0;
227 | GCC_PREPROCESSOR_DEFINITIONS = (
228 | "DEBUG=1",
229 | "$(inherited)",
230 | );
231 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
232 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
233 | GCC_WARN_UNDECLARED_SELECTOR = YES;
234 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
235 | GCC_WARN_UNUSED_FUNCTION = YES;
236 | GCC_WARN_UNUSED_VARIABLE = YES;
237 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
238 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
239 | MTL_FAST_MATH = YES;
240 | ONLY_ACTIVE_ARCH = YES;
241 | SDKROOT = iphoneos;
242 | };
243 | name = Debug;
244 | };
245 | E1B0E682216DAE3A00DE18C6 /* Release */ = {
246 | isa = XCBuildConfiguration;
247 | buildSettings = {
248 | ALWAYS_SEARCH_USER_PATHS = NO;
249 | CLANG_ANALYZER_NONNULL = YES;
250 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
251 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
252 | CLANG_CXX_LIBRARY = "libc++";
253 | CLANG_ENABLE_MODULES = YES;
254 | CLANG_ENABLE_OBJC_ARC = YES;
255 | CLANG_ENABLE_OBJC_WEAK = YES;
256 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
257 | CLANG_WARN_BOOL_CONVERSION = YES;
258 | CLANG_WARN_COMMA = YES;
259 | CLANG_WARN_CONSTANT_CONVERSION = YES;
260 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
261 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
262 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
263 | CLANG_WARN_EMPTY_BODY = YES;
264 | CLANG_WARN_ENUM_CONVERSION = YES;
265 | CLANG_WARN_INFINITE_RECURSION = YES;
266 | CLANG_WARN_INT_CONVERSION = YES;
267 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
268 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
269 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
270 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
271 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
272 | CLANG_WARN_STRICT_PROTOTYPES = YES;
273 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
274 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
275 | CLANG_WARN_UNREACHABLE_CODE = YES;
276 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
277 | CODE_SIGN_IDENTITY = "iPhone Developer";
278 | COPY_PHASE_STRIP = NO;
279 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
280 | ENABLE_NS_ASSERTIONS = NO;
281 | ENABLE_STRICT_OBJC_MSGSEND = YES;
282 | GCC_C_LANGUAGE_STANDARD = gnu11;
283 | GCC_NO_COMMON_BLOCKS = YES;
284 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
285 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
286 | GCC_WARN_UNDECLARED_SELECTOR = YES;
287 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
288 | GCC_WARN_UNUSED_FUNCTION = YES;
289 | GCC_WARN_UNUSED_VARIABLE = YES;
290 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
291 | MTL_ENABLE_DEBUG_INFO = NO;
292 | MTL_FAST_MATH = YES;
293 | SDKROOT = iphoneos;
294 | VALIDATE_PRODUCT = YES;
295 | };
296 | name = Release;
297 | };
298 | E1B0E684216DAE3A00DE18C6 /* Debug */ = {
299 | isa = XCBuildConfiguration;
300 | buildSettings = {
301 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
302 | CODE_SIGN_STYLE = Automatic;
303 | DEVELOPMENT_TEAM = HKDA57D296;
304 | INFOPLIST_FILE = changeLocationDemo/Info.plist;
305 | LD_RUNPATH_SEARCH_PATHS = (
306 | "$(inherited)",
307 | "@executable_path/Frameworks",
308 | );
309 | PRODUCT_BUNDLE_IDENTIFIER = xiaoduhuyu.changeLocationDemo;
310 | PRODUCT_NAME = "$(TARGET_NAME)";
311 | TARGETED_DEVICE_FAMILY = "1,2";
312 | };
313 | name = Debug;
314 | };
315 | E1B0E685216DAE3A00DE18C6 /* Release */ = {
316 | isa = XCBuildConfiguration;
317 | buildSettings = {
318 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
319 | CODE_SIGN_STYLE = Automatic;
320 | DEVELOPMENT_TEAM = HKDA57D296;
321 | INFOPLIST_FILE = changeLocationDemo/Info.plist;
322 | LD_RUNPATH_SEARCH_PATHS = (
323 | "$(inherited)",
324 | "@executable_path/Frameworks",
325 | );
326 | PRODUCT_BUNDLE_IDENTIFIER = xiaoduhuyu.changeLocationDemo;
327 | PRODUCT_NAME = "$(TARGET_NAME)";
328 | TARGETED_DEVICE_FAMILY = "1,2";
329 | };
330 | name = Release;
331 | };
332 | /* End XCBuildConfiguration section */
333 |
334 | /* Begin XCConfigurationList section */
335 | E1B0E668216DAE3700DE18C6 /* Build configuration list for PBXProject "changeLocationDemo" */ = {
336 | isa = XCConfigurationList;
337 | buildConfigurations = (
338 | E1B0E681216DAE3A00DE18C6 /* Debug */,
339 | E1B0E682216DAE3A00DE18C6 /* Release */,
340 | );
341 | defaultConfigurationIsVisible = 0;
342 | defaultConfigurationName = Release;
343 | };
344 | E1B0E683216DAE3A00DE18C6 /* Build configuration list for PBXNativeTarget "changeLocationDemo" */ = {
345 | isa = XCConfigurationList;
346 | buildConfigurations = (
347 | E1B0E684216DAE3A00DE18C6 /* Debug */,
348 | E1B0E685216DAE3A00DE18C6 /* Release */,
349 | );
350 | defaultConfigurationIsVisible = 0;
351 | defaultConfigurationName = Release;
352 | };
353 | /* End XCConfigurationList section */
354 | };
355 | rootObject = E1B0E665216DAE3700DE18C6 /* Project object */;
356 | }
357 |
--------------------------------------------------------------------------------