├── .gitignore ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── WorldMotion.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-WorldMotion_Example │ │ ├── Pods-WorldMotion_Example-Info.plist │ │ ├── Pods-WorldMotion_Example-acknowledgements.markdown │ │ ├── Pods-WorldMotion_Example-acknowledgements.plist │ │ ├── Pods-WorldMotion_Example-dummy.m │ │ ├── Pods-WorldMotion_Example-frameworks.sh │ │ ├── Pods-WorldMotion_Example-umbrella.h │ │ ├── Pods-WorldMotion_Example.debug.xcconfig │ │ ├── Pods-WorldMotion_Example.modulemap │ │ └── Pods-WorldMotion_Example.release.xcconfig │ │ ├── Pods-WorldMotion_Tests │ │ ├── Pods-WorldMotion_Tests-Info.plist │ │ ├── Pods-WorldMotion_Tests-acknowledgements.markdown │ │ ├── Pods-WorldMotion_Tests-acknowledgements.plist │ │ ├── Pods-WorldMotion_Tests-dummy.m │ │ ├── Pods-WorldMotion_Tests-umbrella.h │ │ ├── Pods-WorldMotion_Tests.debug.xcconfig │ │ ├── Pods-WorldMotion_Tests.modulemap │ │ └── Pods-WorldMotion_Tests.release.xcconfig │ │ └── WorldMotion │ │ ├── WorldMotion-Info.plist │ │ ├── WorldMotion-dummy.m │ │ ├── WorldMotion-prefix.pch │ │ ├── WorldMotion-umbrella.h │ │ ├── WorldMotion.debug.xcconfig │ │ ├── WorldMotion.modulemap │ │ └── WorldMotion.release.xcconfig ├── Tests │ ├── Info.plist │ └── Tests.swift ├── WorldMotion.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── WorldMotion-Example.xcscheme ├── WorldMotion.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── WorldMotion │ ├── AppDelegate.swift │ ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard │ ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── LICENSE ├── README.md ├── WorldMotion.podspec ├── WorldMotion ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── Sources │ ├── Array+Matrix.swift │ ├── Double+Degree.swift │ ├── EarthCoordinate.swift │ └── RotationMatrix.swift ├── _Pods.xcodeproj └── images ├── angle_example.gif ├── orientation-azimuth.png ├── orientation-pitch.png ├── orientation-roll.png └── world-coordinates.png /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '9.0' 4 | 5 | target 'WorldMotion_Example' do 6 | pod 'WorldMotion', :path => '../' 7 | 8 | target 'WorldMotion_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - WorldMotion (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - WorldMotion (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | WorldMotion: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | WorldMotion: 4487749687762817466cbf82a708f1c2c8ae1616 13 | 14 | PODFILE CHECKSUM: 70ba38c6346852aa199ff9d0141005e31a626456 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/WorldMotion.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "WorldMotion", 3 | "version": "0.1.0", 4 | "summary": "A short description of WorldMotion.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/ahmed.almasri@ymail.com/WorldMotion", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "ahmed.almasri@ymail.com": "ahmed.almasri@ymail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/ahmed.almasri@ymail.com/WorldMotion.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "9.0" 20 | }, 21 | "source_files": "WorldMotion/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - WorldMotion (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - WorldMotion (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | WorldMotion: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | WorldMotion: 4487749687762817466cbf82a708f1c2c8ae1616 13 | 14 | PODFILE CHECKSUM: 70ba38c6346852aa199ff9d0141005e31a626456 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2A27D266913D5924141464E8B3849FFF /* WorldMotion-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A42F959B57E22E01797431CB9F6A6355 /* WorldMotion-dummy.m */; }; 11 | 40A283FE26486FCA0055AAB6 /* RotationMatrix.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40A283FD26486FCA0055AAB6 /* RotationMatrix.swift */; }; 12 | 40A28400264886B20055AAB6 /* Array+Matrix.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40A283FF264886B20055AAB6 /* Array+Matrix.swift */; }; 13 | 40A284022648885E0055AAB6 /* EarthCoordinate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40A284012648885E0055AAB6 /* EarthCoordinate.swift */; }; 14 | 40A2840B264B2A7A0055AAB6 /* Double+Degree.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40A2840A264B2A7A0055AAB6 /* Double+Degree.swift */; }; 15 | 439520CD7E7794E0DF31A84336E14B7A /* Pods-WorldMotion_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 60F55662AC2A39D386CBEE653B90DB01 /* Pods-WorldMotion_Tests-dummy.m */; }; 16 | 7EB9E37324C6AF4206BC0FC117A12121 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 17 | 9B26E885DEE86C98B27FE8D1D5BC3FED /* Pods-WorldMotion_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 79D6EDD0270BB2C2D3E24667E7FBA0BE /* Pods-WorldMotion_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | ABEA4413A7166A6F687E776C41FA5EA5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 19 | B8D4A8E1A521333A8D21AB083FE9756A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 20 | BB427B60755615719FE047C1B95DDD07 /* Pods-WorldMotion_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 55BA04DA45EBC4AF2E20C8A33CAC79C4 /* Pods-WorldMotion_Example-dummy.m */; }; 21 | C83F739E5009BB0F9FD76270C60C8610 /* Pods-WorldMotion_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 28A034B4810BCAD94D7388A443F85095 /* Pods-WorldMotion_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | E8E6E2E69DFEC5D1BFAE44662F5AAF68 /* WorldMotion-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A82BC8B1F4EA4E5E4656FF5A8F5165F3 /* WorldMotion-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 147B144C8ED494FD83662128070376FA /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = CB19C401982C1F828CD5C6FE0AB89356; 31 | remoteInfo = WorldMotion; 32 | }; 33 | B821CD1018D1AA65B71911290420B4E2 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 9B4F5EC7AF38972271F5699844E93EAC; 38 | remoteInfo = "Pods-WorldMotion_Example"; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 015C0BF18D30B0C72626ECD7B697CF95 /* WorldMotion-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WorldMotion-prefix.pch"; sourceTree = ""; }; 44 | 28A034B4810BCAD94D7388A443F85095 /* Pods-WorldMotion_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WorldMotion_Example-umbrella.h"; sourceTree = ""; }; 45 | 2FDB38F7F66E9DDA263FB56845685A06 /* Pods_WorldMotion_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WorldMotion_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 3F8923B736AAB40AE0BB9C7336F75980 /* Pods-WorldMotion_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WorldMotion_Example-acknowledgements.plist"; sourceTree = ""; }; 47 | 40A283FD26486FCA0055AAB6 /* RotationMatrix.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RotationMatrix.swift; sourceTree = ""; }; 48 | 40A283FF264886B20055AAB6 /* Array+Matrix.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Array+Matrix.swift"; sourceTree = ""; }; 49 | 40A284012648885E0055AAB6 /* EarthCoordinate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EarthCoordinate.swift; sourceTree = ""; }; 50 | 40A2840A264B2A7A0055AAB6 /* Double+Degree.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Double+Degree.swift"; sourceTree = ""; }; 51 | 4362CF53CBF5EA1570F3A6017EC4D70E /* Pods-WorldMotion_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WorldMotion_Tests.release.xcconfig"; sourceTree = ""; }; 52 | 4DA242C2D6FC41F01C3E813C191A3953 /* Pods-WorldMotion_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WorldMotion_Example.release.xcconfig"; sourceTree = ""; }; 53 | 55BA04DA45EBC4AF2E20C8A33CAC79C4 /* Pods-WorldMotion_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WorldMotion_Example-dummy.m"; sourceTree = ""; }; 54 | 5CE74D0E6A10C3F3D5656060AFC1FF17 /* Pods-WorldMotion_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WorldMotion_Tests-acknowledgements.markdown"; sourceTree = ""; }; 55 | 60F55662AC2A39D386CBEE653B90DB01 /* Pods-WorldMotion_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WorldMotion_Tests-dummy.m"; sourceTree = ""; }; 56 | 648F4D5E468F85FCAA5C3FF189E774EE /* WorldMotion-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "WorldMotion-Info.plist"; sourceTree = ""; }; 57 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 58 | 79D6EDD0270BB2C2D3E24667E7FBA0BE /* Pods-WorldMotion_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WorldMotion_Tests-umbrella.h"; sourceTree = ""; }; 59 | 82DBC8A3E682E65B00CB3B6E97CA0602 /* Pods-WorldMotion_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WorldMotion_Example-frameworks.sh"; sourceTree = ""; }; 60 | 884014A87A8620BC3F41D7315EB52632 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 61 | 8C4D0F34AA2A8316F8A035924B993834 /* Pods-WorldMotion_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-WorldMotion_Tests.modulemap"; sourceTree = ""; }; 62 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 63 | A19D5D5D3FBF636D72BBC88C09121A49 /* Pods-WorldMotion_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-WorldMotion_Example.modulemap"; sourceTree = ""; }; 64 | A1F563EC77AA40703464209E3408439D /* Pods-WorldMotion_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WorldMotion_Example.debug.xcconfig"; sourceTree = ""; }; 65 | A42F959B57E22E01797431CB9F6A6355 /* WorldMotion-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "WorldMotion-dummy.m"; sourceTree = ""; }; 66 | A53B84D278CC7351670EABC51AD0EBFA /* WorldMotion.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WorldMotion.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | A690584113929106C582218D0D82F030 /* Pods-WorldMotion_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WorldMotion_Tests.debug.xcconfig"; sourceTree = ""; }; 68 | A80EF7ED731F8E5886940B824DA72AB0 /* WorldMotion.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = WorldMotion.podspec; sourceTree = ""; tabWidth = 2; }; 69 | A82BC8B1F4EA4E5E4656FF5A8F5165F3 /* WorldMotion-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WorldMotion-umbrella.h"; sourceTree = ""; }; 70 | A8C26976F514DE800275DF6553427AC6 /* WorldMotion.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WorldMotion.release.xcconfig; sourceTree = ""; }; 71 | ADD738358829ADE0A2FC285EDE159493 /* WorldMotion.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = WorldMotion.modulemap; sourceTree = ""; }; 72 | B6255D59A95A4F43A174CA007D4990B2 /* Pods-WorldMotion_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WorldMotion_Tests-acknowledgements.plist"; sourceTree = ""; }; 73 | C1C722F06595D3E6438E1C4C832373B1 /* Pods_WorldMotion_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WorldMotion_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | CA3887A5FC34760610C875D1E2967A9F /* Pods-WorldMotion_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WorldMotion_Example-Info.plist"; sourceTree = ""; }; 75 | CB1EA2DA456178F7BC24976B29647C0F /* WorldMotion.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WorldMotion.debug.xcconfig; sourceTree = ""; }; 76 | D6E0BBBE6FB7DA39A6EBAF68E4A6E8DA /* Pods-WorldMotion_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WorldMotion_Tests-Info.plist"; sourceTree = ""; }; 77 | E7522F934DD512A2BDA1A246146231F4 /* Pods-WorldMotion_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WorldMotion_Example-acknowledgements.markdown"; sourceTree = ""; }; 78 | EFA17FCA9155F7634556D3B213E2E104 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | 2C9E645E362AEC713885EDAAA12E81CB /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | B8D4A8E1A521333A8D21AB083FE9756A /* Foundation.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | 95C00C09A57FEC0EA1392AE1AE72EEA9 /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | ABEA4413A7166A6F687E776C41FA5EA5 /* Foundation.framework in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | F2574299A3C100DEE8F8EB06E0E8AB62 /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | 7EB9E37324C6AF4206BC0FC117A12121 /* Foundation.framework in Frameworks */, 103 | ); 104 | runOnlyForDeploymentPostprocessing = 0; 105 | }; 106 | /* End PBXFrameworksBuildPhase section */ 107 | 108 | /* Begin PBXGroup section */ 109 | 0202AE275D1A567E90FE7299415B8FFE /* Products */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 2FDB38F7F66E9DDA263FB56845685A06 /* Pods_WorldMotion_Example.framework */, 113 | C1C722F06595D3E6438E1C4C832373B1 /* Pods_WorldMotion_Tests.framework */, 114 | A53B84D278CC7351670EABC51AD0EBFA /* WorldMotion.framework */, 115 | ); 116 | name = Products; 117 | sourceTree = ""; 118 | }; 119 | 029B4B58203365B43860827A1EB22650 /* Support Files */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | ADD738358829ADE0A2FC285EDE159493 /* WorldMotion.modulemap */, 123 | A42F959B57E22E01797431CB9F6A6355 /* WorldMotion-dummy.m */, 124 | 648F4D5E468F85FCAA5C3FF189E774EE /* WorldMotion-Info.plist */, 125 | 015C0BF18D30B0C72626ECD7B697CF95 /* WorldMotion-prefix.pch */, 126 | A82BC8B1F4EA4E5E4656FF5A8F5165F3 /* WorldMotion-umbrella.h */, 127 | CB1EA2DA456178F7BC24976B29647C0F /* WorldMotion.debug.xcconfig */, 128 | A8C26976F514DE800275DF6553427AC6 /* WorldMotion.release.xcconfig */, 129 | ); 130 | name = "Support Files"; 131 | path = "Example/Pods/Target Support Files/WorldMotion"; 132 | sourceTree = ""; 133 | }; 134 | 164F2CFF1DE8748D98BC47499490C3D9 /* Pod */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 884014A87A8620BC3F41D7315EB52632 /* LICENSE */, 138 | EFA17FCA9155F7634556D3B213E2E104 /* README.md */, 139 | A80EF7ED731F8E5886940B824DA72AB0 /* WorldMotion.podspec */, 140 | ); 141 | name = Pod; 142 | sourceTree = ""; 143 | }; 144 | 1D1207CD10211840F8130B997B9168A9 /* Pods-WorldMotion_Tests */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 8C4D0F34AA2A8316F8A035924B993834 /* Pods-WorldMotion_Tests.modulemap */, 148 | 5CE74D0E6A10C3F3D5656060AFC1FF17 /* Pods-WorldMotion_Tests-acknowledgements.markdown */, 149 | B6255D59A95A4F43A174CA007D4990B2 /* Pods-WorldMotion_Tests-acknowledgements.plist */, 150 | 60F55662AC2A39D386CBEE653B90DB01 /* Pods-WorldMotion_Tests-dummy.m */, 151 | D6E0BBBE6FB7DA39A6EBAF68E4A6E8DA /* Pods-WorldMotion_Tests-Info.plist */, 152 | 79D6EDD0270BB2C2D3E24667E7FBA0BE /* Pods-WorldMotion_Tests-umbrella.h */, 153 | A690584113929106C582218D0D82F030 /* Pods-WorldMotion_Tests.debug.xcconfig */, 154 | 4362CF53CBF5EA1570F3A6017EC4D70E /* Pods-WorldMotion_Tests.release.xcconfig */, 155 | ); 156 | name = "Pods-WorldMotion_Tests"; 157 | path = "Target Support Files/Pods-WorldMotion_Tests"; 158 | sourceTree = ""; 159 | }; 160 | 4D72F86B37C72A5B817D42C7344BFEB9 /* Development Pods */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | F8B8633DD4A65F8C03144712B1E5F821 /* WorldMotion */, 164 | ); 165 | name = "Development Pods"; 166 | sourceTree = ""; 167 | }; 168 | 578452D2E740E91742655AC8F1636D1F /* iOS */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */, 172 | ); 173 | name = iOS; 174 | sourceTree = ""; 175 | }; 176 | 92249A155C608319628716667C759004 /* Sources */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 40A283FD26486FCA0055AAB6 /* RotationMatrix.swift */, 180 | 40A283FF264886B20055AAB6 /* Array+Matrix.swift */, 181 | 40A284012648885E0055AAB6 /* EarthCoordinate.swift */, 182 | 40A2840A264B2A7A0055AAB6 /* Double+Degree.swift */, 183 | ); 184 | name = Sources; 185 | path = WorldMotion/Classes/Sources; 186 | sourceTree = ""; 187 | }; 188 | ACE20F1706599626CAC6BB1F48CFD41B /* Targets Support Files */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | F1961D6630A9BA1ED30FD545995F7FE3 /* Pods-WorldMotion_Example */, 192 | 1D1207CD10211840F8130B997B9168A9 /* Pods-WorldMotion_Tests */, 193 | ); 194 | name = "Targets Support Files"; 195 | sourceTree = ""; 196 | }; 197 | CF1408CF629C7361332E53B88F7BD30C = { 198 | isa = PBXGroup; 199 | children = ( 200 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 201 | 4D72F86B37C72A5B817D42C7344BFEB9 /* Development Pods */, 202 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 203 | 0202AE275D1A567E90FE7299415B8FFE /* Products */, 204 | ACE20F1706599626CAC6BB1F48CFD41B /* Targets Support Files */, 205 | ); 206 | sourceTree = ""; 207 | }; 208 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | 578452D2E740E91742655AC8F1636D1F /* iOS */, 212 | ); 213 | name = Frameworks; 214 | sourceTree = ""; 215 | }; 216 | F1961D6630A9BA1ED30FD545995F7FE3 /* Pods-WorldMotion_Example */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | A19D5D5D3FBF636D72BBC88C09121A49 /* Pods-WorldMotion_Example.modulemap */, 220 | E7522F934DD512A2BDA1A246146231F4 /* Pods-WorldMotion_Example-acknowledgements.markdown */, 221 | 3F8923B736AAB40AE0BB9C7336F75980 /* Pods-WorldMotion_Example-acknowledgements.plist */, 222 | 55BA04DA45EBC4AF2E20C8A33CAC79C4 /* Pods-WorldMotion_Example-dummy.m */, 223 | 82DBC8A3E682E65B00CB3B6E97CA0602 /* Pods-WorldMotion_Example-frameworks.sh */, 224 | CA3887A5FC34760610C875D1E2967A9F /* Pods-WorldMotion_Example-Info.plist */, 225 | 28A034B4810BCAD94D7388A443F85095 /* Pods-WorldMotion_Example-umbrella.h */, 226 | A1F563EC77AA40703464209E3408439D /* Pods-WorldMotion_Example.debug.xcconfig */, 227 | 4DA242C2D6FC41F01C3E813C191A3953 /* Pods-WorldMotion_Example.release.xcconfig */, 228 | ); 229 | name = "Pods-WorldMotion_Example"; 230 | path = "Target Support Files/Pods-WorldMotion_Example"; 231 | sourceTree = ""; 232 | }; 233 | F8B8633DD4A65F8C03144712B1E5F821 /* WorldMotion */ = { 234 | isa = PBXGroup; 235 | children = ( 236 | 164F2CFF1DE8748D98BC47499490C3D9 /* Pod */, 237 | 92249A155C608319628716667C759004 /* Sources */, 238 | 029B4B58203365B43860827A1EB22650 /* Support Files */, 239 | ); 240 | name = WorldMotion; 241 | path = ../..; 242 | sourceTree = ""; 243 | }; 244 | /* End PBXGroup section */ 245 | 246 | /* Begin PBXHeadersBuildPhase section */ 247 | 0B75EB5BF18EF8153DDD93456139177E /* Headers */ = { 248 | isa = PBXHeadersBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | E8E6E2E69DFEC5D1BFAE44662F5AAF68 /* WorldMotion-umbrella.h in Headers */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 554FE92BECFD923B9138075E1663D933 /* Headers */ = { 256 | isa = PBXHeadersBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | C83F739E5009BB0F9FD76270C60C8610 /* Pods-WorldMotion_Example-umbrella.h in Headers */, 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | CCA87E9E1E9910334AFB6DFF947C615E /* Headers */ = { 264 | isa = PBXHeadersBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | 9B26E885DEE86C98B27FE8D1D5BC3FED /* Pods-WorldMotion_Tests-umbrella.h in Headers */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | /* End PBXHeadersBuildPhase section */ 272 | 273 | /* Begin PBXNativeTarget section */ 274 | 9B4F5EC7AF38972271F5699844E93EAC /* Pods-WorldMotion_Example */ = { 275 | isa = PBXNativeTarget; 276 | buildConfigurationList = 2D29A67853B8008C321B6CD51EDC155F /* Build configuration list for PBXNativeTarget "Pods-WorldMotion_Example" */; 277 | buildPhases = ( 278 | 554FE92BECFD923B9138075E1663D933 /* Headers */, 279 | 1C5992AC4CFF0FC850845120167D799E /* Sources */, 280 | 95C00C09A57FEC0EA1392AE1AE72EEA9 /* Frameworks */, 281 | 3067B92B45ADD6D5B730374EDDCE34A2 /* Resources */, 282 | ); 283 | buildRules = ( 284 | ); 285 | dependencies = ( 286 | 55A15D0258DB328A8271F392FA3D8C64 /* PBXTargetDependency */, 287 | ); 288 | name = "Pods-WorldMotion_Example"; 289 | productName = "Pods-WorldMotion_Example"; 290 | productReference = 2FDB38F7F66E9DDA263FB56845685A06 /* Pods_WorldMotion_Example.framework */; 291 | productType = "com.apple.product-type.framework"; 292 | }; 293 | A919F007B7970DB79B7F16326BD09428 /* Pods-WorldMotion_Tests */ = { 294 | isa = PBXNativeTarget; 295 | buildConfigurationList = 9A0A861773DA1D558DFB813F2BF9A7C9 /* Build configuration list for PBXNativeTarget "Pods-WorldMotion_Tests" */; 296 | buildPhases = ( 297 | CCA87E9E1E9910334AFB6DFF947C615E /* Headers */, 298 | F16C2FEB51FFD00839E11106C6F438BD /* Sources */, 299 | F2574299A3C100DEE8F8EB06E0E8AB62 /* Frameworks */, 300 | 69FEAB95BAAC4EDECDB78993B53C73CC /* Resources */, 301 | ); 302 | buildRules = ( 303 | ); 304 | dependencies = ( 305 | 026EBDACE2D776E77C23067B50F35DDD /* PBXTargetDependency */, 306 | ); 307 | name = "Pods-WorldMotion_Tests"; 308 | productName = "Pods-WorldMotion_Tests"; 309 | productReference = C1C722F06595D3E6438E1C4C832373B1 /* Pods_WorldMotion_Tests.framework */; 310 | productType = "com.apple.product-type.framework"; 311 | }; 312 | CB19C401982C1F828CD5C6FE0AB89356 /* WorldMotion */ = { 313 | isa = PBXNativeTarget; 314 | buildConfigurationList = 67FE2D73648989797BE5F90550A902D8 /* Build configuration list for PBXNativeTarget "WorldMotion" */; 315 | buildPhases = ( 316 | 0B75EB5BF18EF8153DDD93456139177E /* Headers */, 317 | A1C940959DDF00EE32F00090C21AF7D8 /* Sources */, 318 | 2C9E645E362AEC713885EDAAA12E81CB /* Frameworks */, 319 | AA49EC3257E4EE27FC0BB8867F550557 /* Resources */, 320 | ); 321 | buildRules = ( 322 | ); 323 | dependencies = ( 324 | ); 325 | name = WorldMotion; 326 | productName = WorldMotion; 327 | productReference = A53B84D278CC7351670EABC51AD0EBFA /* WorldMotion.framework */; 328 | productType = "com.apple.product-type.framework"; 329 | }; 330 | /* End PBXNativeTarget section */ 331 | 332 | /* Begin PBXProject section */ 333 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 334 | isa = PBXProject; 335 | attributes = { 336 | LastSwiftUpdateCheck = 1100; 337 | LastUpgradeCheck = 1100; 338 | }; 339 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 340 | compatibilityVersion = "Xcode 3.2"; 341 | developmentRegion = en; 342 | hasScannedForEncodings = 0; 343 | knownRegions = ( 344 | en, 345 | Base, 346 | ); 347 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 348 | productRefGroup = 0202AE275D1A567E90FE7299415B8FFE /* Products */; 349 | projectDirPath = ""; 350 | projectRoot = ""; 351 | targets = ( 352 | 9B4F5EC7AF38972271F5699844E93EAC /* Pods-WorldMotion_Example */, 353 | A919F007B7970DB79B7F16326BD09428 /* Pods-WorldMotion_Tests */, 354 | CB19C401982C1F828CD5C6FE0AB89356 /* WorldMotion */, 355 | ); 356 | }; 357 | /* End PBXProject section */ 358 | 359 | /* Begin PBXResourcesBuildPhase section */ 360 | 3067B92B45ADD6D5B730374EDDCE34A2 /* Resources */ = { 361 | isa = PBXResourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | 69FEAB95BAAC4EDECDB78993B53C73CC /* Resources */ = { 368 | isa = PBXResourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | AA49EC3257E4EE27FC0BB8867F550557 /* Resources */ = { 375 | isa = PBXResourcesBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | ); 379 | runOnlyForDeploymentPostprocessing = 0; 380 | }; 381 | /* End PBXResourcesBuildPhase section */ 382 | 383 | /* Begin PBXSourcesBuildPhase section */ 384 | 1C5992AC4CFF0FC850845120167D799E /* Sources */ = { 385 | isa = PBXSourcesBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | BB427B60755615719FE047C1B95DDD07 /* Pods-WorldMotion_Example-dummy.m in Sources */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | A1C940959DDF00EE32F00090C21AF7D8 /* Sources */ = { 393 | isa = PBXSourcesBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | 40A2840B264B2A7A0055AAB6 /* Double+Degree.swift in Sources */, 397 | 40A28400264886B20055AAB6 /* Array+Matrix.swift in Sources */, 398 | 40A284022648885E0055AAB6 /* EarthCoordinate.swift in Sources */, 399 | 40A283FE26486FCA0055AAB6 /* RotationMatrix.swift in Sources */, 400 | 2A27D266913D5924141464E8B3849FFF /* WorldMotion-dummy.m in Sources */, 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | }; 404 | F16C2FEB51FFD00839E11106C6F438BD /* Sources */ = { 405 | isa = PBXSourcesBuildPhase; 406 | buildActionMask = 2147483647; 407 | files = ( 408 | 439520CD7E7794E0DF31A84336E14B7A /* Pods-WorldMotion_Tests-dummy.m in Sources */, 409 | ); 410 | runOnlyForDeploymentPostprocessing = 0; 411 | }; 412 | /* End PBXSourcesBuildPhase section */ 413 | 414 | /* Begin PBXTargetDependency section */ 415 | 026EBDACE2D776E77C23067B50F35DDD /* PBXTargetDependency */ = { 416 | isa = PBXTargetDependency; 417 | name = "Pods-WorldMotion_Example"; 418 | target = 9B4F5EC7AF38972271F5699844E93EAC /* Pods-WorldMotion_Example */; 419 | targetProxy = B821CD1018D1AA65B71911290420B4E2 /* PBXContainerItemProxy */; 420 | }; 421 | 55A15D0258DB328A8271F392FA3D8C64 /* PBXTargetDependency */ = { 422 | isa = PBXTargetDependency; 423 | name = WorldMotion; 424 | target = CB19C401982C1F828CD5C6FE0AB89356 /* WorldMotion */; 425 | targetProxy = 147B144C8ED494FD83662128070376FA /* PBXContainerItemProxy */; 426 | }; 427 | /* End PBXTargetDependency section */ 428 | 429 | /* Begin XCBuildConfiguration section */ 430 | 028FFE22C8403EB14A1CFE71FE8FB4CA /* Release */ = { 431 | isa = XCBuildConfiguration; 432 | baseConfigurationReference = 4DA242C2D6FC41F01C3E813C191A3953 /* Pods-WorldMotion_Example.release.xcconfig */; 433 | buildSettings = { 434 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 435 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 436 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 437 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 438 | CURRENT_PROJECT_VERSION = 1; 439 | DEFINES_MODULE = YES; 440 | DYLIB_COMPATIBILITY_VERSION = 1; 441 | DYLIB_CURRENT_VERSION = 1; 442 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 443 | INFOPLIST_FILE = "Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-Info.plist"; 444 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 445 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 446 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 447 | MACH_O_TYPE = staticlib; 448 | MODULEMAP_FILE = "Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example.modulemap"; 449 | OTHER_LDFLAGS = ""; 450 | OTHER_LIBTOOLFLAGS = ""; 451 | PODS_ROOT = "$(SRCROOT)"; 452 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 453 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 454 | SDKROOT = iphoneos; 455 | SKIP_INSTALL = YES; 456 | TARGETED_DEVICE_FAMILY = "1,2"; 457 | VALIDATE_PRODUCT = YES; 458 | VERSIONING_SYSTEM = "apple-generic"; 459 | VERSION_INFO_PREFIX = ""; 460 | }; 461 | name = Release; 462 | }; 463 | 25AD9454612BF454A1E3DC4CD4FA8C6D /* Debug */ = { 464 | isa = XCBuildConfiguration; 465 | buildSettings = { 466 | ALWAYS_SEARCH_USER_PATHS = NO; 467 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 468 | CLANG_ANALYZER_NONNULL = YES; 469 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 470 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 471 | CLANG_CXX_LIBRARY = "libc++"; 472 | CLANG_ENABLE_MODULES = YES; 473 | CLANG_ENABLE_OBJC_ARC = YES; 474 | CLANG_ENABLE_OBJC_WEAK = YES; 475 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 476 | CLANG_WARN_BOOL_CONVERSION = YES; 477 | CLANG_WARN_COMMA = YES; 478 | CLANG_WARN_CONSTANT_CONVERSION = YES; 479 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 480 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 481 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 482 | CLANG_WARN_EMPTY_BODY = YES; 483 | CLANG_WARN_ENUM_CONVERSION = YES; 484 | CLANG_WARN_INFINITE_RECURSION = YES; 485 | CLANG_WARN_INT_CONVERSION = YES; 486 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 487 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 488 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 489 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 490 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 491 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 492 | CLANG_WARN_STRICT_PROTOTYPES = YES; 493 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 494 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 495 | CLANG_WARN_UNREACHABLE_CODE = YES; 496 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 497 | COPY_PHASE_STRIP = NO; 498 | DEBUG_INFORMATION_FORMAT = dwarf; 499 | ENABLE_STRICT_OBJC_MSGSEND = YES; 500 | ENABLE_TESTABILITY = YES; 501 | GCC_C_LANGUAGE_STANDARD = gnu11; 502 | GCC_DYNAMIC_NO_PIC = NO; 503 | GCC_NO_COMMON_BLOCKS = YES; 504 | GCC_OPTIMIZATION_LEVEL = 0; 505 | GCC_PREPROCESSOR_DEFINITIONS = ( 506 | "POD_CONFIGURATION_DEBUG=1", 507 | "DEBUG=1", 508 | "$(inherited)", 509 | ); 510 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 511 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 512 | GCC_WARN_UNDECLARED_SELECTOR = YES; 513 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 514 | GCC_WARN_UNUSED_FUNCTION = YES; 515 | GCC_WARN_UNUSED_VARIABLE = YES; 516 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 517 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 518 | MTL_FAST_MATH = YES; 519 | ONLY_ACTIVE_ARCH = YES; 520 | PRODUCT_NAME = "$(TARGET_NAME)"; 521 | STRIP_INSTALLED_PRODUCT = NO; 522 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 523 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 524 | SWIFT_VERSION = 5.0; 525 | SYMROOT = "${SRCROOT}/../build"; 526 | }; 527 | name = Debug; 528 | }; 529 | 30BEF7552929505A7BEC2B1175A13334 /* Debug */ = { 530 | isa = XCBuildConfiguration; 531 | baseConfigurationReference = A690584113929106C582218D0D82F030 /* Pods-WorldMotion_Tests.debug.xcconfig */; 532 | buildSettings = { 533 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 534 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 535 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 536 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 537 | CURRENT_PROJECT_VERSION = 1; 538 | DEFINES_MODULE = YES; 539 | DYLIB_COMPATIBILITY_VERSION = 1; 540 | DYLIB_CURRENT_VERSION = 1; 541 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 542 | INFOPLIST_FILE = "Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests-Info.plist"; 543 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 544 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 546 | MACH_O_TYPE = staticlib; 547 | MODULEMAP_FILE = "Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests.modulemap"; 548 | OTHER_LDFLAGS = ""; 549 | OTHER_LIBTOOLFLAGS = ""; 550 | PODS_ROOT = "$(SRCROOT)"; 551 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 552 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 553 | SDKROOT = iphoneos; 554 | SKIP_INSTALL = YES; 555 | TARGETED_DEVICE_FAMILY = "1,2"; 556 | VERSIONING_SYSTEM = "apple-generic"; 557 | VERSION_INFO_PREFIX = ""; 558 | }; 559 | name = Debug; 560 | }; 561 | 7C6F94833632F7FD42466DC42911CE2A /* Debug */ = { 562 | isa = XCBuildConfiguration; 563 | baseConfigurationReference = A1F563EC77AA40703464209E3408439D /* Pods-WorldMotion_Example.debug.xcconfig */; 564 | buildSettings = { 565 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 566 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 567 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 568 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 569 | CURRENT_PROJECT_VERSION = 1; 570 | DEFINES_MODULE = YES; 571 | DYLIB_COMPATIBILITY_VERSION = 1; 572 | DYLIB_CURRENT_VERSION = 1; 573 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 574 | INFOPLIST_FILE = "Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-Info.plist"; 575 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 576 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 577 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 578 | MACH_O_TYPE = staticlib; 579 | MODULEMAP_FILE = "Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example.modulemap"; 580 | OTHER_LDFLAGS = ""; 581 | OTHER_LIBTOOLFLAGS = ""; 582 | PODS_ROOT = "$(SRCROOT)"; 583 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 584 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 585 | SDKROOT = iphoneos; 586 | SKIP_INSTALL = YES; 587 | TARGETED_DEVICE_FAMILY = "1,2"; 588 | VERSIONING_SYSTEM = "apple-generic"; 589 | VERSION_INFO_PREFIX = ""; 590 | }; 591 | name = Debug; 592 | }; 593 | 89976CE034D6E68207E55BABAC08F496 /* Release */ = { 594 | isa = XCBuildConfiguration; 595 | baseConfigurationReference = 4362CF53CBF5EA1570F3A6017EC4D70E /* Pods-WorldMotion_Tests.release.xcconfig */; 596 | buildSettings = { 597 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 598 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 599 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 600 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 601 | CURRENT_PROJECT_VERSION = 1; 602 | DEFINES_MODULE = YES; 603 | DYLIB_COMPATIBILITY_VERSION = 1; 604 | DYLIB_CURRENT_VERSION = 1; 605 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 606 | INFOPLIST_FILE = "Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests-Info.plist"; 607 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 608 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 609 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 610 | MACH_O_TYPE = staticlib; 611 | MODULEMAP_FILE = "Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests.modulemap"; 612 | OTHER_LDFLAGS = ""; 613 | OTHER_LIBTOOLFLAGS = ""; 614 | PODS_ROOT = "$(SRCROOT)"; 615 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 616 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 617 | SDKROOT = iphoneos; 618 | SKIP_INSTALL = YES; 619 | TARGETED_DEVICE_FAMILY = "1,2"; 620 | VALIDATE_PRODUCT = YES; 621 | VERSIONING_SYSTEM = "apple-generic"; 622 | VERSION_INFO_PREFIX = ""; 623 | }; 624 | name = Release; 625 | }; 626 | B8A3EAA772D71FFF91EF033AD6754A31 /* Release */ = { 627 | isa = XCBuildConfiguration; 628 | baseConfigurationReference = A8C26976F514DE800275DF6553427AC6 /* WorldMotion.release.xcconfig */; 629 | buildSettings = { 630 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 631 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 632 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 633 | CURRENT_PROJECT_VERSION = 1; 634 | DEFINES_MODULE = YES; 635 | DYLIB_COMPATIBILITY_VERSION = 1; 636 | DYLIB_CURRENT_VERSION = 1; 637 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 638 | GCC_PREFIX_HEADER = "Target Support Files/WorldMotion/WorldMotion-prefix.pch"; 639 | INFOPLIST_FILE = "Target Support Files/WorldMotion/WorldMotion-Info.plist"; 640 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 641 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 642 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 643 | MODULEMAP_FILE = "Target Support Files/WorldMotion/WorldMotion.modulemap"; 644 | PRODUCT_MODULE_NAME = WorldMotion; 645 | PRODUCT_NAME = WorldMotion; 646 | SDKROOT = iphoneos; 647 | SKIP_INSTALL = YES; 648 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 649 | SWIFT_VERSION = 4.0; 650 | TARGETED_DEVICE_FAMILY = "1,2"; 651 | VALIDATE_PRODUCT = YES; 652 | VERSIONING_SYSTEM = "apple-generic"; 653 | VERSION_INFO_PREFIX = ""; 654 | }; 655 | name = Release; 656 | }; 657 | CA547D2C7E9A8A153DC2B27FBE00B112 /* Release */ = { 658 | isa = XCBuildConfiguration; 659 | buildSettings = { 660 | ALWAYS_SEARCH_USER_PATHS = NO; 661 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 662 | CLANG_ANALYZER_NONNULL = YES; 663 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 664 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 665 | CLANG_CXX_LIBRARY = "libc++"; 666 | CLANG_ENABLE_MODULES = YES; 667 | CLANG_ENABLE_OBJC_ARC = YES; 668 | CLANG_ENABLE_OBJC_WEAK = YES; 669 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 670 | CLANG_WARN_BOOL_CONVERSION = YES; 671 | CLANG_WARN_COMMA = YES; 672 | CLANG_WARN_CONSTANT_CONVERSION = YES; 673 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 674 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 675 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 676 | CLANG_WARN_EMPTY_BODY = YES; 677 | CLANG_WARN_ENUM_CONVERSION = YES; 678 | CLANG_WARN_INFINITE_RECURSION = YES; 679 | CLANG_WARN_INT_CONVERSION = YES; 680 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 681 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 682 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 683 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 684 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 685 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 686 | CLANG_WARN_STRICT_PROTOTYPES = YES; 687 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 688 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 689 | CLANG_WARN_UNREACHABLE_CODE = YES; 690 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 691 | COPY_PHASE_STRIP = NO; 692 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 693 | ENABLE_NS_ASSERTIONS = NO; 694 | ENABLE_STRICT_OBJC_MSGSEND = YES; 695 | GCC_C_LANGUAGE_STANDARD = gnu11; 696 | GCC_NO_COMMON_BLOCKS = YES; 697 | GCC_PREPROCESSOR_DEFINITIONS = ( 698 | "POD_CONFIGURATION_RELEASE=1", 699 | "$(inherited)", 700 | ); 701 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 702 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 703 | GCC_WARN_UNDECLARED_SELECTOR = YES; 704 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 705 | GCC_WARN_UNUSED_FUNCTION = YES; 706 | GCC_WARN_UNUSED_VARIABLE = YES; 707 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 708 | MTL_ENABLE_DEBUG_INFO = NO; 709 | MTL_FAST_MATH = YES; 710 | PRODUCT_NAME = "$(TARGET_NAME)"; 711 | STRIP_INSTALLED_PRODUCT = NO; 712 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 713 | SWIFT_VERSION = 5.0; 714 | SYMROOT = "${SRCROOT}/../build"; 715 | }; 716 | name = Release; 717 | }; 718 | EA515E308A4101A2B8D31AE6829B6299 /* Debug */ = { 719 | isa = XCBuildConfiguration; 720 | baseConfigurationReference = CB1EA2DA456178F7BC24976B29647C0F /* WorldMotion.debug.xcconfig */; 721 | buildSettings = { 722 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 723 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 724 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 725 | CURRENT_PROJECT_VERSION = 1; 726 | DEFINES_MODULE = YES; 727 | DYLIB_COMPATIBILITY_VERSION = 1; 728 | DYLIB_CURRENT_VERSION = 1; 729 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 730 | GCC_PREFIX_HEADER = "Target Support Files/WorldMotion/WorldMotion-prefix.pch"; 731 | INFOPLIST_FILE = "Target Support Files/WorldMotion/WorldMotion-Info.plist"; 732 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 733 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 734 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 735 | MODULEMAP_FILE = "Target Support Files/WorldMotion/WorldMotion.modulemap"; 736 | PRODUCT_MODULE_NAME = WorldMotion; 737 | PRODUCT_NAME = WorldMotion; 738 | SDKROOT = iphoneos; 739 | SKIP_INSTALL = YES; 740 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 741 | SWIFT_VERSION = 4.0; 742 | TARGETED_DEVICE_FAMILY = "1,2"; 743 | VERSIONING_SYSTEM = "apple-generic"; 744 | VERSION_INFO_PREFIX = ""; 745 | }; 746 | name = Debug; 747 | }; 748 | /* End XCBuildConfiguration section */ 749 | 750 | /* Begin XCConfigurationList section */ 751 | 2D29A67853B8008C321B6CD51EDC155F /* Build configuration list for PBXNativeTarget "Pods-WorldMotion_Example" */ = { 752 | isa = XCConfigurationList; 753 | buildConfigurations = ( 754 | 7C6F94833632F7FD42466DC42911CE2A /* Debug */, 755 | 028FFE22C8403EB14A1CFE71FE8FB4CA /* Release */, 756 | ); 757 | defaultConfigurationIsVisible = 0; 758 | defaultConfigurationName = Release; 759 | }; 760 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 761 | isa = XCConfigurationList; 762 | buildConfigurations = ( 763 | 25AD9454612BF454A1E3DC4CD4FA8C6D /* Debug */, 764 | CA547D2C7E9A8A153DC2B27FBE00B112 /* Release */, 765 | ); 766 | defaultConfigurationIsVisible = 0; 767 | defaultConfigurationName = Release; 768 | }; 769 | 67FE2D73648989797BE5F90550A902D8 /* Build configuration list for PBXNativeTarget "WorldMotion" */ = { 770 | isa = XCConfigurationList; 771 | buildConfigurations = ( 772 | EA515E308A4101A2B8D31AE6829B6299 /* Debug */, 773 | B8A3EAA772D71FFF91EF033AD6754A31 /* Release */, 774 | ); 775 | defaultConfigurationIsVisible = 0; 776 | defaultConfigurationName = Release; 777 | }; 778 | 9A0A861773DA1D558DFB813F2BF9A7C9 /* Build configuration list for PBXNativeTarget "Pods-WorldMotion_Tests" */ = { 779 | isa = XCConfigurationList; 780 | buildConfigurations = ( 781 | 30BEF7552929505A7BEC2B1175A13334 /* Debug */, 782 | 89976CE034D6E68207E55BABAC08F496 /* Release */, 783 | ); 784 | defaultConfigurationIsVisible = 0; 785 | defaultConfigurationName = Release; 786 | }; 787 | /* End XCConfigurationList section */ 788 | }; 789 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 790 | } 791 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## WorldMotion 5 | 6 | Copyright (c) 2021 ahmed.almasri@ymail.com 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2021 ahmed.almasri@ymail.com <ahmed.almasri@ymail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | WorldMotion 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_WorldMotion_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_WorldMotion_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | BCSYMBOLMAP_DIR="BCSymbolMaps" 23 | 24 | 25 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 26 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 27 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 28 | 29 | # Copies and strips a vendored framework 30 | install_framework() 31 | { 32 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 33 | local source="${BUILT_PRODUCTS_DIR}/$1" 34 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 35 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 36 | elif [ -r "$1" ]; then 37 | local source="$1" 38 | fi 39 | 40 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 41 | 42 | if [ -L "${source}" ]; then 43 | echo "Symlinked..." 44 | source="$(readlink "${source}")" 45 | fi 46 | 47 | if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then 48 | # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied 49 | find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do 50 | echo "Installing $f" 51 | install_bcsymbolmap "$f" "$destination" 52 | rm "$f" 53 | done 54 | rmdir "${source}/${BCSYMBOLMAP_DIR}" 55 | fi 56 | 57 | # Use filter instead of exclude so missing patterns don't throw errors. 58 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 59 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 60 | 61 | local basename 62 | basename="$(basename -s .framework "$1")" 63 | binary="${destination}/${basename}.framework/${basename}" 64 | 65 | if ! [ -r "$binary" ]; then 66 | binary="${destination}/${basename}" 67 | elif [ -L "${binary}" ]; then 68 | echo "Destination binary is symlinked..." 69 | dirname="$(dirname "${binary}")" 70 | binary="${dirname}/$(readlink "${binary}")" 71 | fi 72 | 73 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 74 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 75 | strip_invalid_archs "$binary" 76 | fi 77 | 78 | # Resign the code if required by the build settings to avoid unstable apps 79 | code_sign_if_enabled "${destination}/$(basename "$1")" 80 | 81 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 82 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 83 | local swift_runtime_libs 84 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 85 | for lib in $swift_runtime_libs; do 86 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 87 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 88 | code_sign_if_enabled "${destination}/${lib}" 89 | done 90 | fi 91 | } 92 | # Copies and strips a vendored dSYM 93 | install_dsym() { 94 | local source="$1" 95 | warn_missing_arch=${2:-true} 96 | if [ -r "$source" ]; then 97 | # Copy the dSYM into the targets temp dir. 98 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 99 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 100 | 101 | local basename 102 | basename="$(basename -s .dSYM "$source")" 103 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 104 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 105 | 106 | # Strip invalid architectures from the dSYM. 107 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 108 | strip_invalid_archs "$binary" "$warn_missing_arch" 109 | fi 110 | if [[ $STRIP_BINARY_RETVAL == 0 ]]; then 111 | # Move the stripped file into its final destination. 112 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 113 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 114 | else 115 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 116 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 117 | fi 118 | fi 119 | } 120 | 121 | # Used as a return value for each invocation of `strip_invalid_archs` function. 122 | STRIP_BINARY_RETVAL=0 123 | 124 | # Strip invalid architectures 125 | strip_invalid_archs() { 126 | binary="$1" 127 | warn_missing_arch=${2:-true} 128 | # Get architectures for current target binary 129 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 130 | # Intersect them with the architectures we are building for 131 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 132 | # If there are no archs supported by this binary then warn the user 133 | if [[ -z "$intersected_archs" ]]; then 134 | if [[ "$warn_missing_arch" == "true" ]]; then 135 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 136 | fi 137 | STRIP_BINARY_RETVAL=1 138 | return 139 | fi 140 | stripped="" 141 | for arch in $binary_archs; do 142 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 143 | # Strip non-valid architectures in-place 144 | lipo -remove "$arch" -output "$binary" "$binary" 145 | stripped="$stripped $arch" 146 | fi 147 | done 148 | if [[ "$stripped" ]]; then 149 | echo "Stripped $binary of architectures:$stripped" 150 | fi 151 | STRIP_BINARY_RETVAL=0 152 | } 153 | 154 | # Copies the bcsymbolmap files of a vendored framework 155 | install_bcsymbolmap() { 156 | local bcsymbolmap_path="$1" 157 | local destination="${BUILT_PRODUCTS_DIR}" 158 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 159 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 160 | } 161 | 162 | # Signs a framework with the provided identity 163 | code_sign_if_enabled() { 164 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 165 | # Use the current code_sign_identity 166 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 167 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 168 | 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | code_sign_cmd="$code_sign_cmd &" 171 | fi 172 | echo "$code_sign_cmd" 173 | eval "$code_sign_cmd" 174 | fi 175 | } 176 | 177 | if [[ "$CONFIGURATION" == "Debug" ]]; then 178 | install_framework "${BUILT_PRODUCTS_DIR}/WorldMotion/WorldMotion.framework" 179 | fi 180 | if [[ "$CONFIGURATION" == "Release" ]]; then 181 | install_framework "${BUILT_PRODUCTS_DIR}/WorldMotion/WorldMotion.framework" 182 | fi 183 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 184 | wait 185 | fi 186 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_WorldMotion_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_WorldMotion_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion/WorldMotion.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | OTHER_LDFLAGS = $(inherited) -framework "WorldMotion" 8 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 9 | PODS_BUILD_DIR = ${BUILD_DIR} 10 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 12 | PODS_ROOT = ${SRCROOT}/Pods 13 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 14 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_WorldMotion_Example { 2 | umbrella header "Pods-WorldMotion_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion/WorldMotion.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | OTHER_LDFLAGS = $(inherited) -framework "WorldMotion" 8 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 9 | PODS_BUILD_DIR = ${BUILD_DIR} 10 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 12 | PODS_ROOT = ${SRCROOT}/Pods 13 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 14 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests-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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_WorldMotion_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_WorldMotion_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_WorldMotion_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_WorldMotion_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion/WorldMotion.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "WorldMotion" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_WorldMotion_Tests { 2 | umbrella header "Pods-WorldMotion_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion/WorldMotion.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "WorldMotion" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WorldMotion/WorldMotion-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 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WorldMotion/WorldMotion-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_WorldMotion : NSObject 3 | @end 4 | @implementation PodsDummy_WorldMotion 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WorldMotion/WorldMotion-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WorldMotion/WorldMotion-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double WorldMotionVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char WorldMotionVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WorldMotion/WorldMotion.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WorldMotion/WorldMotion.modulemap: -------------------------------------------------------------------------------- 1 | framework module WorldMotion { 2 | umbrella header "WorldMotion-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/WorldMotion/WorldMotion.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WorldMotion 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Tests/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 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import WorldMotion 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Example/WorldMotion.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 034BCDA38A759931E8116FD9 /* Pods_WorldMotion_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E10837404B8D69BB9F43419 /* Pods_WorldMotion_Tests.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | D66D024A75E5034F75862524 /* Pods_WorldMotion_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F41AC7F4847519E16ABE888B /* Pods_WorldMotion_Example.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = WorldMotion; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 0C9B735CB1ED0CE07B818F4D /* WorldMotion.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = WorldMotion.podspec; path = ../WorldMotion.podspec; sourceTree = ""; }; 32 | 12341CDE9DDF86FC657EB197 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 33 | 1FF416A288549002959CCA4D /* Pods-WorldMotion_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WorldMotion_Example.release.xcconfig"; path = "Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example.release.xcconfig"; sourceTree = ""; }; 34 | 2E10837404B8D69BB9F43419 /* Pods_WorldMotion_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WorldMotion_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD01AFB9204008FA782 /* WorldMotion_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WorldMotion_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* WorldMotion_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WorldMotion_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 6A2E7BFE02496E42BE512F19 /* Pods-WorldMotion_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WorldMotion_Example.debug.xcconfig"; path = "Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example.debug.xcconfig"; sourceTree = ""; }; 46 | 730B26A88D2694FE77CA0512 /* Pods-WorldMotion_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WorldMotion_Tests.debug.xcconfig"; path = "Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests.debug.xcconfig"; sourceTree = ""; }; 47 | A7C6CEEC62736801B7673E0B /* Pods-WorldMotion_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WorldMotion_Tests.release.xcconfig"; path = "Target Support Files/Pods-WorldMotion_Tests/Pods-WorldMotion_Tests.release.xcconfig"; sourceTree = ""; }; 48 | F41AC7F4847519E16ABE888B /* Pods_WorldMotion_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WorldMotion_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | FF68B3C4FF439C0A056EA4E1 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | D66D024A75E5034F75862524 /* Pods_WorldMotion_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 034BCDA38A759931E8116FD9 /* Pods_WorldMotion_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 4CFA65AA28BC4465917B1B6F /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 6A2E7BFE02496E42BE512F19 /* Pods-WorldMotion_Example.debug.xcconfig */, 76 | 1FF416A288549002959CCA4D /* Pods-WorldMotion_Example.release.xcconfig */, 77 | 730B26A88D2694FE77CA0512 /* Pods-WorldMotion_Tests.debug.xcconfig */, 78 | A7C6CEEC62736801B7673E0B /* Pods-WorldMotion_Tests.release.xcconfig */, 79 | ); 80 | path = Pods; 81 | sourceTree = ""; 82 | }; 83 | 607FACC71AFB9204008FA782 = { 84 | isa = PBXGroup; 85 | children = ( 86 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 87 | 607FACD21AFB9204008FA782 /* Example for WorldMotion */, 88 | 607FACE81AFB9204008FA782 /* Tests */, 89 | 607FACD11AFB9204008FA782 /* Products */, 90 | 4CFA65AA28BC4465917B1B6F /* Pods */, 91 | 9021F3FD5AD9B524A147C838 /* Frameworks */, 92 | ); 93 | sourceTree = ""; 94 | }; 95 | 607FACD11AFB9204008FA782 /* Products */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 607FACD01AFB9204008FA782 /* WorldMotion_Example.app */, 99 | 607FACE51AFB9204008FA782 /* WorldMotion_Tests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 607FACD21AFB9204008FA782 /* Example for WorldMotion */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 108 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 109 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 110 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 111 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 112 | 607FACD31AFB9204008FA782 /* Supporting Files */, 113 | ); 114 | name = "Example for WorldMotion"; 115 | path = WorldMotion; 116 | sourceTree = ""; 117 | }; 118 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 607FACD41AFB9204008FA782 /* Info.plist */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | 607FACE81AFB9204008FA782 /* Tests */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 130 | 607FACE91AFB9204008FA782 /* Supporting Files */, 131 | ); 132 | path = Tests; 133 | sourceTree = ""; 134 | }; 135 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACEA1AFB9204008FA782 /* Info.plist */, 139 | ); 140 | name = "Supporting Files"; 141 | sourceTree = ""; 142 | }; 143 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 0C9B735CB1ED0CE07B818F4D /* WorldMotion.podspec */, 147 | 12341CDE9DDF86FC657EB197 /* README.md */, 148 | FF68B3C4FF439C0A056EA4E1 /* LICENSE */, 149 | ); 150 | name = "Podspec Metadata"; 151 | sourceTree = ""; 152 | }; 153 | 9021F3FD5AD9B524A147C838 /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | F41AC7F4847519E16ABE888B /* Pods_WorldMotion_Example.framework */, 157 | 2E10837404B8D69BB9F43419 /* Pods_WorldMotion_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* WorldMotion_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "WorldMotion_Example" */; 168 | buildPhases = ( 169 | A784545E09A69F6658E91ECD /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 59B7FE0EB8743CD42A1A045A /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = WorldMotion_Example; 180 | productName = WorldMotion; 181 | productReference = 607FACD01AFB9204008FA782 /* WorldMotion_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* WorldMotion_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "WorldMotion_Tests" */; 187 | buildPhases = ( 188 | 799AC9018BB507340004ECF4 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = WorldMotion_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* WorldMotion_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 0830; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | DevelopmentTeam = PU9LT2X4AS; 216 | LastSwiftMigration = 0900; 217 | }; 218 | 607FACE41AFB9204008FA782 = { 219 | CreatedOnToolsVersion = 6.3.1; 220 | DevelopmentTeam = PU9LT2X4AS; 221 | LastSwiftMigration = 0900; 222 | TestTargetID = 607FACCF1AFB9204008FA782; 223 | }; 224 | }; 225 | }; 226 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "WorldMotion" */; 227 | compatibilityVersion = "Xcode 3.2"; 228 | developmentRegion = English; 229 | hasScannedForEncodings = 0; 230 | knownRegions = ( 231 | English, 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 607FACC71AFB9204008FA782; 236 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 607FACCF1AFB9204008FA782 /* WorldMotion_Example */, 241 | 607FACE41AFB9204008FA782 /* WorldMotion_Tests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 607FACCE1AFB9204008FA782 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 252 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 253 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 607FACE31AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 59B7FE0EB8743CD42A1A045A /* [CP] Embed Pods Frameworks */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | "${PODS_ROOT}/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-frameworks.sh", 274 | "${BUILT_PRODUCTS_DIR}/WorldMotion/WorldMotion.framework", 275 | ); 276 | name = "[CP] Embed Pods Frameworks"; 277 | outputPaths = ( 278 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WorldMotion.framework", 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | shellPath = /bin/sh; 282 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-WorldMotion_Example/Pods-WorldMotion_Example-frameworks.sh\"\n"; 283 | showEnvVarsInLog = 0; 284 | }; 285 | 799AC9018BB507340004ECF4 /* [CP] Check Pods Manifest.lock */ = { 286 | isa = PBXShellScriptBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | ); 290 | inputFileListPaths = ( 291 | ); 292 | inputPaths = ( 293 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 294 | "${PODS_ROOT}/Manifest.lock", 295 | ); 296 | name = "[CP] Check Pods Manifest.lock"; 297 | outputFileListPaths = ( 298 | ); 299 | outputPaths = ( 300 | "$(DERIVED_FILE_DIR)/Pods-WorldMotion_Tests-checkManifestLockResult.txt", 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | shellPath = /bin/sh; 304 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 305 | showEnvVarsInLog = 0; 306 | }; 307 | A784545E09A69F6658E91ECD /* [CP] Check Pods Manifest.lock */ = { 308 | isa = PBXShellScriptBuildPhase; 309 | buildActionMask = 2147483647; 310 | files = ( 311 | ); 312 | inputFileListPaths = ( 313 | ); 314 | inputPaths = ( 315 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 316 | "${PODS_ROOT}/Manifest.lock", 317 | ); 318 | name = "[CP] Check Pods Manifest.lock"; 319 | outputFileListPaths = ( 320 | ); 321 | outputPaths = ( 322 | "$(DERIVED_FILE_DIR)/Pods-WorldMotion_Example-checkManifestLockResult.txt", 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | shellPath = /bin/sh; 326 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 327 | showEnvVarsInLog = 0; 328 | }; 329 | /* End PBXShellScriptBuildPhase section */ 330 | 331 | /* Begin PBXSourcesBuildPhase section */ 332 | 607FACCC1AFB9204008FA782 /* Sources */ = { 333 | isa = PBXSourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 337 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | 607FACE11AFB9204008FA782 /* Sources */ = { 342 | isa = PBXSourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | /* End PBXSourcesBuildPhase section */ 350 | 351 | /* Begin PBXTargetDependency section */ 352 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 353 | isa = PBXTargetDependency; 354 | target = 607FACCF1AFB9204008FA782 /* WorldMotion_Example */; 355 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 356 | }; 357 | /* End PBXTargetDependency section */ 358 | 359 | /* Begin PBXVariantGroup section */ 360 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 361 | isa = PBXVariantGroup; 362 | children = ( 363 | 607FACDA1AFB9204008FA782 /* Base */, 364 | ); 365 | name = Main.storyboard; 366 | sourceTree = ""; 367 | }; 368 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 369 | isa = PBXVariantGroup; 370 | children = ( 371 | 607FACDF1AFB9204008FA782 /* Base */, 372 | ); 373 | name = LaunchScreen.xib; 374 | sourceTree = ""; 375 | }; 376 | /* End PBXVariantGroup section */ 377 | 378 | /* Begin XCBuildConfiguration section */ 379 | 607FACED1AFB9204008FA782 /* Debug */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | ALWAYS_SEARCH_USER_PATHS = NO; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 388 | CLANG_WARN_BOOL_CONVERSION = YES; 389 | CLANG_WARN_COMMA = YES; 390 | CLANG_WARN_CONSTANT_CONVERSION = YES; 391 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 392 | CLANG_WARN_EMPTY_BODY = YES; 393 | CLANG_WARN_ENUM_CONVERSION = YES; 394 | CLANG_WARN_INFINITE_RECURSION = YES; 395 | CLANG_WARN_INT_CONVERSION = YES; 396 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNREACHABLE_CODE = YES; 403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 407 | ENABLE_STRICT_OBJC_MSGSEND = YES; 408 | ENABLE_TESTABILITY = YES; 409 | GCC_C_LANGUAGE_STANDARD = gnu99; 410 | GCC_DYNAMIC_NO_PIC = NO; 411 | GCC_NO_COMMON_BLOCKS = YES; 412 | GCC_OPTIMIZATION_LEVEL = 0; 413 | GCC_PREPROCESSOR_DEFINITIONS = ( 414 | "DEBUG=1", 415 | "$(inherited)", 416 | ); 417 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 418 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 419 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 420 | GCC_WARN_UNDECLARED_SELECTOR = YES; 421 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 422 | GCC_WARN_UNUSED_FUNCTION = YES; 423 | GCC_WARN_UNUSED_VARIABLE = YES; 424 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 425 | MTL_ENABLE_DEBUG_INFO = YES; 426 | ONLY_ACTIVE_ARCH = YES; 427 | SDKROOT = iphoneos; 428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 429 | }; 430 | name = Debug; 431 | }; 432 | 607FACEE1AFB9204008FA782 /* Release */ = { 433 | isa = XCBuildConfiguration; 434 | buildSettings = { 435 | ALWAYS_SEARCH_USER_PATHS = NO; 436 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 437 | CLANG_CXX_LIBRARY = "libc++"; 438 | CLANG_ENABLE_MODULES = YES; 439 | CLANG_ENABLE_OBJC_ARC = YES; 440 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 441 | CLANG_WARN_BOOL_CONVERSION = YES; 442 | CLANG_WARN_COMMA = YES; 443 | CLANG_WARN_CONSTANT_CONVERSION = YES; 444 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 445 | CLANG_WARN_EMPTY_BODY = YES; 446 | CLANG_WARN_ENUM_CONVERSION = YES; 447 | CLANG_WARN_INFINITE_RECURSION = YES; 448 | CLANG_WARN_INT_CONVERSION = YES; 449 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 450 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 451 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 452 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 453 | CLANG_WARN_STRICT_PROTOTYPES = YES; 454 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 455 | CLANG_WARN_UNREACHABLE_CODE = YES; 456 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 457 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 458 | COPY_PHASE_STRIP = NO; 459 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 460 | ENABLE_NS_ASSERTIONS = NO; 461 | ENABLE_STRICT_OBJC_MSGSEND = YES; 462 | GCC_C_LANGUAGE_STANDARD = gnu99; 463 | GCC_NO_COMMON_BLOCKS = YES; 464 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 465 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 466 | GCC_WARN_UNDECLARED_SELECTOR = YES; 467 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 468 | GCC_WARN_UNUSED_FUNCTION = YES; 469 | GCC_WARN_UNUSED_VARIABLE = YES; 470 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 471 | MTL_ENABLE_DEBUG_INFO = NO; 472 | SDKROOT = iphoneos; 473 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 474 | VALIDATE_PRODUCT = YES; 475 | }; 476 | name = Release; 477 | }; 478 | 607FACF01AFB9204008FA782 /* Debug */ = { 479 | isa = XCBuildConfiguration; 480 | baseConfigurationReference = 6A2E7BFE02496E42BE512F19 /* Pods-WorldMotion_Example.debug.xcconfig */; 481 | buildSettings = { 482 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 483 | DEVELOPMENT_TEAM = PU9LT2X4AS; 484 | INFOPLIST_FILE = WorldMotion/Info.plist; 485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 486 | MODULE_NAME = ExampleApp; 487 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 488 | PRODUCT_NAME = "$(TARGET_NAME)"; 489 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 490 | SWIFT_VERSION = 4.0; 491 | }; 492 | name = Debug; 493 | }; 494 | 607FACF11AFB9204008FA782 /* Release */ = { 495 | isa = XCBuildConfiguration; 496 | baseConfigurationReference = 1FF416A288549002959CCA4D /* Pods-WorldMotion_Example.release.xcconfig */; 497 | buildSettings = { 498 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 499 | DEVELOPMENT_TEAM = PU9LT2X4AS; 500 | INFOPLIST_FILE = WorldMotion/Info.plist; 501 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 502 | MODULE_NAME = ExampleApp; 503 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 504 | PRODUCT_NAME = "$(TARGET_NAME)"; 505 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 506 | SWIFT_VERSION = 4.0; 507 | }; 508 | name = Release; 509 | }; 510 | 607FACF31AFB9204008FA782 /* Debug */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = 730B26A88D2694FE77CA0512 /* Pods-WorldMotion_Tests.debug.xcconfig */; 513 | buildSettings = { 514 | DEVELOPMENT_TEAM = PU9LT2X4AS; 515 | FRAMEWORK_SEARCH_PATHS = ( 516 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 517 | "$(inherited)", 518 | ); 519 | GCC_PREPROCESSOR_DEFINITIONS = ( 520 | "DEBUG=1", 521 | "$(inherited)", 522 | ); 523 | INFOPLIST_FILE = Tests/Info.plist; 524 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 525 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 526 | PRODUCT_NAME = "$(TARGET_NAME)"; 527 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 528 | SWIFT_VERSION = 4.0; 529 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WorldMotion_Example.app/WorldMotion_Example"; 530 | }; 531 | name = Debug; 532 | }; 533 | 607FACF41AFB9204008FA782 /* Release */ = { 534 | isa = XCBuildConfiguration; 535 | baseConfigurationReference = A7C6CEEC62736801B7673E0B /* Pods-WorldMotion_Tests.release.xcconfig */; 536 | buildSettings = { 537 | DEVELOPMENT_TEAM = PU9LT2X4AS; 538 | FRAMEWORK_SEARCH_PATHS = ( 539 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 540 | "$(inherited)", 541 | ); 542 | INFOPLIST_FILE = Tests/Info.plist; 543 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 544 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 545 | PRODUCT_NAME = "$(TARGET_NAME)"; 546 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 547 | SWIFT_VERSION = 4.0; 548 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WorldMotion_Example.app/WorldMotion_Example"; 549 | }; 550 | name = Release; 551 | }; 552 | /* End XCBuildConfiguration section */ 553 | 554 | /* Begin XCConfigurationList section */ 555 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "WorldMotion" */ = { 556 | isa = XCConfigurationList; 557 | buildConfigurations = ( 558 | 607FACED1AFB9204008FA782 /* Debug */, 559 | 607FACEE1AFB9204008FA782 /* Release */, 560 | ); 561 | defaultConfigurationIsVisible = 0; 562 | defaultConfigurationName = Release; 563 | }; 564 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "WorldMotion_Example" */ = { 565 | isa = XCConfigurationList; 566 | buildConfigurations = ( 567 | 607FACF01AFB9204008FA782 /* Debug */, 568 | 607FACF11AFB9204008FA782 /* Release */, 569 | ); 570 | defaultConfigurationIsVisible = 0; 571 | defaultConfigurationName = Release; 572 | }; 573 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "WorldMotion_Tests" */ = { 574 | isa = XCConfigurationList; 575 | buildConfigurations = ( 576 | 607FACF31AFB9204008FA782 /* Debug */, 577 | 607FACF41AFB9204008FA782 /* Release */, 578 | ); 579 | defaultConfigurationIsVisible = 0; 580 | defaultConfigurationName = Release; 581 | }; 582 | /* End XCConfigurationList section */ 583 | }; 584 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 585 | } 586 | -------------------------------------------------------------------------------- /Example/WorldMotion.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/WorldMotion.xcodeproj/xcshareddata/xcschemes/WorldMotion-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/WorldMotion.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/WorldMotion.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/WorldMotion/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // WorldMotion 4 | // 5 | // Created by ahmed.almasri@ymail.com on 05/09/2021. 6 | // Copyright (c) 2021 ahmed.almasri@ymail.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // 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. 24 | // 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. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // 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. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/WorldMotion/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/WorldMotion/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 | 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 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /Example/WorldMotion/Images.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" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/WorldMotion/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 | NSCameraUsageDescription 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/WorldMotion/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // WorldMotion 4 | // 5 | // Created by ahmed.almasri@ymail.com on 05/09/2021. 6 | // Copyright (c) 2021 ahmed.almasri@ymail.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import WorldMotion 11 | import CoreMotion 12 | import AVKit 13 | class ViewController: UIViewController, EarthCoordinateDelegate { 14 | 15 | 16 | 17 | @IBOutlet weak var orLabel: UILabel! 18 | @IBOutlet weak var previewView: UIView! 19 | let dev = EarthCoordinate() 20 | var captureSession: AVCaptureSession! 21 | var stillImageOutput: AVCapturePhotoOutput! 22 | var videoPreviewLayer: AVCaptureVideoPreviewLayer! 23 | private var initialDegrees: Double! 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | dev.delegate = self 27 | dev.start(interval: 0.2, queue: .init()) 28 | 29 | } 30 | 31 | override func viewDidAppear(_ animated: Bool) { 32 | super.viewDidAppear(animated) 33 | captureSession = AVCaptureSession() 34 | 35 | guard let backCamera = AVCaptureDevice.default(for: AVMediaType.video) 36 | else { 37 | print("Unable to access back camera!") 38 | return 39 | } 40 | 41 | do { 42 | let input = try AVCaptureDeviceInput(device: backCamera) 43 | stillImageOutput = AVCapturePhotoOutput() 44 | 45 | if captureSession.canAddInput(input) && captureSession.canAddOutput(stillImageOutput) { 46 | captureSession.addInput(input) 47 | captureSession.addOutput(stillImageOutput) 48 | setupLivePreview() 49 | } 50 | } 51 | catch let error { 52 | print("Error Unable to initialize back camera: \(error.localizedDescription)") 53 | } 54 | 55 | DispatchQueue.global(qos: .userInitiated).async { [weak self] in 56 | self?.captureSession.startRunning() 57 | } 58 | } 59 | 60 | func setupLivePreview() { 61 | 62 | videoPreviewLayer = AVCaptureVideoPreviewLayer(session: captureSession) 63 | 64 | videoPreviewLayer.videoGravity = .resizeAspect 65 | self.videoPreviewLayer.frame = self.previewView.bounds 66 | previewView.layer.addSublayer(videoPreviewLayer) 67 | } 68 | 69 | func onOrientationChange(x: Double, y: Double, z: Double) { 70 | 71 | DispatchQueue.main.async { 72 | let degrees = x.toDegrees() 73 | let fullAngle = 360.0 74 | if (self.initialDegrees == nil) { 75 | self.initialDegrees = degrees 76 | } 77 | var xAngle = degrees - self.initialDegrees 78 | 79 | if (xAngle < 0 ) { 80 | xAngle += fullAngle 81 | } 82 | 83 | let angle = fullAngle - xAngle 84 | 85 | self.orLabel.text = String(format: "%.0f°", floor(angle)) 86 | } 87 | } 88 | } 89 | 90 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021 ahmed.almasri@ymail.com 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 🌏 WorldMotion 🧘🏼 (beta) 2 | 3 | Use a CoreMotion sensor to use a coordinate system that represents device motion or position relative to the Earth. In this coordinate system: 4 | 5 | - y points to magnetic north along the surface of the Earth. 6 | - x is 90 degrees from y , pointing approximately east. 7 | - z extends up into space. Negative z extends down into the ground 8 | 9 |

10 | 11 |

12 | 13 | [![CI Status](https://img.shields.io/travis/ahmed.almasri@ymail.com/WorldMotion.svg?style=flat)](https://travis-ci.org/ahmed.almasri@ymail.com/WorldMotion) 14 | [![Version](https://img.shields.io/cocoapods/v/WorldMotion.svg?style=flat)](https://cocoapods.org/pods/WorldMotion) 15 | [![License](https://img.shields.io/cocoapods/l/WorldMotion.svg?style=flat)](https://cocoapods.org/pods/WorldMotion) 16 | [![Platform](https://img.shields.io/cocoapods/p/WorldMotion.svg?style=flat)](https://cocoapods.org/pods/WorldMotion) 17 | 18 | ## Determining device orientation 19 | 20 | Device orientation is the position of the device in space relative to the Earth's coordinate system (specifically, to the magnetic north pole). 21 | 22 | The `getRotationMatrix()` method generates a rotation matrix from the accelerometer and geomagnetic field sensor. A rotation matrix is a linear algebra concept that translates the sensor data from one coordinate system to another—in this case, from the device's coordinate system to the Earth's coordinate system. 23 | 24 | The `getOrientation()` method uses the rotation matrix to compute the angles of the device's orientation. All of these angles are in radians, with values from -π to π. There are three components to orientation: 25 | 26 | *Azimuth* : The angle between the device's current compass direction and magnetic north. If the top edge of the device faces magnetic north, the azimuth is 0. 27 | 28 |

29 | 30 |

31 | 32 | *Pitch* : The angle between a plane parallel to the device's screen and a plane parallel to the ground. 33 | 34 |

35 | 36 |

37 | 38 | *Roll* : The angle between a plane perpendicular to the device's screen and a plane perpendicular to the ground. 39 | 40 |

41 | 42 |

43 | 44 | >Note: orientation angles use a different coordinate system than the one used in aviation (for yaw, pitch, and roll). In the aviation system, the x -axis is along the long side of the plane, from tail to nose. 45 | 46 | # Use case 47 | 48 | Let's assume that you want to know the angle of rotation around a certain object in the real world, so you need the value `x` from the Earth's coordinate system. 49 | 50 | 1. Convert a rotation vector to a rotation matrix. 51 | 52 | ```Swift 53 | let matrixFromVector = rotationMatrix.getRotationMatrixFromVector() 54 | ``` 55 | 56 | 2. Rotating the supplied rotation matrix so it is expressed in a different coordinate system using. 57 | 58 | ```Swift 59 | let coordinateMatrix = matrixFromVector.coordinateSystem(CMRotationMatrix.axisX, CMRotationMatrix.axisY) 60 | ``` 61 | 62 | 3. Compute the device's orientation based on the rotation matrix. 63 | 64 | ```Swift 65 | let acceleration = coordinateMatrix.getOrientation() 66 | ``` 67 | 68 | > The return values is a radius that needs to be converted into degrees using `toDegrees` 69 | 70 | ##### Output 71 | 72 |

73 | 74 |

75 | 76 | ## Using 77 | 78 | - EarthCoordinate: 79 | 80 | ```Swift 81 | let earthCoordinate = EarthCoordinate() 82 | // ....... 83 | deinit { 84 | earthCoordinate.stop() 85 | } 86 | override func viewDidAppear(_ animated: Bool) { 87 | super.viewDidAppear(animated) 88 | 89 | earthCoordinate.delegate = self 90 | earthCoordinate.start(interval: 0.2, queue: .init()) 91 | 92 | } 93 | 94 | // MARK: - EarthCoordinate delegate 95 | 96 | extension ViewController: EarthCoordinateDelegate { 97 | 98 | func onOrientationChange(x: Double, y: Double, z: Double) { 99 | // ..... calculate value degrees 100 | 101 | } 102 | } 103 | 104 | ``` 105 | 106 | - RotationMatrix 107 | 108 | ```Swift 109 | 110 | let rotationMatrix = deviceMotion.attitude.rotationMatrix 111 | let matrixFromVector = rotationMatrix.getRotationMatrixFromVector() 112 | let coordinateMatrix = safeSelf.getCoordinateSystem(with: matrixFromVector) 113 | let acceleration = coordinateMatrix.getOrientation() 114 | ``` 115 | 116 | ## Example 117 | 118 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 119 | 120 | ## Requirements 121 | 122 | - Swift 4.2+ 123 | - Xcode 10.0+ 124 | - iOS 11.0+ 125 | 126 | ## Installation 127 | 128 | WorldMotion is available through [CocoaPods](https://cocoapods.org). To install 129 | it, simply add the following line to your Podfile: 130 | 131 | ```ruby 132 | pod 'WorldMotion' 133 | ``` 134 | 135 | ## Author 136 | 137 | Ahmad Almasri, ahmed.almasri@ymail.com 138 | 139 | ## License 140 | 141 | WorldMotion is available under the MIT license. See the LICENSE file for more info. 142 | -------------------------------------------------------------------------------- /WorldMotion.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'WorldMotion' 3 | s.version = '0.0.1' 4 | s.summary = 'Coordinate system that represents device motion or position relative to the Earth' 5 | 6 | s.description = "Use a CoreMotion sensor to use a coordinate system that represents device motion or position relative to the Earth." 7 | 8 | s.homepage = 'https://github.com/ahmedAlmasri/WorldMotion' 9 | s.license = { :type => 'MIT', :file => 'LICENSE' } 10 | s.author = { 'Ahmad Almasri' => 'ahmed.almasri@ymail.com' } 11 | s.source = { :git => 'https://github.com/ahmedAlmasri/WorldMotion.git', :tag => s.version.to_s } 12 | s.social_media_url = 'https://twitter.com/almasri_ahmed' 13 | 14 | s.ios.deployment_target = '11.0' 15 | s.swift_version = ['4.2', '5.0', '5.1', '5.2', '5.3'] 16 | s.source_files = 'WorldMotion/Classes/**/*' 17 | 18 | end 19 | -------------------------------------------------------------------------------- /WorldMotion/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/WorldMotion/2a65997d16ce5a72a234abfb09993f33ccb7d231/WorldMotion/Assets/.gitkeep -------------------------------------------------------------------------------- /WorldMotion/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/WorldMotion/2a65997d16ce5a72a234abfb09993f33ccb7d231/WorldMotion/Classes/.gitkeep -------------------------------------------------------------------------------- /WorldMotion/Classes/Sources/Array+Matrix.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Array+Matrix.swift 3 | // WorldMotion 4 | // 5 | // Created by Ahmad Almasri on 10/05/2021. 6 | // 7 | 8 | import Foundation 9 | import CoreMotion 10 | 11 | extension Array where Element == Double { 12 | 13 | func toMatrix() -> CMRotationMatrix { 14 | if self.count != 9 { 15 | fatalError("the matrix array should be have 3x3") 16 | } 17 | var outR = CMRotationMatrix() 18 | outR.m11 = self[0] 19 | outR.m12 = self[1] 20 | outR.m13 = self[2] 21 | outR.m21 = self[3] 22 | outR.m22 = self[4] 23 | outR.m23 = self[5] 24 | outR.m31 = self[6] 25 | outR.m32 = self[7] 26 | outR.m33 = self[8] 27 | return outR 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /WorldMotion/Classes/Sources/Double+Degree.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Double+Degree.swift 3 | // WorldMotion 4 | // 5 | // Created by Ahmad Almasri on 12/05/2021. 6 | // 7 | 8 | import Foundation 9 | 10 | public extension Double { 11 | 12 | func toDegrees() -> Double { 13 | 14 | self * 180 / .pi 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /WorldMotion/Classes/Sources/EarthCoordinate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeviceMotion.swift 3 | // WorldMotion 4 | // 5 | // Created by Ahmad Almasri on 10/05/2021. 6 | // 7 | 8 | import Foundation 9 | import CoreMotion 10 | 11 | public protocol EarthCoordinateDelegate: AnyObject { 12 | 13 | func onOrientationChange(x: Double, y: Double, z: Double) 14 | } 15 | 16 | open class EarthCoordinate { 17 | 18 | private let manager = CMMotionManager() 19 | public weak var delegate: EarthCoordinateDelegate? 20 | public init() {} 21 | deinit { 22 | stop() 23 | } 24 | open func start(interval: TimeInterval, queue: OperationQueue) { 25 | 26 | manager.deviceMotionUpdateInterval = interval 27 | manager.startDeviceMotionUpdates(to: queue) {[weak self] deviceMotion, error in 28 | 29 | guard let deviceMotion = deviceMotion, let safeSelf = self else { 30 | return 31 | } 32 | let rotationMatrix = deviceMotion.attitude.rotationMatrix 33 | let matrixFromVector = rotationMatrix.getRotationMatrixFromVector() 34 | let coordinateMatrix = safeSelf.getCoordinateSystem(with: matrixFromVector) 35 | let acceleration = coordinateMatrix.getOrientation() 36 | safeSelf.delegate?.onOrientationChange(x: acceleration.x, y: acceleration.y, z: acceleration.z) 37 | } 38 | 39 | } 40 | 41 | open func stop() { 42 | 43 | manager.stopDeviceMotionUpdates() 44 | } 45 | 46 | 47 | private func getCoordinateSystem(with inMatrix: CMRotationMatrix) -> CMRotationMatrix { 48 | 49 | switch UIDevice.current.orientation { 50 | 51 | case .portrait: 52 | return inMatrix.coordinateSystem(CMRotationMatrix.axisX, CMRotationMatrix.axisMinusZ) 53 | case .portraitUpsideDown: 54 | return inMatrix.coordinateSystem(CMRotationMatrix.axisZ, CMRotationMatrix.axisMinusX) 55 | case .landscapeLeft: 56 | return inMatrix.coordinateSystem(CMRotationMatrix.axisMinusX, CMRotationMatrix.axisMinusZ) 57 | case .landscapeRight: 58 | return inMatrix.coordinateSystem(CMRotationMatrix.axisMinusX, CMRotationMatrix.axisZ) 59 | default: 60 | return inMatrix.coordinateSystem(CMRotationMatrix.axisMinusZ, CMRotationMatrix.axisY) 61 | 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /WorldMotion/Classes/Sources/RotationMatrix.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RotationMatrix.swift 3 | // WorldMotion 4 | // 5 | // Created by Ahmad Almasri on 09/05/2021. 6 | // 7 | 8 | import Foundation 9 | import CoreMotion 10 | 11 | public extension CMRotationMatrix { 12 | 13 | static var axisX = 1 14 | static var axisY = 2 15 | static var axisZ = 3 16 | static var axisMinusX = axisX | 0x80 17 | static var axisMinusY = axisY | 0x80 18 | static var axisMinusZ = axisZ | 0x80 19 | 20 | /// Computes the device's orientation based on the rotation matrix. 21 | /// - Returns: The array values are as follows: 22 | /** 23 | 1. x: 24 | *Pitch*, angle of rotation about the x axis. * This value represents the angle between a plane parallel * to the device's screen and a plane parallel to the ground. * Assuming that the bottom edge of the device faces the * user and that the screen is face-up, tilting the top edge * of the device toward the ground creates a positive pitch * angle. The range of values is -π to π.. 25 | 26 | 2. y: 27 | *Roll*, angle of rotation about the y axis. This value represents the angle between a plane perpendicular to the device's screen and a plane perpendicular to the ground. Assuming that the bottom edge of the device faces the user and that the screen is face-up, tilting the left edge of the device toward the ground creates a positive roll angle. The range of values is -π/2 to π/2. 28 | 29 | 3. z: 30 | *Azimuth*, angle of rotation about the -z axis. * This value represents the angle between the device's y * axis and the magnetic north pole. When facing north, this * angle is 0, when facing south, this angle is π. * Likewise, when facing east, this angle is π/2, and * when facing west, this angle is -π/2. The range of * values is -π to π.. 31 | */ 32 | /// Applying these three rotations in the azimuth, pitch, roll order 33 | /// * transforms a rotation matrix to the Acceleration passed into this 34 | /// * method. Also, note that all three orientation angles are expressed in radians. 35 | func getOrientation() -> CMAcceleration { 36 | var accelerationRef = CMAcceleration() 37 | 38 | accelerationRef.x = atan2(self.m12, self.m22) 39 | accelerationRef.y = asin(-self.m32) 40 | accelerationRef.z = atan2(-self.m31, self.m33) 41 | return accelerationRef 42 | } 43 | 44 | /// Helper function to convert a rotation vector to a rotation matrix. 45 | /// - Returns: The following matrix is returned: 46 | /// 47 | /** 48 | / R[ 0] R[ 1] R[ 2] \ 49 | | R[ 3] R[ 4] R[ 5] | 50 | \ R[ 6] R[ 7] R[ 8] / 51 | */ 52 | func getRotationMatrixFromVector() -> CMRotationMatrix { 53 | var rotationMatrix = CMRotationMatrix() 54 | let q0 = self.m21 55 | let q1 = self.m11 56 | let q2 = self.m12 57 | let q3 = self.m13 58 | 59 | let sqQ1 = 2 * q1 * q1 60 | let sqQ2 = 2 * q2 * q2 61 | let sqQ3 = 2 * q3 * q3 62 | let q1Q2 = 2 * q1 * q2 63 | let q3Q0 = 2 * q3 * q0 64 | let q1Q3 = 2 * q1 * q3 65 | let q2Q0 = 2 * q2 * q0 66 | let q2Q3 = 2 * q2 * q3 67 | let q1Q0 = 2 * q1 * q0 68 | 69 | rotationMatrix.m11 = 1 - sqQ2 - sqQ3 70 | rotationMatrix.m12 = q1Q2 - q3Q0 71 | rotationMatrix.m13 = q1Q3 + q2Q0 72 | 73 | rotationMatrix.m21 = q1Q2 + q3Q0 74 | rotationMatrix.m22 = 1 - sqQ1 - sqQ3 75 | rotationMatrix.m23 = q2Q3 - q1Q0 76 | 77 | rotationMatrix.m31 = q1Q3 - q2Q0 78 | rotationMatrix.m32 = q2Q3 + q1Q0 79 | rotationMatrix.m33 = 1 - sqQ1 - sqQ2 80 | return rotationMatrix 81 | } 82 | 83 | /// Rotates the supplied rotation matrix so it is expressed in a different coordinate system. This is typically used when an application needs to compute the three orientation angles of the device 84 | func coordinateSystem(_ X: Int, _ Y: Int) -> CMRotationMatrix { 85 | var outR = CMRotationMatrix() 86 | var outArr = outR.toArray() 87 | let inArr = self.toArray() 88 | 89 | 90 | var Z = X ^ Y 91 | let x = (X & 0x3) - 1 92 | let y = (Y & 0x3) - 1 93 | let z = (Z & 0x3) - 1 94 | 95 | let axisY = (z + 1) % 3; 96 | let axisZ = (z + 2) % 3; 97 | 98 | if (((x ^ axisY) | (y ^ axisZ)) != 0) { 99 | Z ^= 0x80; 100 | } 101 | 102 | let sx = (X >= 0x80) 103 | let sy = (Y >= 0x80) 104 | let sz = (Z >= 0x80) 105 | 106 | let rowLength = 3 107 | 108 | for j in 0 ..< 3 { 109 | let offset = j * rowLength 110 | for i in 0 ..< 3 { 111 | 112 | if (x == i) { 113 | outArr[offset + i] = sx ? -inArr[offset + 0] : inArr[offset + 0] 114 | } 115 | if (y == i) { 116 | outArr[offset + i] = sy ? -inArr[offset + 1] : inArr[offset + 1] 117 | } 118 | 119 | if (z == i) { 120 | outArr[offset + i] = sz ? -inArr[offset + 2] : inArr[offset + 2] 121 | } 122 | } 123 | } 124 | 125 | return outArr.toMatrix() 126 | 127 | } 128 | 129 | private func toArray() -> [Double] { 130 | 131 | return [self.m11, self.m12, self.m13, self.m21, self.m22, self.m23, self.m31, self.m32, self.m33] 132 | } 133 | 134 | 135 | } 136 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /images/angle_example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/WorldMotion/2a65997d16ce5a72a234abfb09993f33ccb7d231/images/angle_example.gif -------------------------------------------------------------------------------- /images/orientation-azimuth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/WorldMotion/2a65997d16ce5a72a234abfb09993f33ccb7d231/images/orientation-azimuth.png -------------------------------------------------------------------------------- /images/orientation-pitch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/WorldMotion/2a65997d16ce5a72a234abfb09993f33ccb7d231/images/orientation-pitch.png -------------------------------------------------------------------------------- /images/orientation-roll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/WorldMotion/2a65997d16ce5a72a234abfb09993f33ccb7d231/images/orientation-roll.png -------------------------------------------------------------------------------- /images/world-coordinates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmedAlmasri/WorldMotion/2a65997d16ce5a72a234abfb09993f33ccb7d231/images/world-coordinates.png --------------------------------------------------------------------------------