├── .gitignore ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── Resolver.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Resolver.xcscheme │ └── Target Support Files │ │ ├── Pods-Resolver_Example │ │ ├── Info.plist │ │ ├── Pods-Resolver_Example-acknowledgements.markdown │ │ ├── Pods-Resolver_Example-acknowledgements.plist │ │ ├── Pods-Resolver_Example-dummy.m │ │ ├── Pods-Resolver_Example-frameworks.sh │ │ ├── Pods-Resolver_Example-resources.sh │ │ ├── Pods-Resolver_Example-umbrella.h │ │ ├── Pods-Resolver_Example.debug.xcconfig │ │ ├── Pods-Resolver_Example.modulemap │ │ └── Pods-Resolver_Example.release.xcconfig │ │ ├── Pods-Resolver_Tests │ │ ├── Info.plist │ │ ├── Pods-Resolver_Tests-acknowledgements.markdown │ │ ├── Pods-Resolver_Tests-acknowledgements.plist │ │ ├── Pods-Resolver_Tests-dummy.m │ │ ├── Pods-Resolver_Tests-frameworks.sh │ │ ├── Pods-Resolver_Tests-resources.sh │ │ ├── Pods-Resolver_Tests-umbrella.h │ │ ├── Pods-Resolver_Tests.debug.xcconfig │ │ ├── Pods-Resolver_Tests.modulemap │ │ └── Pods-Resolver_Tests.release.xcconfig │ │ └── Resolver │ │ ├── Info.plist │ │ ├── Resolver-dummy.m │ │ ├── Resolver-prefix.pch │ │ ├── Resolver-umbrella.h │ │ ├── Resolver.modulemap │ │ └── Resolver.xcconfig ├── Resolver.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Resolver-Example.xcscheme ├── Resolver.xcworkspace │ └── contents.xcworkspacedata ├── Resolver │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift └── Tests │ ├── Info.plist │ └── ResolverTests.swift ├── LICENSE ├── Pod ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── Container.swift │ ├── Registration.swift │ ├── RegistrationKey.swift │ ├── RegistrationType.swift │ ├── Resolver.swift │ └── ResolverErrror.swift ├── README.md ├── Resolver.podspec └── _Pods.xcodeproj /.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 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | script: 12 | - set -o pipefail && xcodebuild test -workspace Example/Resolver.xcworkspace -scheme Resolver-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | 4 | target 'Resolver_Example', :exclusive => true do 5 | pod "Resolver", :path => "../" 6 | end 7 | 8 | target 'Resolver_Tests', :exclusive => true do 9 | pod "Resolver", :path => "../" 10 | 11 | 12 | end 13 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Resolver (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - Resolver (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | Resolver: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | Resolver: 580d39a3dd1618b345b28044a57bb898b5781f78 13 | 14 | COCOAPODS: 0.39.0 15 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/Resolver.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Resolver", 3 | "version": "0.1.0", 4 | "summary": "A simple resolver for Swift", 5 | "homepage": "https://github.com/onmyway133/Resolver", 6 | "license": "MIT", 7 | "authors": { 8 | "Khoa Pham": "onmyway133@gmail.com" 9 | }, 10 | "source": { 11 | "git": "https://github.com/onmyway133/Resolver.git", 12 | "tag": "0.1.0" 13 | }, 14 | "platforms": { 15 | "ios": "8.0" 16 | }, 17 | "requires_arc": true, 18 | "source_files": "Pod/Classes/**/*", 19 | "resource_bundles": { 20 | "Resolver": [ 21 | "Pod/Assets/*.png" 22 | ] 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Resolver (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - Resolver (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | Resolver: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | Resolver: 580d39a3dd1618b345b28044a57bb898b5781f78 13 | 14 | COCOAPODS: 0.39.0 15 | -------------------------------------------------------------------------------- /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 | 1BF11374220B6A1BB8AB973520055383 /* Pods-Resolver_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C1A1660F7E35DF94ABFBD6BF7DB45FB /* Pods-Resolver_Tests-dummy.m */; }; 11 | 28D3DFB949741B087E05621D3BD10EFD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; 12 | 36290AD18AA12646EBA7E44E165E0AF8 /* Pods-Resolver_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D836A4FF6C4C588F51A57AD4D607E5D /* Pods-Resolver_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 488CC7BA6F91E9FF1CB908C27D14C85D /* Pods-Resolver_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E97357E9A1122A7766D5D2732792E7B /* Pods-Resolver_Example-dummy.m */; }; 14 | 4CC6E49E5EB2116C5D17BBF5C9A189DB /* Registration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18EB8AB218196B504BD8E00E1CD1D504 /* Registration.swift */; }; 15 | 521494A8441FD4A21528C7EA1944A6B9 /* Resolver-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AA6229795F0870467EE6EDBEB849CC /* Resolver-dummy.m */; }; 16 | 58F16FCF61A546863B6DED66332AD3F0 /* Resolver-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 9DFFEF6BADAFFCDB74457413CD6AAA54 /* Resolver-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 75380423AC635D1BC8D386E91778AF1A /* Resolver.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3DB68FD624EA6604D56429AF6EAAAEE2 /* Resolver.bundle */; }; 18 | 8959899476D0A9F87124F59204D74662 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; 19 | BE117A9B0CC946263B68CDD4241492F7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; 20 | D2FC26061C23ADC7002842C0 /* RegistrationType.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2FC26021C23AA58002842C0 /* RegistrationType.swift */; }; 21 | D2FC26071C23ADC9002842C0 /* RegistrationKey.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2FC26041C23AB0A002842C0 /* RegistrationKey.swift */; }; 22 | D2FC260B1C23B1D9002842C0 /* Container.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2FC26091C23B13E002842C0 /* Container.swift */; }; 23 | D2FC26101C23BA99002842C0 /* ResolverErrror.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2FC260E1C23BA5C002842C0 /* ResolverErrror.swift */; }; 24 | D5889805F37E9191EA7075FA39E35770 /* Pods-Resolver_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 10D896198FD3E291C1CE6200C1C4D797 /* Pods-Resolver_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 25 | F4282807B0BD441E0E98F6298A380A42 /* Resolver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 757C9716B6F18C7C30477008460A2E52 /* Resolver.swift */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 1A64C404EC9C78C87991C7D657560295 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 2D2EDC67EA38D4E5F8C9CD5703883B96; 34 | remoteInfo = Resolver; 35 | }; 36 | DE74692D85A3639F8ACDFA386BFD0688 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 2D2EDC67EA38D4E5F8C9CD5703883B96; 41 | remoteInfo = Resolver; 42 | }; 43 | F20451762DC357134D5C32E689378872 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 46 | proxyType = 1; 47 | remoteGlobalIDString = F93D511B38D089D5131FB27822585456; 48 | remoteInfo = "Resolver-Resolver"; 49 | }; 50 | /* End PBXContainerItemProxy section */ 51 | 52 | /* Begin PBXFileReference section */ 53 | 02A2A1B0CAED1E14D3A6F77EE72AB438 /* Pods_Resolver_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Resolver_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 0C1A1660F7E35DF94ABFBD6BF7DB45FB /* Pods-Resolver_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Resolver_Tests-dummy.m"; sourceTree = ""; }; 55 | 0F348231B05C660955A64D7239DAD8FC /* Pods-Resolver_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Resolver_Tests.release.xcconfig"; sourceTree = ""; }; 56 | 10D896198FD3E291C1CE6200C1C4D797 /* Pods-Resolver_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Resolver_Tests-umbrella.h"; sourceTree = ""; }; 57 | 16BAF7E9DC322F7D82E06F80A9CF1F38 /* Pods-Resolver_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Resolver_Example-acknowledgements.markdown"; sourceTree = ""; }; 58 | 18EB8AB218196B504BD8E00E1CD1D504 /* Registration.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Registration.swift; sourceTree = ""; }; 59 | 1AFC4CE23DCE12FD225040D4E866B953 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | 1C75284262D843970DB8F73FBF7FFE4C /* Resolver-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Resolver-prefix.pch"; sourceTree = ""; }; 61 | 1E6484B6E234C09C8643C471501F20C2 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62 | 2E3FCC689DCBDF20B243229080693313 /* Pods-Resolver_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Resolver_Example-resources.sh"; sourceTree = ""; }; 63 | 32810395505F5ED1FCB7232B597283C5 /* Pods-Resolver_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Resolver_Example-acknowledgements.plist"; sourceTree = ""; }; 64 | 34AA6229795F0870467EE6EDBEB849CC /* Resolver-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Resolver-dummy.m"; sourceTree = ""; }; 65 | 3ABF6D48EAFF83FD230ED8DB2485BC2D /* Resolver.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Resolver.xcconfig; sourceTree = ""; }; 66 | 3DB68FD624EA6604D56429AF6EAAAEE2 /* Resolver.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Resolver.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 68 | 4AD57717475202016BBF71F6D432D8D7 /* Resolver.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = Resolver.modulemap; sourceTree = ""; }; 69 | 5D836A4FF6C4C588F51A57AD4D607E5D /* Pods-Resolver_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Resolver_Example-umbrella.h"; sourceTree = ""; }; 70 | 5E97357E9A1122A7766D5D2732792E7B /* Pods-Resolver_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Resolver_Example-dummy.m"; sourceTree = ""; }; 71 | 757C9716B6F18C7C30477008460A2E52 /* Resolver.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Resolver.swift; sourceTree = ""; }; 72 | 7E988BCFCDA99ACBDC2C3D512A9C2DB7 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 73 | 9045328488A3F17424E0F42B06D784F3 /* Pods-Resolver_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Resolver_Tests.debug.xcconfig"; sourceTree = ""; }; 74 | 96BF0AF1D2E937CC200DEDB483A906B0 /* Resolver.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Resolver.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 75 | 975A446F7CBF7355C086AB2DD2B0C356 /* Pods-Resolver_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Resolver_Tests-acknowledgements.plist"; sourceTree = ""; }; 76 | 9DFFEF6BADAFFCDB74457413CD6AAA54 /* Resolver-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Resolver-umbrella.h"; sourceTree = ""; }; 77 | A17AA22C143A73E61D1F5D7A6D93D0C9 /* Pods-Resolver_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Resolver_Example-frameworks.sh"; sourceTree = ""; }; 78 | B471BDB88BCD14BB0BDB0178783F855C /* Pods-Resolver_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-Resolver_Tests.modulemap"; sourceTree = ""; }; 79 | B7E4D6F3DF3FD3027B7381821B875E0C /* Pods_Resolver_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Resolver_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 80 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 81 | CAE4710CD2D2B0B709929B6B52C3E429 /* Pods-Resolver_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Resolver_Tests-acknowledgements.markdown"; sourceTree = ""; }; 82 | CC044F7C1BEBB8BFFAB2423C48AC6CDE /* Pods-Resolver_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Resolver_Example.debug.xcconfig"; sourceTree = ""; }; 83 | D2FC26021C23AA58002842C0 /* RegistrationType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RegistrationType.swift; sourceTree = ""; }; 84 | D2FC26041C23AB0A002842C0 /* RegistrationKey.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RegistrationKey.swift; sourceTree = ""; }; 85 | D2FC26091C23B13E002842C0 /* Container.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Container.swift; sourceTree = ""; }; 86 | D2FC260E1C23BA5C002842C0 /* ResolverErrror.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResolverErrror.swift; sourceTree = ""; }; 87 | DE2237380A69CDA528027F79AFBE7FEC /* Pods-Resolver_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Resolver_Tests-frameworks.sh"; sourceTree = ""; }; 88 | E0BDA5246C0E90B635A2BD5624FD6C9E /* Pods-Resolver_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-Resolver_Example.modulemap"; sourceTree = ""; }; 89 | E9E4DEF9DF701EEE2E9CD918051CA658 /* Pods-Resolver_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Resolver_Example.release.xcconfig"; sourceTree = ""; }; 90 | F75A0959C24ECE4E51580CC8ADF59CF1 /* Pods-Resolver_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Resolver_Tests-resources.sh"; sourceTree = ""; }; 91 | /* End PBXFileReference section */ 92 | 93 | /* Begin PBXFrameworksBuildPhase section */ 94 | 06CBBE5B9E87DEF8B0E91EC17F7EE31B /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | BE117A9B0CC946263B68CDD4241492F7 /* Foundation.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | 0E8B20A1C9B40F0D1C193726991BDD19 /* Frameworks */ = { 103 | isa = PBXFrameworksBuildPhase; 104 | buildActionMask = 2147483647; 105 | files = ( 106 | 28D3DFB949741B087E05621D3BD10EFD /* Foundation.framework in Frameworks */, 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | 64FDA9D41300AE72F915FDCE28306C4A /* Frameworks */ = { 111 | isa = PBXFrameworksBuildPhase; 112 | buildActionMask = 2147483647; 113 | files = ( 114 | 8959899476D0A9F87124F59204D74662 /* Foundation.framework in Frameworks */, 115 | ); 116 | runOnlyForDeploymentPostprocessing = 0; 117 | }; 118 | 901D1D2CE3A9A59F6B98E9B17D7A7BEA /* Frameworks */ = { 119 | isa = PBXFrameworksBuildPhase; 120 | buildActionMask = 2147483647; 121 | files = ( 122 | ); 123 | runOnlyForDeploymentPostprocessing = 0; 124 | }; 125 | /* End PBXFrameworksBuildPhase section */ 126 | 127 | /* Begin PBXGroup section */ 128 | 15C91A1581A8DDD779B1A4DD34D4CB6D /* Pods-Resolver_Example */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 1AFC4CE23DCE12FD225040D4E866B953 /* Info.plist */, 132 | E0BDA5246C0E90B635A2BD5624FD6C9E /* Pods-Resolver_Example.modulemap */, 133 | 16BAF7E9DC322F7D82E06F80A9CF1F38 /* Pods-Resolver_Example-acknowledgements.markdown */, 134 | 32810395505F5ED1FCB7232B597283C5 /* Pods-Resolver_Example-acknowledgements.plist */, 135 | 5E97357E9A1122A7766D5D2732792E7B /* Pods-Resolver_Example-dummy.m */, 136 | A17AA22C143A73E61D1F5D7A6D93D0C9 /* Pods-Resolver_Example-frameworks.sh */, 137 | 2E3FCC689DCBDF20B243229080693313 /* Pods-Resolver_Example-resources.sh */, 138 | 5D836A4FF6C4C588F51A57AD4D607E5D /* Pods-Resolver_Example-umbrella.h */, 139 | CC044F7C1BEBB8BFFAB2423C48AC6CDE /* Pods-Resolver_Example.debug.xcconfig */, 140 | E9E4DEF9DF701EEE2E9CD918051CA658 /* Pods-Resolver_Example.release.xcconfig */, 141 | ); 142 | name = "Pods-Resolver_Example"; 143 | path = "Target Support Files/Pods-Resolver_Example"; 144 | sourceTree = ""; 145 | }; 146 | 50602F8E3A64428D4D2027E7B7334F0F /* Support Files */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 7E988BCFCDA99ACBDC2C3D512A9C2DB7 /* Info.plist */, 150 | 4AD57717475202016BBF71F6D432D8D7 /* Resolver.modulemap */, 151 | 3ABF6D48EAFF83FD230ED8DB2485BC2D /* Resolver.xcconfig */, 152 | 34AA6229795F0870467EE6EDBEB849CC /* Resolver-dummy.m */, 153 | 1C75284262D843970DB8F73FBF7FFE4C /* Resolver-prefix.pch */, 154 | 9DFFEF6BADAFFCDB74457413CD6AAA54 /* Resolver-umbrella.h */, 155 | ); 156 | name = "Support Files"; 157 | path = "Example/Pods/Target Support Files/Resolver"; 158 | sourceTree = ""; 159 | }; 160 | 6E8CDA2E2729E4981E5E1228F4F6318F /* Classes */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | D2FC26041C23AB0A002842C0 /* RegistrationKey.swift */, 164 | D2FC26021C23AA58002842C0 /* RegistrationType.swift */, 165 | 18EB8AB218196B504BD8E00E1CD1D504 /* Registration.swift */, 166 | 757C9716B6F18C7C30477008460A2E52 /* Resolver.swift */, 167 | D2FC26091C23B13E002842C0 /* Container.swift */, 168 | D2FC260E1C23BA5C002842C0 /* ResolverErrror.swift */, 169 | ); 170 | path = Classes; 171 | sourceTree = ""; 172 | }; 173 | 719D2801B8D3D1B51413778E0B46231E /* Targets Support Files */ = { 174 | isa = PBXGroup; 175 | children = ( 176 | 15C91A1581A8DDD779B1A4DD34D4CB6D /* Pods-Resolver_Example */, 177 | CB268EF0623D9C5EABB864A5225F1953 /* Pods-Resolver_Tests */, 178 | ); 179 | name = "Targets Support Files"; 180 | sourceTree = ""; 181 | }; 182 | 7AB828BB8F9222C340E1A71B136AB979 /* Pod */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | 6E8CDA2E2729E4981E5E1228F4F6318F /* Classes */, 186 | ); 187 | path = Pod; 188 | sourceTree = ""; 189 | }; 190 | 7DB346D0F39D3F0E887471402A8071AB = { 191 | isa = PBXGroup; 192 | children = ( 193 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, 194 | CA3AEBBB71D3DB5E8171B2D3EBFE5101 /* Development Pods */, 195 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 196 | D01004AE3CA9AF1C98D1BD2DE33815A1 /* Products */, 197 | 719D2801B8D3D1B51413778E0B46231E /* Targets Support Files */, 198 | ); 199 | sourceTree = ""; 200 | }; 201 | 96D6381B75A2AFFB7476B22F20417A65 /* Resolver */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | 7AB828BB8F9222C340E1A71B136AB979 /* Pod */, 205 | 50602F8E3A64428D4D2027E7B7334F0F /* Support Files */, 206 | ); 207 | name = Resolver; 208 | path = ../..; 209 | sourceTree = ""; 210 | }; 211 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | BF6342C8B29F4CEEA088EFF7AB4DE362 /* iOS */, 215 | ); 216 | name = Frameworks; 217 | sourceTree = ""; 218 | }; 219 | BF6342C8B29F4CEEA088EFF7AB4DE362 /* iOS */ = { 220 | isa = PBXGroup; 221 | children = ( 222 | 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */, 223 | ); 224 | name = iOS; 225 | sourceTree = ""; 226 | }; 227 | CA3AEBBB71D3DB5E8171B2D3EBFE5101 /* Development Pods */ = { 228 | isa = PBXGroup; 229 | children = ( 230 | 96D6381B75A2AFFB7476B22F20417A65 /* Resolver */, 231 | ); 232 | name = "Development Pods"; 233 | sourceTree = ""; 234 | }; 235 | CB268EF0623D9C5EABB864A5225F1953 /* Pods-Resolver_Tests */ = { 236 | isa = PBXGroup; 237 | children = ( 238 | 1E6484B6E234C09C8643C471501F20C2 /* Info.plist */, 239 | B471BDB88BCD14BB0BDB0178783F855C /* Pods-Resolver_Tests.modulemap */, 240 | CAE4710CD2D2B0B709929B6B52C3E429 /* Pods-Resolver_Tests-acknowledgements.markdown */, 241 | 975A446F7CBF7355C086AB2DD2B0C356 /* Pods-Resolver_Tests-acknowledgements.plist */, 242 | 0C1A1660F7E35DF94ABFBD6BF7DB45FB /* Pods-Resolver_Tests-dummy.m */, 243 | DE2237380A69CDA528027F79AFBE7FEC /* Pods-Resolver_Tests-frameworks.sh */, 244 | F75A0959C24ECE4E51580CC8ADF59CF1 /* Pods-Resolver_Tests-resources.sh */, 245 | 10D896198FD3E291C1CE6200C1C4D797 /* Pods-Resolver_Tests-umbrella.h */, 246 | 9045328488A3F17424E0F42B06D784F3 /* Pods-Resolver_Tests.debug.xcconfig */, 247 | 0F348231B05C660955A64D7239DAD8FC /* Pods-Resolver_Tests.release.xcconfig */, 248 | ); 249 | name = "Pods-Resolver_Tests"; 250 | path = "Target Support Files/Pods-Resolver_Tests"; 251 | sourceTree = ""; 252 | }; 253 | D01004AE3CA9AF1C98D1BD2DE33815A1 /* Products */ = { 254 | isa = PBXGroup; 255 | children = ( 256 | 02A2A1B0CAED1E14D3A6F77EE72AB438 /* Pods_Resolver_Example.framework */, 257 | B7E4D6F3DF3FD3027B7381821B875E0C /* Pods_Resolver_Tests.framework */, 258 | 3DB68FD624EA6604D56429AF6EAAAEE2 /* Resolver.bundle */, 259 | 96BF0AF1D2E937CC200DEDB483A906B0 /* Resolver.framework */, 260 | ); 261 | name = Products; 262 | sourceTree = ""; 263 | }; 264 | /* End PBXGroup section */ 265 | 266 | /* Begin PBXHeadersBuildPhase section */ 267 | 2A82FE875CA2766E5E40948966DF731D /* Headers */ = { 268 | isa = PBXHeadersBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | 36290AD18AA12646EBA7E44E165E0AF8 /* Pods-Resolver_Example-umbrella.h in Headers */, 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | 99786729072805132F83A1F3A1D490ED /* Headers */ = { 276 | isa = PBXHeadersBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | D5889805F37E9191EA7075FA39E35770 /* Pods-Resolver_Tests-umbrella.h in Headers */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | C49FA843AAA50EA937528DAF0BB89A22 /* Headers */ = { 284 | isa = PBXHeadersBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | 58F16FCF61A546863B6DED66332AD3F0 /* Resolver-umbrella.h in Headers */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | /* End PBXHeadersBuildPhase section */ 292 | 293 | /* Begin PBXNativeTarget section */ 294 | 26EC0B1F2B5D45D16FE87FEF8ABF69FA /* Pods-Resolver_Example */ = { 295 | isa = PBXNativeTarget; 296 | buildConfigurationList = F0A5DA3EB75BE2B63CACDA46700A3CE5 /* Build configuration list for PBXNativeTarget "Pods-Resolver_Example" */; 297 | buildPhases = ( 298 | A4B034DE641B9E96422EE883F4FD5554 /* Sources */, 299 | 64FDA9D41300AE72F915FDCE28306C4A /* Frameworks */, 300 | 2A82FE875CA2766E5E40948966DF731D /* Headers */, 301 | ); 302 | buildRules = ( 303 | ); 304 | dependencies = ( 305 | 17D0DDE73A16D100300431D59E7C488A /* PBXTargetDependency */, 306 | ); 307 | name = "Pods-Resolver_Example"; 308 | productName = "Pods-Resolver_Example"; 309 | productReference = 02A2A1B0CAED1E14D3A6F77EE72AB438 /* Pods_Resolver_Example.framework */; 310 | productType = "com.apple.product-type.framework"; 311 | }; 312 | 2D2EDC67EA38D4E5F8C9CD5703883B96 /* Resolver */ = { 313 | isa = PBXNativeTarget; 314 | buildConfigurationList = B6997707F9B8728551166E1E22014771 /* Build configuration list for PBXNativeTarget "Resolver" */; 315 | buildPhases = ( 316 | B88E8DAB5AF28A0186EF70772EE7AF45 /* Sources */, 317 | 0E8B20A1C9B40F0D1C193726991BDD19 /* Frameworks */, 318 | 0267D9F51A2E3F00DCE3EC01BBF0272D /* Resources */, 319 | C49FA843AAA50EA937528DAF0BB89A22 /* Headers */, 320 | ); 321 | buildRules = ( 322 | ); 323 | dependencies = ( 324 | BDFF795878523A0251FEFBD097B00B52 /* PBXTargetDependency */, 325 | ); 326 | name = Resolver; 327 | productName = Resolver; 328 | productReference = 96BF0AF1D2E937CC200DEDB483A906B0 /* Resolver.framework */; 329 | productType = "com.apple.product-type.framework"; 330 | }; 331 | 4D9E62FEDC7911E539BF12A5C97B4CD5 /* Pods-Resolver_Tests */ = { 332 | isa = PBXNativeTarget; 333 | buildConfigurationList = 6CDBF4D2671C22312BFAA7281C92BD03 /* Build configuration list for PBXNativeTarget "Pods-Resolver_Tests" */; 334 | buildPhases = ( 335 | 8721EEA18211F3695CEF7D88E6E8B502 /* Sources */, 336 | 06CBBE5B9E87DEF8B0E91EC17F7EE31B /* Frameworks */, 337 | 99786729072805132F83A1F3A1D490ED /* Headers */, 338 | ); 339 | buildRules = ( 340 | ); 341 | dependencies = ( 342 | 8C97EB5844952EE680FFA4CAC47BFC56 /* PBXTargetDependency */, 343 | ); 344 | name = "Pods-Resolver_Tests"; 345 | productName = "Pods-Resolver_Tests"; 346 | productReference = B7E4D6F3DF3FD3027B7381821B875E0C /* Pods_Resolver_Tests.framework */; 347 | productType = "com.apple.product-type.framework"; 348 | }; 349 | F93D511B38D089D5131FB27822585456 /* Resolver-Resolver */ = { 350 | isa = PBXNativeTarget; 351 | buildConfigurationList = 8C4D68C51D60DB1FB7BD6449CFB54DF2 /* Build configuration list for PBXNativeTarget "Resolver-Resolver" */; 352 | buildPhases = ( 353 | DEC62A4FED2378AA64605A72B840C048 /* Sources */, 354 | 901D1D2CE3A9A59F6B98E9B17D7A7BEA /* Frameworks */, 355 | B1EF50899CE9080CA60FD75F4495E57C /* Resources */, 356 | ); 357 | buildRules = ( 358 | ); 359 | dependencies = ( 360 | ); 361 | name = "Resolver-Resolver"; 362 | productName = "Resolver-Resolver"; 363 | productReference = 3DB68FD624EA6604D56429AF6EAAAEE2 /* Resolver.bundle */; 364 | productType = "com.apple.product-type.bundle"; 365 | }; 366 | /* End PBXNativeTarget section */ 367 | 368 | /* Begin PBXProject section */ 369 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 370 | isa = PBXProject; 371 | attributes = { 372 | LastSwiftUpdateCheck = 0710; 373 | LastUpgradeCheck = 0700; 374 | }; 375 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 376 | compatibilityVersion = "Xcode 3.2"; 377 | developmentRegion = English; 378 | hasScannedForEncodings = 0; 379 | knownRegions = ( 380 | en, 381 | ); 382 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 383 | productRefGroup = D01004AE3CA9AF1C98D1BD2DE33815A1 /* Products */; 384 | projectDirPath = ""; 385 | projectRoot = ""; 386 | targets = ( 387 | 26EC0B1F2B5D45D16FE87FEF8ABF69FA /* Pods-Resolver_Example */, 388 | 4D9E62FEDC7911E539BF12A5C97B4CD5 /* Pods-Resolver_Tests */, 389 | 2D2EDC67EA38D4E5F8C9CD5703883B96 /* Resolver */, 390 | F93D511B38D089D5131FB27822585456 /* Resolver-Resolver */, 391 | ); 392 | }; 393 | /* End PBXProject section */ 394 | 395 | /* Begin PBXResourcesBuildPhase section */ 396 | 0267D9F51A2E3F00DCE3EC01BBF0272D /* Resources */ = { 397 | isa = PBXResourcesBuildPhase; 398 | buildActionMask = 2147483647; 399 | files = ( 400 | 75380423AC635D1BC8D386E91778AF1A /* Resolver.bundle in Resources */, 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | }; 404 | B1EF50899CE9080CA60FD75F4495E57C /* Resources */ = { 405 | isa = PBXResourcesBuildPhase; 406 | buildActionMask = 2147483647; 407 | files = ( 408 | ); 409 | runOnlyForDeploymentPostprocessing = 0; 410 | }; 411 | /* End PBXResourcesBuildPhase section */ 412 | 413 | /* Begin PBXSourcesBuildPhase section */ 414 | 8721EEA18211F3695CEF7D88E6E8B502 /* Sources */ = { 415 | isa = PBXSourcesBuildPhase; 416 | buildActionMask = 2147483647; 417 | files = ( 418 | 1BF11374220B6A1BB8AB973520055383 /* Pods-Resolver_Tests-dummy.m in Sources */, 419 | ); 420 | runOnlyForDeploymentPostprocessing = 0; 421 | }; 422 | A4B034DE641B9E96422EE883F4FD5554 /* Sources */ = { 423 | isa = PBXSourcesBuildPhase; 424 | buildActionMask = 2147483647; 425 | files = ( 426 | 488CC7BA6F91E9FF1CB908C27D14C85D /* Pods-Resolver_Example-dummy.m in Sources */, 427 | ); 428 | runOnlyForDeploymentPostprocessing = 0; 429 | }; 430 | B88E8DAB5AF28A0186EF70772EE7AF45 /* Sources */ = { 431 | isa = PBXSourcesBuildPhase; 432 | buildActionMask = 2147483647; 433 | files = ( 434 | 4CC6E49E5EB2116C5D17BBF5C9A189DB /* Registration.swift in Sources */, 435 | D2FC260B1C23B1D9002842C0 /* Container.swift in Sources */, 436 | 521494A8441FD4A21528C7EA1944A6B9 /* Resolver-dummy.m in Sources */, 437 | D2FC26101C23BA99002842C0 /* ResolverErrror.swift in Sources */, 438 | D2FC26061C23ADC7002842C0 /* RegistrationType.swift in Sources */, 439 | D2FC26071C23ADC9002842C0 /* RegistrationKey.swift in Sources */, 440 | F4282807B0BD441E0E98F6298A380A42 /* Resolver.swift in Sources */, 441 | ); 442 | runOnlyForDeploymentPostprocessing = 0; 443 | }; 444 | DEC62A4FED2378AA64605A72B840C048 /* Sources */ = { 445 | isa = PBXSourcesBuildPhase; 446 | buildActionMask = 2147483647; 447 | files = ( 448 | ); 449 | runOnlyForDeploymentPostprocessing = 0; 450 | }; 451 | /* End PBXSourcesBuildPhase section */ 452 | 453 | /* Begin PBXTargetDependency section */ 454 | 17D0DDE73A16D100300431D59E7C488A /* PBXTargetDependency */ = { 455 | isa = PBXTargetDependency; 456 | name = Resolver; 457 | target = 2D2EDC67EA38D4E5F8C9CD5703883B96 /* Resolver */; 458 | targetProxy = DE74692D85A3639F8ACDFA386BFD0688 /* PBXContainerItemProxy */; 459 | }; 460 | 8C97EB5844952EE680FFA4CAC47BFC56 /* PBXTargetDependency */ = { 461 | isa = PBXTargetDependency; 462 | name = Resolver; 463 | target = 2D2EDC67EA38D4E5F8C9CD5703883B96 /* Resolver */; 464 | targetProxy = 1A64C404EC9C78C87991C7D657560295 /* PBXContainerItemProxy */; 465 | }; 466 | BDFF795878523A0251FEFBD097B00B52 /* PBXTargetDependency */ = { 467 | isa = PBXTargetDependency; 468 | name = "Resolver-Resolver"; 469 | target = F93D511B38D089D5131FB27822585456 /* Resolver-Resolver */; 470 | targetProxy = F20451762DC357134D5C32E689378872 /* PBXContainerItemProxy */; 471 | }; 472 | /* End PBXTargetDependency section */ 473 | 474 | /* Begin XCBuildConfiguration section */ 475 | 10DE1947DAC0ED28F6C0A9F9BD75D546 /* Release */ = { 476 | isa = XCBuildConfiguration; 477 | buildSettings = { 478 | ALWAYS_SEARCH_USER_PATHS = NO; 479 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 480 | CLANG_CXX_LIBRARY = "libc++"; 481 | CLANG_ENABLE_MODULES = YES; 482 | CLANG_ENABLE_OBJC_ARC = YES; 483 | CLANG_WARN_BOOL_CONVERSION = YES; 484 | CLANG_WARN_CONSTANT_CONVERSION = YES; 485 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 486 | CLANG_WARN_EMPTY_BODY = YES; 487 | CLANG_WARN_ENUM_CONVERSION = YES; 488 | CLANG_WARN_INT_CONVERSION = YES; 489 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 490 | CLANG_WARN_UNREACHABLE_CODE = YES; 491 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 492 | COPY_PHASE_STRIP = YES; 493 | ENABLE_NS_ASSERTIONS = NO; 494 | GCC_C_LANGUAGE_STANDARD = gnu99; 495 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 496 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 497 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 498 | GCC_WARN_UNDECLARED_SELECTOR = YES; 499 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 500 | GCC_WARN_UNUSED_FUNCTION = YES; 501 | GCC_WARN_UNUSED_VARIABLE = YES; 502 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 503 | STRIP_INSTALLED_PRODUCT = NO; 504 | SYMROOT = "${SRCROOT}/../build"; 505 | VALIDATE_PRODUCT = YES; 506 | }; 507 | name = Release; 508 | }; 509 | 552D02D5BA751AC2E8790D2811D496CA /* Debug */ = { 510 | isa = XCBuildConfiguration; 511 | buildSettings = { 512 | ALWAYS_SEARCH_USER_PATHS = NO; 513 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 514 | CLANG_CXX_LIBRARY = "libc++"; 515 | CLANG_ENABLE_MODULES = YES; 516 | CLANG_ENABLE_OBJC_ARC = YES; 517 | CLANG_WARN_BOOL_CONVERSION = YES; 518 | CLANG_WARN_CONSTANT_CONVERSION = YES; 519 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 520 | CLANG_WARN_EMPTY_BODY = YES; 521 | CLANG_WARN_ENUM_CONVERSION = YES; 522 | CLANG_WARN_INT_CONVERSION = YES; 523 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 524 | CLANG_WARN_UNREACHABLE_CODE = YES; 525 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 526 | COPY_PHASE_STRIP = NO; 527 | GCC_C_LANGUAGE_STANDARD = gnu99; 528 | GCC_DYNAMIC_NO_PIC = NO; 529 | GCC_OPTIMIZATION_LEVEL = 0; 530 | GCC_PREPROCESSOR_DEFINITIONS = ( 531 | "DEBUG=1", 532 | "$(inherited)", 533 | ); 534 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 535 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 536 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 537 | GCC_WARN_UNDECLARED_SELECTOR = YES; 538 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 539 | GCC_WARN_UNUSED_FUNCTION = YES; 540 | GCC_WARN_UNUSED_VARIABLE = YES; 541 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 542 | ONLY_ACTIVE_ARCH = YES; 543 | STRIP_INSTALLED_PRODUCT = NO; 544 | SYMROOT = "${SRCROOT}/../build"; 545 | }; 546 | name = Debug; 547 | }; 548 | 5D4FAC12F620E56154BAD88134E712C2 /* Release */ = { 549 | isa = XCBuildConfiguration; 550 | baseConfigurationReference = E9E4DEF9DF701EEE2E9CD918051CA658 /* Pods-Resolver_Example.release.xcconfig */; 551 | buildSettings = { 552 | CLANG_ENABLE_MODULES = YES; 553 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 554 | CURRENT_PROJECT_VERSION = 1; 555 | DEFINES_MODULE = YES; 556 | DYLIB_COMPATIBILITY_VERSION = 1; 557 | DYLIB_CURRENT_VERSION = 1; 558 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 559 | ENABLE_STRICT_OBJC_MSGSEND = YES; 560 | INFOPLIST_FILE = "Target Support Files/Pods-Resolver_Example/Info.plist"; 561 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 562 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 563 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 564 | MACH_O_TYPE = staticlib; 565 | MODULEMAP_FILE = "Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example.modulemap"; 566 | MTL_ENABLE_DEBUG_INFO = NO; 567 | OTHER_LDFLAGS = ""; 568 | OTHER_LIBTOOLFLAGS = ""; 569 | PODS_ROOT = "$(SRCROOT)"; 570 | PRODUCT_NAME = Pods_Resolver_Example; 571 | SDKROOT = iphoneos; 572 | SKIP_INSTALL = YES; 573 | TARGETED_DEVICE_FAMILY = "1,2"; 574 | VERSIONING_SYSTEM = "apple-generic"; 575 | VERSION_INFO_PREFIX = ""; 576 | }; 577 | name = Release; 578 | }; 579 | 74D3FA2F2A143CED4ABB86D364476841 /* Debug */ = { 580 | isa = XCBuildConfiguration; 581 | baseConfigurationReference = 9045328488A3F17424E0F42B06D784F3 /* Pods-Resolver_Tests.debug.xcconfig */; 582 | buildSettings = { 583 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 584 | CURRENT_PROJECT_VERSION = 1; 585 | DEFINES_MODULE = YES; 586 | DYLIB_COMPATIBILITY_VERSION = 1; 587 | DYLIB_CURRENT_VERSION = 1; 588 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 589 | ENABLE_STRICT_OBJC_MSGSEND = YES; 590 | INFOPLIST_FILE = "Target Support Files/Pods-Resolver_Tests/Info.plist"; 591 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 592 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 593 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 594 | MACH_O_TYPE = staticlib; 595 | MODULEMAP_FILE = "Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests.modulemap"; 596 | MTL_ENABLE_DEBUG_INFO = YES; 597 | OTHER_LDFLAGS = ""; 598 | OTHER_LIBTOOLFLAGS = ""; 599 | PODS_ROOT = "$(SRCROOT)"; 600 | PRODUCT_NAME = Pods_Resolver_Tests; 601 | SDKROOT = iphoneos; 602 | SKIP_INSTALL = YES; 603 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 604 | TARGETED_DEVICE_FAMILY = "1,2"; 605 | VERSIONING_SYSTEM = "apple-generic"; 606 | VERSION_INFO_PREFIX = ""; 607 | }; 608 | name = Debug; 609 | }; 610 | 9946D078EF814AA24291DCA653DEE3FF /* Release */ = { 611 | isa = XCBuildConfiguration; 612 | baseConfigurationReference = 3ABF6D48EAFF83FD230ED8DB2485BC2D /* Resolver.xcconfig */; 613 | buildSettings = { 614 | ENABLE_STRICT_OBJC_MSGSEND = YES; 615 | PRODUCT_NAME = Resolver; 616 | SDKROOT = iphoneos; 617 | SKIP_INSTALL = YES; 618 | WRAPPER_EXTENSION = bundle; 619 | }; 620 | name = Release; 621 | }; 622 | A7BC337183FCFB0918AFC302169382DC /* Release */ = { 623 | isa = XCBuildConfiguration; 624 | baseConfigurationReference = 3ABF6D48EAFF83FD230ED8DB2485BC2D /* Resolver.xcconfig */; 625 | buildSettings = { 626 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 627 | CURRENT_PROJECT_VERSION = 1; 628 | DEFINES_MODULE = YES; 629 | DYLIB_COMPATIBILITY_VERSION = 1; 630 | DYLIB_CURRENT_VERSION = 1; 631 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 632 | ENABLE_STRICT_OBJC_MSGSEND = YES; 633 | GCC_PREFIX_HEADER = "Target Support Files/Resolver/Resolver-prefix.pch"; 634 | INFOPLIST_FILE = "Target Support Files/Resolver/Info.plist"; 635 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 636 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 637 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 638 | MODULEMAP_FILE = "Target Support Files/Resolver/Resolver.modulemap"; 639 | MTL_ENABLE_DEBUG_INFO = NO; 640 | PRODUCT_NAME = Resolver; 641 | SDKROOT = iphoneos; 642 | SKIP_INSTALL = YES; 643 | TARGETED_DEVICE_FAMILY = "1,2"; 644 | VERSIONING_SYSTEM = "apple-generic"; 645 | VERSION_INFO_PREFIX = ""; 646 | }; 647 | name = Release; 648 | }; 649 | CD8231F61E31CF2854F1E16A1AEE5A78 /* Release */ = { 650 | isa = XCBuildConfiguration; 651 | baseConfigurationReference = 0F348231B05C660955A64D7239DAD8FC /* Pods-Resolver_Tests.release.xcconfig */; 652 | buildSettings = { 653 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 654 | CURRENT_PROJECT_VERSION = 1; 655 | DEFINES_MODULE = YES; 656 | DYLIB_COMPATIBILITY_VERSION = 1; 657 | DYLIB_CURRENT_VERSION = 1; 658 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 659 | ENABLE_STRICT_OBJC_MSGSEND = YES; 660 | INFOPLIST_FILE = "Target Support Files/Pods-Resolver_Tests/Info.plist"; 661 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 662 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 663 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 664 | MACH_O_TYPE = staticlib; 665 | MODULEMAP_FILE = "Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests.modulemap"; 666 | MTL_ENABLE_DEBUG_INFO = NO; 667 | OTHER_LDFLAGS = ""; 668 | OTHER_LIBTOOLFLAGS = ""; 669 | PODS_ROOT = "$(SRCROOT)"; 670 | PRODUCT_NAME = Pods_Resolver_Tests; 671 | SDKROOT = iphoneos; 672 | SKIP_INSTALL = YES; 673 | TARGETED_DEVICE_FAMILY = "1,2"; 674 | VERSIONING_SYSTEM = "apple-generic"; 675 | VERSION_INFO_PREFIX = ""; 676 | }; 677 | name = Release; 678 | }; 679 | D298E33B5D07ED09341AE437494AED69 /* Debug */ = { 680 | isa = XCBuildConfiguration; 681 | baseConfigurationReference = 3ABF6D48EAFF83FD230ED8DB2485BC2D /* Resolver.xcconfig */; 682 | buildSettings = { 683 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 684 | CURRENT_PROJECT_VERSION = 1; 685 | DEFINES_MODULE = YES; 686 | DYLIB_COMPATIBILITY_VERSION = 1; 687 | DYLIB_CURRENT_VERSION = 1; 688 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 689 | ENABLE_STRICT_OBJC_MSGSEND = YES; 690 | GCC_PREFIX_HEADER = "Target Support Files/Resolver/Resolver-prefix.pch"; 691 | INFOPLIST_FILE = "Target Support Files/Resolver/Info.plist"; 692 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 693 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 694 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 695 | MODULEMAP_FILE = "Target Support Files/Resolver/Resolver.modulemap"; 696 | MTL_ENABLE_DEBUG_INFO = YES; 697 | PRODUCT_NAME = Resolver; 698 | SDKROOT = iphoneos; 699 | SKIP_INSTALL = YES; 700 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 701 | TARGETED_DEVICE_FAMILY = "1,2"; 702 | VERSIONING_SYSTEM = "apple-generic"; 703 | VERSION_INFO_PREFIX = ""; 704 | }; 705 | name = Debug; 706 | }; 707 | DDDB0239EAC7E9DD9395C8FD2827EA5D /* Debug */ = { 708 | isa = XCBuildConfiguration; 709 | baseConfigurationReference = 3ABF6D48EAFF83FD230ED8DB2485BC2D /* Resolver.xcconfig */; 710 | buildSettings = { 711 | ENABLE_STRICT_OBJC_MSGSEND = YES; 712 | PRODUCT_NAME = Resolver; 713 | SDKROOT = iphoneos; 714 | SKIP_INSTALL = YES; 715 | WRAPPER_EXTENSION = bundle; 716 | }; 717 | name = Debug; 718 | }; 719 | F91F95B0A5806E0EA7C019A540D7338B /* Debug */ = { 720 | isa = XCBuildConfiguration; 721 | baseConfigurationReference = CC044F7C1BEBB8BFFAB2423C48AC6CDE /* Pods-Resolver_Example.debug.xcconfig */; 722 | buildSettings = { 723 | CLANG_ENABLE_MODULES = YES; 724 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 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 | ENABLE_STRICT_OBJC_MSGSEND = YES; 731 | INFOPLIST_FILE = "Target Support Files/Pods-Resolver_Example/Info.plist"; 732 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 733 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 734 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 735 | MACH_O_TYPE = staticlib; 736 | MODULEMAP_FILE = "Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example.modulemap"; 737 | MTL_ENABLE_DEBUG_INFO = YES; 738 | OTHER_LDFLAGS = ""; 739 | OTHER_LIBTOOLFLAGS = ""; 740 | PODS_ROOT = "$(SRCROOT)"; 741 | PRODUCT_NAME = Pods_Resolver_Example; 742 | SDKROOT = iphoneos; 743 | SKIP_INSTALL = YES; 744 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 745 | TARGETED_DEVICE_FAMILY = "1,2"; 746 | VERSIONING_SYSTEM = "apple-generic"; 747 | VERSION_INFO_PREFIX = ""; 748 | }; 749 | name = Debug; 750 | }; 751 | /* End XCBuildConfiguration section */ 752 | 753 | /* Begin XCConfigurationList section */ 754 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 755 | isa = XCConfigurationList; 756 | buildConfigurations = ( 757 | 552D02D5BA751AC2E8790D2811D496CA /* Debug */, 758 | 10DE1947DAC0ED28F6C0A9F9BD75D546 /* Release */, 759 | ); 760 | defaultConfigurationIsVisible = 0; 761 | defaultConfigurationName = Release; 762 | }; 763 | 6CDBF4D2671C22312BFAA7281C92BD03 /* Build configuration list for PBXNativeTarget "Pods-Resolver_Tests" */ = { 764 | isa = XCConfigurationList; 765 | buildConfigurations = ( 766 | 74D3FA2F2A143CED4ABB86D364476841 /* Debug */, 767 | CD8231F61E31CF2854F1E16A1AEE5A78 /* Release */, 768 | ); 769 | defaultConfigurationIsVisible = 0; 770 | defaultConfigurationName = Release; 771 | }; 772 | 8C4D68C51D60DB1FB7BD6449CFB54DF2 /* Build configuration list for PBXNativeTarget "Resolver-Resolver" */ = { 773 | isa = XCConfigurationList; 774 | buildConfigurations = ( 775 | DDDB0239EAC7E9DD9395C8FD2827EA5D /* Debug */, 776 | 9946D078EF814AA24291DCA653DEE3FF /* Release */, 777 | ); 778 | defaultConfigurationIsVisible = 0; 779 | defaultConfigurationName = Release; 780 | }; 781 | B6997707F9B8728551166E1E22014771 /* Build configuration list for PBXNativeTarget "Resolver" */ = { 782 | isa = XCConfigurationList; 783 | buildConfigurations = ( 784 | D298E33B5D07ED09341AE437494AED69 /* Debug */, 785 | A7BC337183FCFB0918AFC302169382DC /* Release */, 786 | ); 787 | defaultConfigurationIsVisible = 0; 788 | defaultConfigurationName = Release; 789 | }; 790 | F0A5DA3EB75BE2B63CACDA46700A3CE5 /* Build configuration list for PBXNativeTarget "Pods-Resolver_Example" */ = { 791 | isa = XCConfigurationList; 792 | buildConfigurations = ( 793 | F91F95B0A5806E0EA7C019A540D7338B /* Debug */, 794 | 5D4FAC12F620E56154BAD88134E712C2 /* Release */, 795 | ); 796 | defaultConfigurationIsVisible = 0; 797 | defaultConfigurationName = Release; 798 | }; 799 | /* End XCConfigurationList section */ 800 | }; 801 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 802 | } 803 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Resolver.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 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-Resolver_Example/Pods-Resolver_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## Resolver 5 | 6 | Copyright (c) 2015 Khoa Pham 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 - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_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) 2015 Khoa Pham <onmyway133@gmail.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 | Title 38 | Resolver 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Resolver_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Resolver_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "Pods-Resolver_Example/Resolver.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "Pods-Resolver_Example/Resolver.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_Resolver_ExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_Resolver_ExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Resolver.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "Resolver" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-Resolver_Example 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Resolver_Example { 2 | umbrella header "Pods-Resolver_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Resolver.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "Resolver" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-Resolver_Example 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 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-Resolver_Tests/Pods-Resolver_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## Resolver 5 | 6 | Copyright (c) 2015 Khoa Pham 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 - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_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 | Copyright (c) 2015 Khoa Pham <onmyway133@gmail.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 | Title 38 | Resolver 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Resolver_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Resolver_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "Pods-Resolver_Tests/Resolver.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "Pods-Resolver_Tests/Resolver.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_Resolver_TestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_Resolver_TestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Resolver.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "Resolver" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-Resolver_Tests 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Resolver_Tests { 2 | umbrella header "Pods-Resolver_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Resolver.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "Resolver" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-Resolver_Tests 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Resolver/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 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/Resolver/Resolver-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Resolver : NSObject 3 | @end 4 | @implementation PodsDummy_Resolver 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Resolver/Resolver-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Resolver/Resolver-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double ResolverVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char ResolverVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Resolver/Resolver.modulemap: -------------------------------------------------------------------------------- 1 | framework module Resolver { 2 | umbrella header "Resolver-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Resolver/Resolver.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Resolver" "${PODS_ROOT}/Headers/Public" 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_ROOT = ${SRCROOT} 5 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Example/Resolver.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 42C97C2FBCB5AE8572804D63 /* Pods_Resolver_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 13A72080F9D39BDA9189726B /* Pods_Resolver_Example.framework */; }; 11 | 52E57E0A45596AF790AC7C45 /* Pods_Resolver_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04702AC0CF05CD455BAA9740 /* Pods_Resolver_Tests.framework */; }; 12 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 13 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 14 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 15 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 16 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 17 | D2FC260D1C23B657002842C0 /* ResolverTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2FC260C1C23B657002842C0 /* ResolverTests.swift */; }; 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 = Resolver; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 04702AC0CF05CD455BAA9740 /* Pods_Resolver_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Resolver_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 0777E90B9237345E5CD0F1AE /* Pods-Resolver_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Resolver_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example.release.xcconfig"; sourceTree = ""; }; 33 | 13A72080F9D39BDA9189726B /* Pods_Resolver_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Resolver_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 1B0735C861B37AE0C621CC79 /* Pods-Resolver_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Resolver_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example.debug.xcconfig"; sourceTree = ""; }; 35 | 29F77BC6F3A681E5805318C9 /* Resolver.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Resolver.podspec; path = ../Resolver.podspec; sourceTree = ""; }; 36 | 607FACD01AFB9204008FA782 /* Resolver_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Resolver_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 40 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 42 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 43 | 607FACE51AFB9204008FA782 /* Resolver_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Resolver_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 65C05C716277AACE50132715 /* Pods-Resolver_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Resolver_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests.release.xcconfig"; sourceTree = ""; }; 46 | 82E252C21C67A461B78643E6 /* Pods-Resolver_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Resolver_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests.debug.xcconfig"; sourceTree = ""; }; 47 | 8E44DA003E59A02995879348 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 48 | BC64A8A706C681E027DE36F8 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 49 | D2FC260C1C23B657002842C0 /* ResolverTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResolverTests.swift; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 42C97C2FBCB5AE8572804D63 /* Pods_Resolver_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 52E57E0A45596AF790AC7C45 /* Pods_Resolver_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 5F4970C21218DDDFEBDA0289 /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 1B0735C861B37AE0C621CC79 /* Pods-Resolver_Example.debug.xcconfig */, 76 | 0777E90B9237345E5CD0F1AE /* Pods-Resolver_Example.release.xcconfig */, 77 | 82E252C21C67A461B78643E6 /* Pods-Resolver_Tests.debug.xcconfig */, 78 | 65C05C716277AACE50132715 /* Pods-Resolver_Tests.release.xcconfig */, 79 | ); 80 | name = Pods; 81 | sourceTree = ""; 82 | }; 83 | 607FACC71AFB9204008FA782 = { 84 | isa = PBXGroup; 85 | children = ( 86 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 87 | 607FACD21AFB9204008FA782 /* Example for Resolver */, 88 | 607FACE81AFB9204008FA782 /* Tests */, 89 | 607FACD11AFB9204008FA782 /* Products */, 90 | 5F4970C21218DDDFEBDA0289 /* Pods */, 91 | DB56D61362A92AF8D1C159F2 /* Frameworks */, 92 | ); 93 | sourceTree = ""; 94 | }; 95 | 607FACD11AFB9204008FA782 /* Products */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 607FACD01AFB9204008FA782 /* Resolver_Example.app */, 99 | 607FACE51AFB9204008FA782 /* Resolver_Tests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 607FACD21AFB9204008FA782 /* Example for Resolver */ = { 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 Resolver"; 115 | path = Resolver; 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 | D2FC260C1C23B657002842C0 /* ResolverTests.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 | 29F77BC6F3A681E5805318C9 /* Resolver.podspec */, 147 | 8E44DA003E59A02995879348 /* README.md */, 148 | BC64A8A706C681E027DE36F8 /* LICENSE */, 149 | ); 150 | name = "Podspec Metadata"; 151 | sourceTree = ""; 152 | }; 153 | DB56D61362A92AF8D1C159F2 /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 13A72080F9D39BDA9189726B /* Pods_Resolver_Example.framework */, 157 | 04702AC0CF05CD455BAA9740 /* Pods_Resolver_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* Resolver_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Resolver_Example" */; 168 | buildPhases = ( 169 | 2776B33BD26279483473F111 /* Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 6F6B42F5408A0F5818BACD8B /* Embed Pods Frameworks */, 174 | 0860C7CD7863EE8F349E5150 /* Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = Resolver_Example; 181 | productName = Resolver; 182 | productReference = 607FACD01AFB9204008FA782 /* Resolver_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* Resolver_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Resolver_Tests" */; 188 | buildPhases = ( 189 | F7BC6FB8923D2C7091F88A9C /* Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | B16582B50E1F1E92DC8E7308 /* Embed Pods Frameworks */, 194 | F6C28343CDB4A41889C4ED2E /* Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = Resolver_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* Resolver_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0710; 213 | LastUpgradeCheck = 0630; 214 | ORGANIZATIONNAME = Fantageek; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | }; 219 | 607FACE41AFB9204008FA782 = { 220 | CreatedOnToolsVersion = 6.3.1; 221 | TestTargetID = 607FACCF1AFB9204008FA782; 222 | }; 223 | }; 224 | }; 225 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Resolver" */; 226 | compatibilityVersion = "Xcode 3.2"; 227 | developmentRegion = English; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* Resolver_Example */, 239 | 607FACE41AFB9204008FA782 /* Resolver_Tests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 607FACCE1AFB9204008FA782 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 250 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 251 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 607FACE31AFB9204008FA782 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | /* End PBXResourcesBuildPhase section */ 263 | 264 | /* Begin PBXShellScriptBuildPhase section */ 265 | 0860C7CD7863EE8F349E5150 /* Copy Pods Resources */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | ); 272 | name = "Copy Pods Resources"; 273 | outputPaths = ( 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | shellPath = /bin/sh; 277 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example-resources.sh\"\n"; 278 | showEnvVarsInLog = 0; 279 | }; 280 | 2776B33BD26279483473F111 /* Check Pods Manifest.lock */ = { 281 | isa = PBXShellScriptBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ); 285 | inputPaths = ( 286 | ); 287 | name = "Check Pods Manifest.lock"; 288 | outputPaths = ( 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | shellPath = /bin/sh; 292 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 293 | showEnvVarsInLog = 0; 294 | }; 295 | 6F6B42F5408A0F5818BACD8B /* Embed Pods Frameworks */ = { 296 | isa = PBXShellScriptBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | inputPaths = ( 301 | ); 302 | name = "Embed Pods Frameworks"; 303 | outputPaths = ( 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | shellPath = /bin/sh; 307 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Resolver_Example/Pods-Resolver_Example-frameworks.sh\"\n"; 308 | showEnvVarsInLog = 0; 309 | }; 310 | B16582B50E1F1E92DC8E7308 /* Embed Pods Frameworks */ = { 311 | isa = PBXShellScriptBuildPhase; 312 | buildActionMask = 2147483647; 313 | files = ( 314 | ); 315 | inputPaths = ( 316 | ); 317 | name = "Embed Pods Frameworks"; 318 | outputPaths = ( 319 | ); 320 | runOnlyForDeploymentPostprocessing = 0; 321 | shellPath = /bin/sh; 322 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests-frameworks.sh\"\n"; 323 | showEnvVarsInLog = 0; 324 | }; 325 | F6C28343CDB4A41889C4ED2E /* Copy Pods Resources */ = { 326 | isa = PBXShellScriptBuildPhase; 327 | buildActionMask = 2147483647; 328 | files = ( 329 | ); 330 | inputPaths = ( 331 | ); 332 | name = "Copy Pods Resources"; 333 | outputPaths = ( 334 | ); 335 | runOnlyForDeploymentPostprocessing = 0; 336 | shellPath = /bin/sh; 337 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Resolver_Tests/Pods-Resolver_Tests-resources.sh\"\n"; 338 | showEnvVarsInLog = 0; 339 | }; 340 | F7BC6FB8923D2C7091F88A9C /* Check Pods Manifest.lock */ = { 341 | isa = PBXShellScriptBuildPhase; 342 | buildActionMask = 2147483647; 343 | files = ( 344 | ); 345 | inputPaths = ( 346 | ); 347 | name = "Check Pods Manifest.lock"; 348 | outputPaths = ( 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | shellPath = /bin/sh; 352 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 353 | showEnvVarsInLog = 0; 354 | }; 355 | /* End PBXShellScriptBuildPhase section */ 356 | 357 | /* Begin PBXSourcesBuildPhase section */ 358 | 607FACCC1AFB9204008FA782 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 363 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | 607FACE11AFB9204008FA782 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | D2FC260D1C23B657002842C0 /* ResolverTests.swift in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | /* End PBXSourcesBuildPhase section */ 376 | 377 | /* Begin PBXTargetDependency section */ 378 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 379 | isa = PBXTargetDependency; 380 | target = 607FACCF1AFB9204008FA782 /* Resolver_Example */; 381 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 382 | }; 383 | /* End PBXTargetDependency section */ 384 | 385 | /* Begin PBXVariantGroup section */ 386 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 387 | isa = PBXVariantGroup; 388 | children = ( 389 | 607FACDA1AFB9204008FA782 /* Base */, 390 | ); 391 | name = Main.storyboard; 392 | sourceTree = ""; 393 | }; 394 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 395 | isa = PBXVariantGroup; 396 | children = ( 397 | 607FACDF1AFB9204008FA782 /* Base */, 398 | ); 399 | name = LaunchScreen.xib; 400 | sourceTree = ""; 401 | }; 402 | /* End PBXVariantGroup section */ 403 | 404 | /* Begin XCBuildConfiguration section */ 405 | 607FACED1AFB9204008FA782 /* Debug */ = { 406 | isa = XCBuildConfiguration; 407 | buildSettings = { 408 | ALWAYS_SEARCH_USER_PATHS = NO; 409 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 410 | CLANG_CXX_LIBRARY = "libc++"; 411 | CLANG_ENABLE_MODULES = YES; 412 | CLANG_ENABLE_OBJC_ARC = YES; 413 | CLANG_WARN_BOOL_CONVERSION = YES; 414 | CLANG_WARN_CONSTANT_CONVERSION = YES; 415 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 416 | CLANG_WARN_EMPTY_BODY = YES; 417 | CLANG_WARN_ENUM_CONVERSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 420 | CLANG_WARN_UNREACHABLE_CODE = YES; 421 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 423 | COPY_PHASE_STRIP = NO; 424 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | GCC_C_LANGUAGE_STANDARD = gnu99; 427 | GCC_DYNAMIC_NO_PIC = NO; 428 | GCC_NO_COMMON_BLOCKS = YES; 429 | GCC_OPTIMIZATION_LEVEL = 0; 430 | GCC_PREPROCESSOR_DEFINITIONS = ( 431 | "DEBUG=1", 432 | "$(inherited)", 433 | ); 434 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 435 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 436 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 437 | GCC_WARN_UNDECLARED_SELECTOR = YES; 438 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 439 | GCC_WARN_UNUSED_FUNCTION = YES; 440 | GCC_WARN_UNUSED_VARIABLE = YES; 441 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 442 | MTL_ENABLE_DEBUG_INFO = YES; 443 | ONLY_ACTIVE_ARCH = YES; 444 | SDKROOT = iphoneos; 445 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 446 | }; 447 | name = Debug; 448 | }; 449 | 607FACEE1AFB9204008FA782 /* Release */ = { 450 | isa = XCBuildConfiguration; 451 | buildSettings = { 452 | ALWAYS_SEARCH_USER_PATHS = NO; 453 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 454 | CLANG_CXX_LIBRARY = "libc++"; 455 | CLANG_ENABLE_MODULES = YES; 456 | CLANG_ENABLE_OBJC_ARC = YES; 457 | CLANG_WARN_BOOL_CONVERSION = YES; 458 | CLANG_WARN_CONSTANT_CONVERSION = YES; 459 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 460 | CLANG_WARN_EMPTY_BODY = YES; 461 | CLANG_WARN_ENUM_CONVERSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 464 | CLANG_WARN_UNREACHABLE_CODE = YES; 465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 467 | COPY_PHASE_STRIP = NO; 468 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 469 | ENABLE_NS_ASSERTIONS = NO; 470 | ENABLE_STRICT_OBJC_MSGSEND = YES; 471 | GCC_C_LANGUAGE_STANDARD = gnu99; 472 | GCC_NO_COMMON_BLOCKS = YES; 473 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 474 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 475 | GCC_WARN_UNDECLARED_SELECTOR = YES; 476 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 477 | GCC_WARN_UNUSED_FUNCTION = YES; 478 | GCC_WARN_UNUSED_VARIABLE = YES; 479 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 480 | MTL_ENABLE_DEBUG_INFO = NO; 481 | SDKROOT = iphoneos; 482 | VALIDATE_PRODUCT = YES; 483 | }; 484 | name = Release; 485 | }; 486 | 607FACF01AFB9204008FA782 /* Debug */ = { 487 | isa = XCBuildConfiguration; 488 | baseConfigurationReference = 1B0735C861B37AE0C621CC79 /* Pods-Resolver_Example.debug.xcconfig */; 489 | buildSettings = { 490 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 491 | INFOPLIST_FILE = Resolver/Info.plist; 492 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 493 | MODULE_NAME = ExampleApp; 494 | PRODUCT_NAME = "$(TARGET_NAME)"; 495 | }; 496 | name = Debug; 497 | }; 498 | 607FACF11AFB9204008FA782 /* Release */ = { 499 | isa = XCBuildConfiguration; 500 | baseConfigurationReference = 0777E90B9237345E5CD0F1AE /* Pods-Resolver_Example.release.xcconfig */; 501 | buildSettings = { 502 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 503 | INFOPLIST_FILE = Resolver/Info.plist; 504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 505 | MODULE_NAME = ExampleApp; 506 | PRODUCT_NAME = "$(TARGET_NAME)"; 507 | }; 508 | name = Release; 509 | }; 510 | 607FACF31AFB9204008FA782 /* Debug */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = 82E252C21C67A461B78643E6 /* Pods-Resolver_Tests.debug.xcconfig */; 513 | buildSettings = { 514 | BUNDLE_LOADER = "$(TEST_HOST)"; 515 | FRAMEWORK_SEARCH_PATHS = ( 516 | "$(SDKROOT)/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_NAME = "$(TARGET_NAME)"; 526 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Resolver_Example.app/Resolver_Example"; 527 | }; 528 | name = Debug; 529 | }; 530 | 607FACF41AFB9204008FA782 /* Release */ = { 531 | isa = XCBuildConfiguration; 532 | baseConfigurationReference = 65C05C716277AACE50132715 /* Pods-Resolver_Tests.release.xcconfig */; 533 | buildSettings = { 534 | BUNDLE_LOADER = "$(TEST_HOST)"; 535 | FRAMEWORK_SEARCH_PATHS = ( 536 | "$(SDKROOT)/Developer/Library/Frameworks", 537 | "$(inherited)", 538 | ); 539 | INFOPLIST_FILE = Tests/Info.plist; 540 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 541 | PRODUCT_NAME = "$(TARGET_NAME)"; 542 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Resolver_Example.app/Resolver_Example"; 543 | }; 544 | name = Release; 545 | }; 546 | /* End XCBuildConfiguration section */ 547 | 548 | /* Begin XCConfigurationList section */ 549 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Resolver" */ = { 550 | isa = XCConfigurationList; 551 | buildConfigurations = ( 552 | 607FACED1AFB9204008FA782 /* Debug */, 553 | 607FACEE1AFB9204008FA782 /* Release */, 554 | ); 555 | defaultConfigurationIsVisible = 0; 556 | defaultConfigurationName = Release; 557 | }; 558 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Resolver_Example" */ = { 559 | isa = XCConfigurationList; 560 | buildConfigurations = ( 561 | 607FACF01AFB9204008FA782 /* Debug */, 562 | 607FACF11AFB9204008FA782 /* Release */, 563 | ); 564 | defaultConfigurationIsVisible = 0; 565 | defaultConfigurationName = Release; 566 | }; 567 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "Resolver_Tests" */ = { 568 | isa = XCConfigurationList; 569 | buildConfigurations = ( 570 | 607FACF31AFB9204008FA782 /* Debug */, 571 | 607FACF41AFB9204008FA782 /* Release */, 572 | ); 573 | defaultConfigurationIsVisible = 0; 574 | defaultConfigurationName = Release; 575 | }; 576 | /* End XCConfigurationList section */ 577 | }; 578 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 579 | } 580 | -------------------------------------------------------------------------------- /Example/Resolver.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Resolver.xcodeproj/xcshareddata/xcschemes/Resolver-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /Example/Resolver.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Resolver/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Resolver 4 | // 5 | // Created by Khoa Pham on 12/17/2015. 6 | // Copyright (c) 2015 Khoa Pham. 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: [NSObject: AnyObject]?) -> 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/Resolver/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/Resolver/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 | -------------------------------------------------------------------------------- /Example/Resolver/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/Resolver/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/Resolver/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Resolver 4 | // 5 | // Created by Khoa Pham on 12/17/2015. 6 | // Copyright (c) 2015 Khoa Pham. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | let a = { r in 17 | r + 1 18 | } 19 | 20 | let b = a(20) 21 | let c = a.dynamicType 22 | print(c) 23 | } 24 | 25 | override func didReceiveMemoryWarning() { 26 | super.didReceiveMemoryWarning() 27 | // Dispose of any resources that can be recreated. 28 | } 29 | 30 | } 31 | 32 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.cocoapods.$(PRODUCT_NAME:rfc1034identifier) 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/ResolverTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ResolverTests.swift 3 | // Resolver 4 | // 5 | // Created by Khoa Pham on 12/18/15. 6 | // Copyright © 2015 Fantageek. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import Resolver 11 | 12 | protocol AnimalType { 13 | var name: String? { get } 14 | } 15 | 16 | class Cat: AnimalType { 17 | let name: String? 18 | 19 | init(name: String?) { 20 | self.name = name 21 | } 22 | } 23 | 24 | protocol PersonType { 25 | var pet: AnimalType { get } 26 | func play() -> String 27 | } 28 | 29 | class PetOwner: PersonType { 30 | let pet: AnimalType 31 | 32 | init(pet: AnimalType) { 33 | self.pet = pet 34 | } 35 | 36 | func play() -> String { 37 | let name = pet.name ?? "someone" 38 | return "I'm playing with \(name)." 39 | } 40 | } 41 | 42 | class ResolverTests: XCTestCase { 43 | func testSimple() { 44 | let resolver = Resolver() 45 | resolver.register { 46 | Cat(name: "tom") as AnimalType 47 | } 48 | 49 | let cat = try! resolver.resolve() as AnimalType 50 | XCTAssert(cat.name == "tom") 51 | } 52 | 53 | func testTag() { 54 | let resolver = Resolver() 55 | resolver.register(tag: "tom") { 56 | Cat(name: "tom") as AnimalType 57 | } 58 | 59 | resolver.register(tag: "meo") { 60 | Cat(name: "meo") as AnimalType 61 | } 62 | 63 | let tom = try! resolver.resolve(tag: "tom") as AnimalType 64 | let meo = try! resolver.resolve(tag: "meo") as AnimalType 65 | 66 | XCTAssert(tom.name == "tom") 67 | XCTAssert(meo.name == "meo") 68 | } 69 | 70 | func testArgument() { 71 | let resolver = Resolver() 72 | 73 | resolver.register { 74 | Cat(name: "tom") as AnimalType 75 | } 76 | 77 | resolver.register { cat in 78 | PetOwner(pet: cat) as PersonType 79 | } 80 | 81 | let cat = try! resolver.resolve() as AnimalType 82 | let owner = try! resolver.resolve(arg1: cat) as PersonType 83 | 84 | XCTAssert(owner.pet.name == "tom") 85 | XCTAssert(owner.play() == "I'm playing with tom.") 86 | } 87 | 88 | func testSingleton() { 89 | let cat = Cat(name: "tom") as AnimalType 90 | 91 | let resolver = Resolver() 92 | resolver.registerSingleton(cat) 93 | 94 | let someCat = try! resolver.resolve() as AnimalType 95 | XCTAssert(someCat as! Cat === cat as! Cat) 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Khoa Pham 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 | -------------------------------------------------------------------------------- /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/Resolver/02edd3dce8fc0ebfb99f93b93c55e30ac95714d4/Pod/Assets/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/Resolver/02edd3dce8fc0ebfb99f93b93c55e30ac95714d4/Pod/Classes/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/Container.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Container.swift 3 | // Pods 4 | // 5 | // Created by Khoa Pham on 12/18/15. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | struct Container { 12 | var registrations = [RegistrationKey: RegistrationType]() 13 | 14 | mutating func register(tag tag: String? = nil, factory: F) { 15 | let key = RegistrationKey(tag: tag ?? "", factoryType: F.self) 16 | let registration = Registration(factory: factory) 17 | 18 | registrations[key] = registration 19 | } 20 | 21 | func resolve(tag tag: String? = nil, builder: F -> T) throws -> T { 22 | let key = RegistrationKey(tag: tag ?? "", factoryType: F.self) 23 | 24 | if let registration = registrations[key] as? Registration { 25 | return builder(registration.factory) 26 | } else { 27 | throw ResolverError.RegistrationNotFound 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Pod/Classes/Registration.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Registration.swift 3 | // Pods 4 | // 5 | // Created by Khoa Pham on 12/17/15. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | struct Registration { 12 | let factory: F 13 | } 14 | 15 | extension Registration: RegistrationType { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Pod/Classes/RegistrationKey.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RegistrationKey.swift 3 | // Pods 4 | // 5 | // Created by Khoa Pham on 12/18/15. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | struct RegistrationKey { 12 | let tag: String 13 | let factoryType: Any.Type 14 | 15 | func key() -> String { 16 | return String(tag) + String(factoryType) 17 | } 18 | } 19 | 20 | extension RegistrationKey: Equatable, Hashable { 21 | var hashValue: Int { 22 | get { 23 | return key().hashValue 24 | } 25 | } 26 | } 27 | 28 | func ==(l: RegistrationKey, r: RegistrationKey) -> Bool { 29 | return l.tag == r.tag 30 | && l.factoryType == r.factoryType 31 | } 32 | -------------------------------------------------------------------------------- /Pod/Classes/RegistrationType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RegistrationType.swift 3 | // Pods 4 | // 5 | // Created by Khoa Pham on 12/18/15. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | protocol RegistrationType { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Pod/Classes/Resolver.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Resolver.swift 3 | // Pods 4 | // 5 | // Created by Khoa Pham on 12/17/15. 6 | // Copyright © 2015 Fantageek. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public class Resolver { 12 | var container = Container() 13 | 14 | public init(@noescape configure: Resolver -> Void = { _ in }) { 15 | configure(self) 16 | } 17 | } 18 | 19 | public extension Resolver { 20 | func registerSingleton(singleton: T) { 21 | register { 22 | singleton 23 | } 24 | } 25 | 26 | func register(tag tag: String? = nil, factory: () -> T) { 27 | container.register(tag: tag, factory: factory) 28 | } 29 | 30 | func resolve(tag tag: String? = nil) throws -> T { 31 | return try container.resolve(tag: tag, builder: { (f: () -> T) in 32 | f() 33 | }) 34 | } 35 | } 36 | 37 | public extension Resolver { 38 | func register(tag tag: String? = nil, factory: (Arg1) -> T) { 39 | container.register(tag: tag, factory: factory) 40 | } 41 | 42 | func resolve(tag tag: String? = nil, arg1: Agr1) throws -> T { 43 | return try container.resolve(tag: tag, builder: { (f: (arg1: Agr1) -> T) in 44 | f(arg1: arg1) 45 | }) 46 | } 47 | } 48 | 49 | public extension Resolver { 50 | func register(tag tag: String? = nil, factory: (Arg1, Arg2) -> T) { 51 | container.register(tag: tag, factory: factory) 52 | } 53 | 54 | func resolve(tag tag: String? = nil, arg1: Agr1, arg2: Arg2) throws -> T { 55 | return try container.resolve(tag: tag, builder: { (f: (arg1: Agr1, arg2: Arg2) -> T) in 56 | f(arg1: arg1, arg2: arg2) 57 | }) 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Pod/Classes/ResolverErrror.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ResolverErrror.swift 3 | // Pods 4 | // 5 | // Created by Khoa Pham on 12/18/15. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | public enum ResolverError: ErrorType { 12 | case RegistrationNotFound 13 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Resolver 2 | 3 | ❤️ Support my app ❤️ 4 | 5 | - [Push Hero - pure Swift native macOS application to test push notifications](https://www.producthunt.com/posts/push-hero-2) 6 | - [PastePal - Pasteboard, note and shortcut manager](https://www.producthunt.com/posts/pastepal) 7 | - [Frame recorder - Recorder gif and video with frame](https://www.producthunt.com/posts/frame-recorder) 8 | - [Alias - App and file shortcut manager](https://www.producthunt.com/posts/alias-shortcut-manager) 9 | - [Other apps](https://onmyway133.github.io/projects/) 10 | 11 | ❤️❤️😇😍🤘❤️❤️ 12 | 13 | A simple resolver for Swift 14 | 15 | [![CI Status](http://img.shields.io/travis/Khoa Pham/Resolver.svg?style=flat)](https://travis-ci.org/Khoa Pham/Resolver) 16 | [![Version](https://img.shields.io/cocoapods/v/Resolver.svg?style=flat)](http://cocoapods.org/pods/Resolver) 17 | [![License](https://img.shields.io/cocoapods/l/Resolver.svg?style=flat)](http://cocoapods.org/pods/Resolver) 18 | [![Platform](https://img.shields.io/cocoapods/p/Resolver.svg?style=flat)](http://cocoapods.org/pods/Resolver) 19 | 20 | 21 | ## Usage 22 | 23 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 24 | 25 | ## Features 26 | Taking example from [Swinject](https://github.com/Swinject/Swinject) 27 | 28 | Supposed we have classes and protocols like this 29 | 30 | ```swift 31 | protocol AnimalType { 32 | var name: String? { get } 33 | } 34 | 35 | class Cat: AnimalType { 36 | let name: String? 37 | 38 | init(name: String?) { 39 | self.name = name 40 | } 41 | } 42 | 43 | protocol PersonType { 44 | var pet: AnimalType { get } 45 | func play() -> String 46 | } 47 | 48 | class PetOwner: PersonType { 49 | let pet: AnimalType 50 | 51 | init(pet: AnimalType) { 52 | self.pet = pet 53 | } 54 | 55 | func play() -> String { 56 | let name = pet.name ?? "someone" 57 | return "I'm playing with \(name)." 58 | } 59 | } 60 | ``` 61 | 62 | ### Simple factory 63 | 64 | ```swift 65 | let resolver = Resolver() 66 | resolver.register { 67 | Cat(name: "tom") as AnimalType 68 | } 69 | 70 | let cat = try! resolver.resolve() as AnimalType 71 | XCTAssert(cat.name == "tom") 72 | ``` 73 | 74 | ### Tag 75 | 76 | ```swift 77 | let resolver = Resolver() 78 | resolver.register(tag: "tom") { 79 | Cat(name: "tom") as AnimalType 80 | } 81 | 82 | resolver.register(tag: "meo") { 83 | Cat(name: "meo") as AnimalType 84 | } 85 | 86 | let tom = try! resolver.resolve(tag: "tom") as AnimalType 87 | let meo = try! resolver.resolve(tag: "meo") as AnimalType 88 | 89 | XCTAssert(tom.name == "tom") 90 | XCTAssert(meo.name == "meo") 91 | ``` 92 | 93 | ### Argument 94 | 95 | ```swift 96 | let resolver = Resolver() 97 | 98 | resolver.register { 99 | Cat(name: "tom") as AnimalType 100 | } 101 | 102 | resolver.register { cat in 103 | PetOwner(pet: cat) as PersonType 104 | } 105 | 106 | let cat = try! resolver.resolve() as AnimalType 107 | let owner = try! resolver.resolve(arg1: cat) as PersonType 108 | 109 | XCTAssert(owner.pet.name == "tom") 110 | XCTAssert(owner.play() == "I'm playing with tom.") 111 | ``` 112 | 113 | ### Singleton 114 | 115 | ```swift 116 | let cat = Cat(name: "tom") as AnimalType 117 | 118 | let resolver = Resolver() 119 | resolver.registerSingleton(cat) 120 | 121 | let someCat = try! resolver.resolve() as AnimalType 122 | XCTAssert(someCat as! Cat === cat as! Cat) 123 | ``` 124 | 125 | ## Installation 126 | 127 | Resolver is available through [CocoaPods](http://cocoapods.org). To install 128 | it, simply add the following line to your Podfile: 129 | 130 | ```ruby 131 | pod "Resolver" 132 | ``` 133 | 134 | ## Author 135 | 136 | Khoa Pham, onmyway133@gmail.com 137 | 138 | ## License 139 | 140 | Resolver is available under the MIT license. See the LICENSE file for more info. 141 | -------------------------------------------------------------------------------- /Resolver.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "Resolver" 3 | s.version = "0.1.0" 4 | s.summary = "A simple resolver for Swift" 5 | 6 | s.homepage = "https://github.com/onmyway133/Resolver" 7 | # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" 8 | s.license = 'MIT' 9 | s.author = { "Khoa Pham" => "onmyway133@gmail.com" } 10 | s.source = { :git => "https://github.com/onmyway133/Resolver.git", :tag => s.version.to_s } 11 | # s.social_media_url = 'https://twitter.com/onmyway133' 12 | 13 | s.platform = :ios, '8.0' 14 | s.requires_arc = true 15 | 16 | s.source_files = 'Pod/Classes/**/*' 17 | s.resource_bundles = { 18 | 'Resolver' => ['Pod/Assets/*.png'] 19 | } 20 | 21 | # s.public_header_files = 'Pod/Classes/**/*.h' 22 | # s.frameworks = 'UIKit' 23 | # s.dependency 'AFNetworking', '~> 2.3' 24 | end 25 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------