├── .gitignore ├── .travis.yml ├── CNChainWrapper.podspec ├── Example ├── CNChainWrapper.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── CNChainWrapper-Example.xcscheme ├── CNChainWrapper.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── CNChainWrapper │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── CNChainWrapper.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── CNChainWrapper │ │ ├── CNChainWrapper-Info.plist │ │ ├── CNChainWrapper-dummy.m │ │ ├── CNChainWrapper-prefix.pch │ │ ├── CNChainWrapper-umbrella.h │ │ ├── CNChainWrapper.debug.xcconfig │ │ ├── CNChainWrapper.modulemap │ │ └── CNChainWrapper.release.xcconfig │ │ ├── Pods-CNChainWrapper_Example │ │ ├── Pods-CNChainWrapper_Example-Info.plist │ │ ├── Pods-CNChainWrapper_Example-acknowledgements.markdown │ │ ├── Pods-CNChainWrapper_Example-acknowledgements.plist │ │ ├── Pods-CNChainWrapper_Example-dummy.m │ │ ├── Pods-CNChainWrapper_Example-frameworks.sh │ │ ├── Pods-CNChainWrapper_Example-umbrella.h │ │ ├── Pods-CNChainWrapper_Example.debug.xcconfig │ │ ├── Pods-CNChainWrapper_Example.modulemap │ │ └── Pods-CNChainWrapper_Example.release.xcconfig │ │ └── Pods-CNChainWrapper_Tests │ │ ├── Pods-CNChainWrapper_Tests-Info.plist │ │ ├── Pods-CNChainWrapper_Tests-acknowledgements.markdown │ │ ├── Pods-CNChainWrapper_Tests-acknowledgements.plist │ │ ├── Pods-CNChainWrapper_Tests-dummy.m │ │ ├── Pods-CNChainWrapper_Tests-umbrella.h │ │ ├── Pods-CNChainWrapper_Tests.debug.xcconfig │ │ ├── Pods-CNChainWrapper_Tests.modulemap │ │ └── Pods-CNChainWrapper_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── Sources ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── CNChainWrapper.swift └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # macOS 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/CNChainWrapper.xcworkspace -scheme CNChainWrapper-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /CNChainWrapper.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint CNChainWrapper.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'CNChainWrapper' 11 | s.version = '1.0.1' 12 | s.summary = 'Swift implements chain programming elegantly.' 13 | s.license = { :type => 'MIT', :file => 'LICENSE' } 14 | s.homepage = 'https://github.com/CouchNut/CNChainWrapper' 15 | s.author = { 'CouchNut' => 'yit_copper@163.com' } 16 | s.ios.deployment_target = '12.0' 17 | s.swift_version = '5.0' 18 | s.source = { :git => 'https://github.com/CouchNut/CNChainWrapper.git', :tag => s.version.to_s } 19 | s.source_files = 'Sources/Classes/**/*' 20 | s.requires_arc = true 21 | end 22 | -------------------------------------------------------------------------------- /Example/CNChainWrapper.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 16 | 641FCD9CA81933041C50A091 /* Pods_CNChainWrapper_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73962719EA395B4593785FF7 /* Pods_CNChainWrapper_Example.framework */; }; 17 | B6399B9EBC2DB8B8BA98067B /* Pods_CNChainWrapper_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E47AC57DA42CED0BFF9B54A /* Pods_CNChainWrapper_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = CNChainWrapper; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 006594D37192A57984B665A9 /* Pods-CNChainWrapper_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNChainWrapper_Tests.release.xcconfig"; path = "Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests.release.xcconfig"; sourceTree = ""; }; 32 | 428CA77E9953919D273C7AAB /* Pods-CNChainWrapper_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNChainWrapper_Example.debug.xcconfig"; path = "Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example.debug.xcconfig"; sourceTree = ""; }; 33 | 493F6A40DD312ADDBDAC79B6 /* CNChainWrapper.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CNChainWrapper.podspec; path = ../CNChainWrapper.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 34 | 5E47AC57DA42CED0BFF9B54A /* Pods_CNChainWrapper_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNChainWrapper_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD01AFB9204008FA782 /* CNChainWrapper_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNChainWrapper_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* CNChainWrapper_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CNChainWrapper_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 6CE3D82476D508C1E4EC3DAB /* Pods-CNChainWrapper_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNChainWrapper_Tests.debug.xcconfig"; path = "Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests.debug.xcconfig"; sourceTree = ""; }; 46 | 73962719EA395B4593785FF7 /* Pods_CNChainWrapper_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNChainWrapper_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | A2491CC372B4F96750ACAACB /* Pods-CNChainWrapper_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNChainWrapper_Example.release.xcconfig"; path = "Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example.release.xcconfig"; sourceTree = ""; }; 48 | BA4C9DC545CF113277CCF2D3 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 49 | F1AF45A213015F11CF916CB7 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 641FCD9CA81933041C50A091 /* Pods_CNChainWrapper_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | B6399B9EBC2DB8B8BA98067B /* Pods_CNChainWrapper_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 3E9FE81F340E253FABACB040 /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 428CA77E9953919D273C7AAB /* Pods-CNChainWrapper_Example.debug.xcconfig */, 76 | A2491CC372B4F96750ACAACB /* Pods-CNChainWrapper_Example.release.xcconfig */, 77 | 6CE3D82476D508C1E4EC3DAB /* Pods-CNChainWrapper_Tests.debug.xcconfig */, 78 | 006594D37192A57984B665A9 /* Pods-CNChainWrapper_Tests.release.xcconfig */, 79 | ); 80 | path = Pods; 81 | sourceTree = ""; 82 | }; 83 | 607FACC71AFB9204008FA782 = { 84 | isa = PBXGroup; 85 | children = ( 86 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 87 | 607FACD21AFB9204008FA782 /* Example for CNChainWrapper */, 88 | 607FACE81AFB9204008FA782 /* Tests */, 89 | 607FACD11AFB9204008FA782 /* Products */, 90 | 3E9FE81F340E253FABACB040 /* Pods */, 91 | D0175218486DA83609DE5B1F /* Frameworks */, 92 | ); 93 | sourceTree = ""; 94 | }; 95 | 607FACD11AFB9204008FA782 /* Products */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 607FACD01AFB9204008FA782 /* CNChainWrapper_Example.app */, 99 | 607FACE51AFB9204008FA782 /* CNChainWrapper_Tests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 607FACD21AFB9204008FA782 /* Example for CNChainWrapper */ = { 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 CNChainWrapper"; 115 | path = CNChainWrapper; 116 | sourceTree = ""; 117 | }; 118 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 607FACD41AFB9204008FA782 /* Info.plist */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | 607FACE81AFB9204008FA782 /* Tests */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 130 | 607FACE91AFB9204008FA782 /* Supporting Files */, 131 | ); 132 | path = Tests; 133 | sourceTree = ""; 134 | }; 135 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACEA1AFB9204008FA782 /* Info.plist */, 139 | ); 140 | name = "Supporting Files"; 141 | sourceTree = ""; 142 | }; 143 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 493F6A40DD312ADDBDAC79B6 /* CNChainWrapper.podspec */, 147 | F1AF45A213015F11CF916CB7 /* README.md */, 148 | BA4C9DC545CF113277CCF2D3 /* LICENSE */, 149 | ); 150 | name = "Podspec Metadata"; 151 | sourceTree = ""; 152 | }; 153 | D0175218486DA83609DE5B1F /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 73962719EA395B4593785FF7 /* Pods_CNChainWrapper_Example.framework */, 157 | 5E47AC57DA42CED0BFF9B54A /* Pods_CNChainWrapper_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* CNChainWrapper_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CNChainWrapper_Example" */; 168 | buildPhases = ( 169 | 82744A1C9B25BF952C447E3C /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 252EF3347427C632F43911CE /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = CNChainWrapper_Example; 180 | productName = CNChainWrapper; 181 | productReference = 607FACD01AFB9204008FA782 /* CNChainWrapper_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* CNChainWrapper_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CNChainWrapper_Tests" */; 187 | buildPhases = ( 188 | 40D5EFBBB0BF3BBD1AE81C93 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = CNChainWrapper_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* CNChainWrapper_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 0830; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | LastSwiftMigration = 0900; 216 | }; 217 | 607FACE41AFB9204008FA782 = { 218 | CreatedOnToolsVersion = 6.3.1; 219 | LastSwiftMigration = 0900; 220 | TestTargetID = 607FACCF1AFB9204008FA782; 221 | }; 222 | }; 223 | }; 224 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CNChainWrapper" */; 225 | compatibilityVersion = "Xcode 3.2"; 226 | developmentRegion = English; 227 | hasScannedForEncodings = 0; 228 | knownRegions = ( 229 | English, 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* CNChainWrapper_Example */, 239 | 607FACE41AFB9204008FA782 /* CNChainWrapper_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 | 252EF3347427C632F43911CE /* [CP] Embed Pods Frameworks */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | "${PODS_ROOT}/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-frameworks.sh", 272 | "${BUILT_PRODUCTS_DIR}/CNChainWrapper/CNChainWrapper.framework", 273 | ); 274 | name = "[CP] Embed Pods Frameworks"; 275 | outputPaths = ( 276 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNChainWrapper.framework", 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | shellPath = /bin/sh; 280 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-frameworks.sh\"\n"; 281 | showEnvVarsInLog = 0; 282 | }; 283 | 40D5EFBBB0BF3BBD1AE81C93 /* [CP] Check Pods Manifest.lock */ = { 284 | isa = PBXShellScriptBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | ); 288 | inputFileListPaths = ( 289 | ); 290 | inputPaths = ( 291 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 292 | "${PODS_ROOT}/Manifest.lock", 293 | ); 294 | name = "[CP] Check Pods Manifest.lock"; 295 | outputFileListPaths = ( 296 | ); 297 | outputPaths = ( 298 | "$(DERIVED_FILE_DIR)/Pods-CNChainWrapper_Tests-checkManifestLockResult.txt", 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | shellPath = /bin/sh; 302 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 303 | showEnvVarsInLog = 0; 304 | }; 305 | 82744A1C9B25BF952C447E3C /* [CP] Check Pods Manifest.lock */ = { 306 | isa = PBXShellScriptBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | inputFileListPaths = ( 311 | ); 312 | inputPaths = ( 313 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 314 | "${PODS_ROOT}/Manifest.lock", 315 | ); 316 | name = "[CP] Check Pods Manifest.lock"; 317 | outputFileListPaths = ( 318 | ); 319 | outputPaths = ( 320 | "$(DERIVED_FILE_DIR)/Pods-CNChainWrapper_Example-checkManifestLockResult.txt", 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | /* End PBXShellScriptBuildPhase section */ 328 | 329 | /* Begin PBXSourcesBuildPhase section */ 330 | 607FACCC1AFB9204008FA782 /* Sources */ = { 331 | isa = PBXSourcesBuildPhase; 332 | buildActionMask = 2147483647; 333 | files = ( 334 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 335 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | 607FACE11AFB9204008FA782 /* Sources */ = { 340 | isa = PBXSourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | /* End PBXSourcesBuildPhase section */ 348 | 349 | /* Begin PBXTargetDependency section */ 350 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 351 | isa = PBXTargetDependency; 352 | target = 607FACCF1AFB9204008FA782 /* CNChainWrapper_Example */; 353 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 354 | }; 355 | /* End PBXTargetDependency section */ 356 | 357 | /* Begin PBXVariantGroup section */ 358 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 359 | isa = PBXVariantGroup; 360 | children = ( 361 | 607FACDA1AFB9204008FA782 /* Base */, 362 | ); 363 | name = Main.storyboard; 364 | sourceTree = ""; 365 | }; 366 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 367 | isa = PBXVariantGroup; 368 | children = ( 369 | 607FACDF1AFB9204008FA782 /* Base */, 370 | ); 371 | name = LaunchScreen.xib; 372 | sourceTree = ""; 373 | }; 374 | /* End PBXVariantGroup section */ 375 | 376 | /* Begin XCBuildConfiguration section */ 377 | 607FACED1AFB9204008FA782 /* Debug */ = { 378 | isa = XCBuildConfiguration; 379 | buildSettings = { 380 | ALWAYS_SEARCH_USER_PATHS = NO; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 386 | CLANG_WARN_BOOL_CONVERSION = YES; 387 | CLANG_WARN_COMMA = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 390 | CLANG_WARN_EMPTY_BODY = YES; 391 | CLANG_WARN_ENUM_CONVERSION = YES; 392 | CLANG_WARN_INFINITE_RECURSION = YES; 393 | CLANG_WARN_INT_CONVERSION = YES; 394 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 395 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 397 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 398 | CLANG_WARN_STRICT_PROTOTYPES = YES; 399 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 400 | CLANG_WARN_UNREACHABLE_CODE = YES; 401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 403 | COPY_PHASE_STRIP = NO; 404 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 405 | ENABLE_STRICT_OBJC_MSGSEND = YES; 406 | ENABLE_TESTABILITY = YES; 407 | GCC_C_LANGUAGE_STANDARD = gnu99; 408 | GCC_DYNAMIC_NO_PIC = NO; 409 | GCC_NO_COMMON_BLOCKS = YES; 410 | GCC_OPTIMIZATION_LEVEL = 0; 411 | GCC_PREPROCESSOR_DEFINITIONS = ( 412 | "DEBUG=1", 413 | "$(inherited)", 414 | ); 415 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 417 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 418 | GCC_WARN_UNDECLARED_SELECTOR = YES; 419 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 420 | GCC_WARN_UNUSED_FUNCTION = YES; 421 | GCC_WARN_UNUSED_VARIABLE = YES; 422 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 423 | MTL_ENABLE_DEBUG_INFO = YES; 424 | ONLY_ACTIVE_ARCH = YES; 425 | SDKROOT = iphoneos; 426 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 427 | }; 428 | name = Debug; 429 | }; 430 | 607FACEE1AFB9204008FA782 /* Release */ = { 431 | isa = XCBuildConfiguration; 432 | buildSettings = { 433 | ALWAYS_SEARCH_USER_PATHS = NO; 434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 435 | CLANG_CXX_LIBRARY = "libc++"; 436 | CLANG_ENABLE_MODULES = YES; 437 | CLANG_ENABLE_OBJC_ARC = YES; 438 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 439 | CLANG_WARN_BOOL_CONVERSION = YES; 440 | CLANG_WARN_COMMA = YES; 441 | CLANG_WARN_CONSTANT_CONVERSION = YES; 442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 443 | CLANG_WARN_EMPTY_BODY = YES; 444 | CLANG_WARN_ENUM_CONVERSION = YES; 445 | CLANG_WARN_INFINITE_RECURSION = YES; 446 | CLANG_WARN_INT_CONVERSION = YES; 447 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 448 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 450 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 451 | CLANG_WARN_STRICT_PROTOTYPES = YES; 452 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 453 | CLANG_WARN_UNREACHABLE_CODE = YES; 454 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 455 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 456 | COPY_PHASE_STRIP = NO; 457 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 458 | ENABLE_NS_ASSERTIONS = NO; 459 | ENABLE_STRICT_OBJC_MSGSEND = YES; 460 | GCC_C_LANGUAGE_STANDARD = gnu99; 461 | GCC_NO_COMMON_BLOCKS = YES; 462 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 463 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 464 | GCC_WARN_UNDECLARED_SELECTOR = YES; 465 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 466 | GCC_WARN_UNUSED_FUNCTION = YES; 467 | GCC_WARN_UNUSED_VARIABLE = YES; 468 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 469 | MTL_ENABLE_DEBUG_INFO = NO; 470 | SDKROOT = iphoneos; 471 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 472 | VALIDATE_PRODUCT = YES; 473 | }; 474 | name = Release; 475 | }; 476 | 607FACF01AFB9204008FA782 /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | baseConfigurationReference = 428CA77E9953919D273C7AAB /* Pods-CNChainWrapper_Example.debug.xcconfig */; 479 | buildSettings = { 480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 481 | INFOPLIST_FILE = CNChainWrapper/Info.plist; 482 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 483 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 484 | MODULE_NAME = ExampleApp; 485 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 486 | PRODUCT_NAME = "$(TARGET_NAME)"; 487 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 488 | SWIFT_VERSION = 4.0; 489 | TARGETED_DEVICE_FAMILY = "1,2"; 490 | }; 491 | name = Debug; 492 | }; 493 | 607FACF11AFB9204008FA782 /* Release */ = { 494 | isa = XCBuildConfiguration; 495 | baseConfigurationReference = A2491CC372B4F96750ACAACB /* Pods-CNChainWrapper_Example.release.xcconfig */; 496 | buildSettings = { 497 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 498 | INFOPLIST_FILE = CNChainWrapper/Info.plist; 499 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 500 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 501 | MODULE_NAME = ExampleApp; 502 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 503 | PRODUCT_NAME = "$(TARGET_NAME)"; 504 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 505 | SWIFT_VERSION = 4.0; 506 | TARGETED_DEVICE_FAMILY = "1,2"; 507 | }; 508 | name = Release; 509 | }; 510 | 607FACF31AFB9204008FA782 /* Debug */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = 6CE3D82476D508C1E4EC3DAB /* Pods-CNChainWrapper_Tests.debug.xcconfig */; 513 | buildSettings = { 514 | FRAMEWORK_SEARCH_PATHS = ( 515 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 516 | "$(inherited)", 517 | ); 518 | GCC_PREPROCESSOR_DEFINITIONS = ( 519 | "DEBUG=1", 520 | "$(inherited)", 521 | ); 522 | INFOPLIST_FILE = Tests/Info.plist; 523 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 524 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 525 | PRODUCT_NAME = "$(TARGET_NAME)"; 526 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 527 | SWIFT_VERSION = 4.0; 528 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNChainWrapper_Example.app/CNChainWrapper_Example"; 529 | }; 530 | name = Debug; 531 | }; 532 | 607FACF41AFB9204008FA782 /* Release */ = { 533 | isa = XCBuildConfiguration; 534 | baseConfigurationReference = 006594D37192A57984B665A9 /* Pods-CNChainWrapper_Tests.release.xcconfig */; 535 | buildSettings = { 536 | FRAMEWORK_SEARCH_PATHS = ( 537 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 538 | "$(inherited)", 539 | ); 540 | INFOPLIST_FILE = Tests/Info.plist; 541 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 542 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 543 | PRODUCT_NAME = "$(TARGET_NAME)"; 544 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 545 | SWIFT_VERSION = 4.0; 546 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNChainWrapper_Example.app/CNChainWrapper_Example"; 547 | }; 548 | name = Release; 549 | }; 550 | /* End XCBuildConfiguration section */ 551 | 552 | /* Begin XCConfigurationList section */ 553 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CNChainWrapper" */ = { 554 | isa = XCConfigurationList; 555 | buildConfigurations = ( 556 | 607FACED1AFB9204008FA782 /* Debug */, 557 | 607FACEE1AFB9204008FA782 /* Release */, 558 | ); 559 | defaultConfigurationIsVisible = 0; 560 | defaultConfigurationName = Release; 561 | }; 562 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CNChainWrapper_Example" */ = { 563 | isa = XCConfigurationList; 564 | buildConfigurations = ( 565 | 607FACF01AFB9204008FA782 /* Debug */, 566 | 607FACF11AFB9204008FA782 /* Release */, 567 | ); 568 | defaultConfigurationIsVisible = 0; 569 | defaultConfigurationName = Release; 570 | }; 571 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CNChainWrapper_Tests" */ = { 572 | isa = XCConfigurationList; 573 | buildConfigurations = ( 574 | 607FACF31AFB9204008FA782 /* Debug */, 575 | 607FACF41AFB9204008FA782 /* Release */, 576 | ); 577 | defaultConfigurationIsVisible = 0; 578 | defaultConfigurationName = Release; 579 | }; 580 | /* End XCConfigurationList section */ 581 | }; 582 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 583 | } 584 | -------------------------------------------------------------------------------- /Example/CNChainWrapper.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/CNChainWrapper.xcodeproj/xcshareddata/xcschemes/CNChainWrapper-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/CNChainWrapper.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/CNChainWrapper.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/CNChainWrapper/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CNChainWrapper 4 | // 5 | // Created by CouchNut on 09/29/2021. 6 | // Copyright (c) 2021 CouchNut. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/CNChainWrapper/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/CNChainWrapper/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Example/CNChainWrapper/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/CNChainWrapper/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/CNChainWrapper/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CNChainWrapper 4 | // 5 | // Created by CouchNut on 09/29/2021. 6 | // Copyright (c) 2021 CouchNut. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CNChainWrapper 11 | 12 | struct Point: CNChainWrapperCompatible { 13 | var x: CGFloat = 0 14 | var y: CGFloat = 0 15 | } 16 | 17 | class ViewController: UIViewController { 18 | 19 | override func viewDidLoad() { 20 | super.viewDidLoad() 21 | 22 | let imageView = UIImageView() 23 | imageView.backgroundColor = .yellow 24 | imageView.image = UIImage(named: "named") 25 | imageView.alpha = 0.5 26 | imageView.contentMode = .scaleAspectFit 27 | 28 | 29 | let rect = CGRect( 30 | origin: CGPoint(x: self.view.frame.midX - 150, y: self.view.frame.midY - 75), 31 | size: CGSize(width: 300, height: 150) 32 | ) 33 | /// 对 class 进行链式调用 34 | let lable = UILabel().cn 35 | .text("This is a label") 36 | .font(.systemFont(ofSize: 34)) 37 | .textColor(.yellow) 38 | .textAlignment(.center) 39 | .backgroundColor(.black) 40 | .frame(rect) 41 | .subject 42 | 43 | /// 对类中类对象进行链式调用设置值 44 | lable.layer.cn 45 | .borderWidth(10) 46 | .borderColor(UIColor.yellow.cgColor) 47 | 48 | /// 对 struct 进行链式调用 49 | let point = Point().cn.x(10).y(10).subject 50 | print("point: \(point)") 51 | 52 | self.view.addSubview(lable) 53 | 54 | // Do any additional setup after loading the view, typically from a nib. 55 | } 56 | 57 | override func didReceiveMemoryWarning() { 58 | super.didReceiveMemoryWarning() 59 | // Dispose of any resources that can be recreated. 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '9.0' 4 | 5 | target 'CNChainWrapper_Example' do 6 | pod 'CNChainWrapper', :path => '../' 7 | 8 | target 'CNChainWrapper_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CNChainWrapper (1.0.1) 3 | 4 | DEPENDENCIES: 5 | - CNChainWrapper (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CNChainWrapper: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CNChainWrapper: 45984b2693fcb4da6c8ac9c34ae2821dab157e33 13 | 14 | PODFILE CHECKSUM: 5a6d2038f2035828a89afbee3047825f102c74dd 15 | 16 | COCOAPODS: 1.11.2 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/CNChainWrapper.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CNChainWrapper", 3 | "version": "1.0.1", 4 | "summary": "Swift implements chain programming elegantly.", 5 | "license": { 6 | "type": "MIT", 7 | "file": "LICENSE" 8 | }, 9 | "homepage": "https://github.com/CouchNut/CNChainWrapper", 10 | "authors": { 11 | "CouchNut": "yit_copper@163.com" 12 | }, 13 | "platforms": { 14 | "ios": "12.0" 15 | }, 16 | "swift_versions": "5.0", 17 | "source": { 18 | "git": "https://github.com/CouchNut/CNChainWrapper.git", 19 | "tag": "1.0.1" 20 | }, 21 | "source_files": "Sources/Classes/**/*", 22 | "requires_arc": true, 23 | "swift_version": "5.0" 24 | } 25 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CNChainWrapper (1.0.1) 3 | 4 | DEPENDENCIES: 5 | - CNChainWrapper (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CNChainWrapper: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CNChainWrapper: 45984b2693fcb4da6c8ac9c34ae2821dab157e33 13 | 14 | PODFILE CHECKSUM: 5a6d2038f2035828a89afbee3047825f102c74dd 15 | 16 | COCOAPODS: 1.11.2 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 02338F10B25AD000E8FD823EC74A5952 /* Pods-CNChainWrapper_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F8CA82D635AAA905A64FAF306BE02662 /* Pods-CNChainWrapper_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 28BEE8B6701A06AA0AE2C5C67832331A /* CNChainWrapper-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F90042A8A3AABF7FBF49B757AB94D30E /* CNChainWrapper-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 2C2DA33E88C2A43D97125CD9EF8C0EE3 /* CNChainWrapper-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = EF697B5CB01180CFA34774253066FD36 /* CNChainWrapper-dummy.m */; }; 13 | 3C45004652B3A30650AC446BA9F62CB4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 14 | 5C1E3D94AE4A6FF01CCEED86152C45A0 /* Pods-CNChainWrapper_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 125B5AFC0A81D6E9406E5A76C92C17D7 /* Pods-CNChainWrapper_Tests-dummy.m */; }; 15 | 6D040C912DCE49435D73411F725CE94C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 16 | 819D6094777026E713EAAF71A2C19D10 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; 17 | 9D5E9D6AFCD72D36C8BF5F261B26B06F /* CNChainWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1EF7BE6C94F92C4736D94F163BC4D1D /* CNChainWrapper.swift */; }; 18 | AD8884C874130D274DC2EE56D6366278 /* Pods-CNChainWrapper_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 977B3D5D707BB68DA4B317FB8037472D /* Pods-CNChainWrapper_Example-dummy.m */; }; 19 | D24A478C29CF77902EB983DC827C864D /* Pods-CNChainWrapper_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D282B9F173FA3CEF61B63400022FC39 /* Pods-CNChainWrapper_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 55F53C7F1BFEEEA1BD8D355ED4AA6D55 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = D6AE3DC11575130607FAF02C5D767C83; 28 | remoteInfo = "Pods-CNChainWrapper_Example"; 29 | }; 30 | DCF19865AB0D6E2389723139B700D177 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 33CF1B5908F96DC1FE5235D3C4F61FF0; 35 | remoteInfo = CNChainWrapper; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 0022653EB208806517EAF35FB5FCE292 /* Pods-CNChainWrapper_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CNChainWrapper_Tests.release.xcconfig"; sourceTree = ""; }; 41 | 078B237885C11816438A64001BD954EB /* CNChainWrapper */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = CNChainWrapper; path = CNChainWrapper.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 0BA0E587D6E67516F9CBD81E1299F4F6 /* Pods-CNChainWrapper_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CNChainWrapper_Tests-acknowledgements.plist"; sourceTree = ""; }; 43 | 10708ED0B21D383F3E6E27B0D95667A9 /* CNChainWrapper.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CNChainWrapper.release.xcconfig; sourceTree = ""; }; 44 | 125B5AFC0A81D6E9406E5A76C92C17D7 /* Pods-CNChainWrapper_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CNChainWrapper_Tests-dummy.m"; sourceTree = ""; }; 45 | 160ACC3F69EDD1C747945602BD363C13 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 46 | 1C266EE56FBE991A7C9657141EE0928F /* Pods-CNChainWrapper_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CNChainWrapper_Example-Info.plist"; sourceTree = ""; }; 47 | 209BCDF3EBDAF4DDE2E0645FE2FD4200 /* Pods-CNChainWrapper_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CNChainWrapper_Example-acknowledgements.markdown"; sourceTree = ""; }; 48 | 277C24C103D597AD5B55BF50E7832D43 /* Pods-CNChainWrapper_Tests */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = "Pods-CNChainWrapper_Tests"; path = Pods_CNChainWrapper_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 3DE5701F306453A6679F747D5E187607 /* Pods-CNChainWrapper_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CNChainWrapper_Example-acknowledgements.plist"; sourceTree = ""; }; 50 | 3EF711FD9C57242572FFC9768C266096 /* Pods-CNChainWrapper_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CNChainWrapper_Example.debug.xcconfig"; sourceTree = ""; }; 51 | 49494411514D4093C632ADE21F0314AD /* Pods-CNChainWrapper_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CNChainWrapper_Tests.debug.xcconfig"; sourceTree = ""; }; 52 | 4CE0B1277EE6E8907BA63202BA41DBA9 /* Pods-CNChainWrapper_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CNChainWrapper_Tests-Info.plist"; sourceTree = ""; }; 53 | 549445F8B7AD998626B227545B3AC309 /* Pods-CNChainWrapper_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CNChainWrapper_Example.release.xcconfig"; sourceTree = ""; }; 54 | 58D6CB0F55F519046C5ADEA63B4FB2EB /* CNChainWrapper.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CNChainWrapper.debug.xcconfig; sourceTree = ""; }; 55 | 5D282B9F173FA3CEF61B63400022FC39 /* Pods-CNChainWrapper_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CNChainWrapper_Tests-umbrella.h"; sourceTree = ""; }; 56 | 69970A06A92BDD44BB17C73E0E2C5D61 /* CNChainWrapper-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "CNChainWrapper-Info.plist"; sourceTree = ""; }; 57 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 58 | 78F2957E1775B3BE10E69F8FE9CAFA7F /* Pods-CNChainWrapper_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CNChainWrapper_Tests.modulemap"; sourceTree = ""; }; 59 | 7CD79DC5020E55DE14933F256EB916F8 /* Pods-CNChainWrapper_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CNChainWrapper_Tests-acknowledgements.markdown"; sourceTree = ""; }; 60 | 893C912B1C38444B35A6C4798F0F74A0 /* Pods-CNChainWrapper_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CNChainWrapper_Example.modulemap"; sourceTree = ""; }; 61 | 8A081EA827CCEDC6885A96807EDB7352 /* Pods-CNChainWrapper_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CNChainWrapper_Example-frameworks.sh"; sourceTree = ""; }; 62 | 977B3D5D707BB68DA4B317FB8037472D /* Pods-CNChainWrapper_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CNChainWrapper_Example-dummy.m"; sourceTree = ""; }; 63 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 64 | 9F2F5EFD226B71A733B9DC1A3F8D231E /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 65 | B1EF7BE6C94F92C4736D94F163BC4D1D /* CNChainWrapper.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CNChainWrapper.swift; path = Sources/Classes/CNChainWrapper.swift; sourceTree = ""; }; 66 | C87BAA597A515D8876199E586A3BB1FB /* CNChainWrapper.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = CNChainWrapper.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 67 | E12E47A80FD0BD4D04CD09A07F067C6E /* CNChainWrapper-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CNChainWrapper-prefix.pch"; sourceTree = ""; }; 68 | E911167F7411357B292302CB387F865E /* CNChainWrapper.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = CNChainWrapper.modulemap; sourceTree = ""; }; 69 | EBCAEFA31A630C574D9F5AEC417F3512 /* Pods-CNChainWrapper_Example */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = "Pods-CNChainWrapper_Example"; path = Pods_CNChainWrapper_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 70 | EF697B5CB01180CFA34774253066FD36 /* CNChainWrapper-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "CNChainWrapper-dummy.m"; sourceTree = ""; }; 71 | F8CA82D635AAA905A64FAF306BE02662 /* Pods-CNChainWrapper_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CNChainWrapper_Example-umbrella.h"; sourceTree = ""; }; 72 | F90042A8A3AABF7FBF49B757AB94D30E /* CNChainWrapper-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "CNChainWrapper-umbrella.h"; sourceTree = ""; }; 73 | /* End PBXFileReference section */ 74 | 75 | /* Begin PBXFrameworksBuildPhase section */ 76 | 3EA22B47ADEA8802F77D40F30DE57A4F /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | 819D6094777026E713EAAF71A2C19D10 /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | 420517A8F74C34543E83BE37CE954FD2 /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | 6D040C912DCE49435D73411F725CE94C /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | 565E33918E619B9C560DF5C5F5C23634 /* Frameworks */ = { 93 | isa = PBXFrameworksBuildPhase; 94 | buildActionMask = 2147483647; 95 | files = ( 96 | 3C45004652B3A30650AC446BA9F62CB4 /* Foundation.framework in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | /* End PBXFrameworksBuildPhase section */ 101 | 102 | /* Begin PBXGroup section */ 103 | 06961AC0128B9098EADAFD869772E5A8 /* CNChainWrapper */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | B1EF7BE6C94F92C4736D94F163BC4D1D /* CNChainWrapper.swift */, 107 | 66123F45643189A50325A054A6B931B8 /* Pod */, 108 | F8E6808B1E63329BEB46CABFB0778653 /* Support Files */, 109 | ); 110 | name = CNChainWrapper; 111 | path = ../..; 112 | sourceTree = ""; 113 | }; 114 | 1F47EAE7AB8B28D701CB9A3467D09070 /* Products */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 078B237885C11816438A64001BD954EB /* CNChainWrapper */, 118 | EBCAEFA31A630C574D9F5AEC417F3512 /* Pods-CNChainWrapper_Example */, 119 | 277C24C103D597AD5B55BF50E7832D43 /* Pods-CNChainWrapper_Tests */, 120 | ); 121 | name = Products; 122 | sourceTree = ""; 123 | }; 124 | 52C338FB31289D0A80C6580F4E2276BE /* Targets Support Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | E4BA00B0D426C12B043915302822A3F9 /* Pods-CNChainWrapper_Example */, 128 | CB56513F2F3309C711FC6A5A1E3191E8 /* Pods-CNChainWrapper_Tests */, 129 | ); 130 | name = "Targets Support Files"; 131 | sourceTree = ""; 132 | }; 133 | 578452D2E740E91742655AC8F1636D1F /* iOS */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */, 137 | ); 138 | name = iOS; 139 | sourceTree = ""; 140 | }; 141 | 66123F45643189A50325A054A6B931B8 /* Pod */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | C87BAA597A515D8876199E586A3BB1FB /* CNChainWrapper.podspec */, 145 | 160ACC3F69EDD1C747945602BD363C13 /* LICENSE */, 146 | 9F2F5EFD226B71A733B9DC1A3F8D231E /* README.md */, 147 | ); 148 | name = Pod; 149 | sourceTree = ""; 150 | }; 151 | CB56513F2F3309C711FC6A5A1E3191E8 /* Pods-CNChainWrapper_Tests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 78F2957E1775B3BE10E69F8FE9CAFA7F /* Pods-CNChainWrapper_Tests.modulemap */, 155 | 7CD79DC5020E55DE14933F256EB916F8 /* Pods-CNChainWrapper_Tests-acknowledgements.markdown */, 156 | 0BA0E587D6E67516F9CBD81E1299F4F6 /* Pods-CNChainWrapper_Tests-acknowledgements.plist */, 157 | 125B5AFC0A81D6E9406E5A76C92C17D7 /* Pods-CNChainWrapper_Tests-dummy.m */, 158 | 4CE0B1277EE6E8907BA63202BA41DBA9 /* Pods-CNChainWrapper_Tests-Info.plist */, 159 | 5D282B9F173FA3CEF61B63400022FC39 /* Pods-CNChainWrapper_Tests-umbrella.h */, 160 | 49494411514D4093C632ADE21F0314AD /* Pods-CNChainWrapper_Tests.debug.xcconfig */, 161 | 0022653EB208806517EAF35FB5FCE292 /* Pods-CNChainWrapper_Tests.release.xcconfig */, 162 | ); 163 | name = "Pods-CNChainWrapper_Tests"; 164 | path = "Target Support Files/Pods-CNChainWrapper_Tests"; 165 | sourceTree = ""; 166 | }; 167 | CF1408CF629C7361332E53B88F7BD30C = { 168 | isa = PBXGroup; 169 | children = ( 170 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 171 | FC210B169B018B6E2EE1A27796FB17F2 /* Development Pods */, 172 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 173 | 1F47EAE7AB8B28D701CB9A3467D09070 /* Products */, 174 | 52C338FB31289D0A80C6580F4E2276BE /* Targets Support Files */, 175 | ); 176 | sourceTree = ""; 177 | }; 178 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 578452D2E740E91742655AC8F1636D1F /* iOS */, 182 | ); 183 | name = Frameworks; 184 | sourceTree = ""; 185 | }; 186 | E4BA00B0D426C12B043915302822A3F9 /* Pods-CNChainWrapper_Example */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 893C912B1C38444B35A6C4798F0F74A0 /* Pods-CNChainWrapper_Example.modulemap */, 190 | 209BCDF3EBDAF4DDE2E0645FE2FD4200 /* Pods-CNChainWrapper_Example-acknowledgements.markdown */, 191 | 3DE5701F306453A6679F747D5E187607 /* Pods-CNChainWrapper_Example-acknowledgements.plist */, 192 | 977B3D5D707BB68DA4B317FB8037472D /* Pods-CNChainWrapper_Example-dummy.m */, 193 | 8A081EA827CCEDC6885A96807EDB7352 /* Pods-CNChainWrapper_Example-frameworks.sh */, 194 | 1C266EE56FBE991A7C9657141EE0928F /* Pods-CNChainWrapper_Example-Info.plist */, 195 | F8CA82D635AAA905A64FAF306BE02662 /* Pods-CNChainWrapper_Example-umbrella.h */, 196 | 3EF711FD9C57242572FFC9768C266096 /* Pods-CNChainWrapper_Example.debug.xcconfig */, 197 | 549445F8B7AD998626B227545B3AC309 /* Pods-CNChainWrapper_Example.release.xcconfig */, 198 | ); 199 | name = "Pods-CNChainWrapper_Example"; 200 | path = "Target Support Files/Pods-CNChainWrapper_Example"; 201 | sourceTree = ""; 202 | }; 203 | F8E6808B1E63329BEB46CABFB0778653 /* Support Files */ = { 204 | isa = PBXGroup; 205 | children = ( 206 | E911167F7411357B292302CB387F865E /* CNChainWrapper.modulemap */, 207 | EF697B5CB01180CFA34774253066FD36 /* CNChainWrapper-dummy.m */, 208 | 69970A06A92BDD44BB17C73E0E2C5D61 /* CNChainWrapper-Info.plist */, 209 | E12E47A80FD0BD4D04CD09A07F067C6E /* CNChainWrapper-prefix.pch */, 210 | F90042A8A3AABF7FBF49B757AB94D30E /* CNChainWrapper-umbrella.h */, 211 | 58D6CB0F55F519046C5ADEA63B4FB2EB /* CNChainWrapper.debug.xcconfig */, 212 | 10708ED0B21D383F3E6E27B0D95667A9 /* CNChainWrapper.release.xcconfig */, 213 | ); 214 | name = "Support Files"; 215 | path = "Example/Pods/Target Support Files/CNChainWrapper"; 216 | sourceTree = ""; 217 | }; 218 | FC210B169B018B6E2EE1A27796FB17F2 /* Development Pods */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 06961AC0128B9098EADAFD869772E5A8 /* CNChainWrapper */, 222 | ); 223 | name = "Development Pods"; 224 | sourceTree = ""; 225 | }; 226 | /* End PBXGroup section */ 227 | 228 | /* Begin PBXHeadersBuildPhase section */ 229 | 3ED1E9BD518B08D160AD1CF73A35C344 /* Headers */ = { 230 | isa = PBXHeadersBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | 28BEE8B6701A06AA0AE2C5C67832331A /* CNChainWrapper-umbrella.h in Headers */, 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | }; 237 | B69EB846DFBFFED0A420BE7684EA1E48 /* Headers */ = { 238 | isa = PBXHeadersBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | 02338F10B25AD000E8FD823EC74A5952 /* Pods-CNChainWrapper_Example-umbrella.h in Headers */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | E45762C474980057126EBCF5705B4E00 /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | D24A478C29CF77902EB983DC827C864D /* Pods-CNChainWrapper_Tests-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | /* End PBXHeadersBuildPhase section */ 254 | 255 | /* Begin PBXNativeTarget section */ 256 | 33CF1B5908F96DC1FE5235D3C4F61FF0 /* CNChainWrapper */ = { 257 | isa = PBXNativeTarget; 258 | buildConfigurationList = A57A22E9ED18664FB3C73AD885751FCB /* Build configuration list for PBXNativeTarget "CNChainWrapper" */; 259 | buildPhases = ( 260 | 3ED1E9BD518B08D160AD1CF73A35C344 /* Headers */, 261 | CD5323EE007BA462D21FBD261375DA7F /* Sources */, 262 | 3EA22B47ADEA8802F77D40F30DE57A4F /* Frameworks */, 263 | 43B02D4E8D879CAB1E19F8A5CAFF2F26 /* Resources */, 264 | ); 265 | buildRules = ( 266 | ); 267 | dependencies = ( 268 | ); 269 | name = CNChainWrapper; 270 | productName = CNChainWrapper; 271 | productReference = 078B237885C11816438A64001BD954EB /* CNChainWrapper */; 272 | productType = "com.apple.product-type.framework"; 273 | }; 274 | B1B89592E487733C80FC25A6468A0F51 /* Pods-CNChainWrapper_Tests */ = { 275 | isa = PBXNativeTarget; 276 | buildConfigurationList = 449F689AABDAF5E0347CA56F6E432C3D /* Build configuration list for PBXNativeTarget "Pods-CNChainWrapper_Tests" */; 277 | buildPhases = ( 278 | E45762C474980057126EBCF5705B4E00 /* Headers */, 279 | D602C3FFD3AD202C1FF1E3006BCD303E /* Sources */, 280 | 565E33918E619B9C560DF5C5F5C23634 /* Frameworks */, 281 | EEAE25E421ED7A1A23B38CF9E0054F74 /* Resources */, 282 | ); 283 | buildRules = ( 284 | ); 285 | dependencies = ( 286 | 698E202255FE4915FE05B979D574FF52 /* PBXTargetDependency */, 287 | ); 288 | name = "Pods-CNChainWrapper_Tests"; 289 | productName = Pods_CNChainWrapper_Tests; 290 | productReference = 277C24C103D597AD5B55BF50E7832D43 /* Pods-CNChainWrapper_Tests */; 291 | productType = "com.apple.product-type.framework"; 292 | }; 293 | D6AE3DC11575130607FAF02C5D767C83 /* Pods-CNChainWrapper_Example */ = { 294 | isa = PBXNativeTarget; 295 | buildConfigurationList = B6505A789F5A6A9DD2623F8A46BE627F /* Build configuration list for PBXNativeTarget "Pods-CNChainWrapper_Example" */; 296 | buildPhases = ( 297 | B69EB846DFBFFED0A420BE7684EA1E48 /* Headers */, 298 | 3A2597A342D797ECBDD249C3CD92B680 /* Sources */, 299 | 420517A8F74C34543E83BE37CE954FD2 /* Frameworks */, 300 | BE3B49C89A6D01C82E3F850233B7EE62 /* Resources */, 301 | ); 302 | buildRules = ( 303 | ); 304 | dependencies = ( 305 | 53754BDBE9EAD0233B693C4AB36D4373 /* PBXTargetDependency */, 306 | ); 307 | name = "Pods-CNChainWrapper_Example"; 308 | productName = Pods_CNChainWrapper_Example; 309 | productReference = EBCAEFA31A630C574D9F5AEC417F3512 /* Pods-CNChainWrapper_Example */; 310 | productType = "com.apple.product-type.framework"; 311 | }; 312 | /* End PBXNativeTarget section */ 313 | 314 | /* Begin PBXProject section */ 315 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 316 | isa = PBXProject; 317 | attributes = { 318 | LastSwiftUpdateCheck = 1240; 319 | LastUpgradeCheck = 1240; 320 | }; 321 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 322 | compatibilityVersion = "Xcode 3.2"; 323 | developmentRegion = en; 324 | hasScannedForEncodings = 0; 325 | knownRegions = ( 326 | Base, 327 | en, 328 | ); 329 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 330 | productRefGroup = 1F47EAE7AB8B28D701CB9A3467D09070 /* Products */; 331 | projectDirPath = ""; 332 | projectRoot = ""; 333 | targets = ( 334 | 33CF1B5908F96DC1FE5235D3C4F61FF0 /* CNChainWrapper */, 335 | D6AE3DC11575130607FAF02C5D767C83 /* Pods-CNChainWrapper_Example */, 336 | B1B89592E487733C80FC25A6468A0F51 /* Pods-CNChainWrapper_Tests */, 337 | ); 338 | }; 339 | /* End PBXProject section */ 340 | 341 | /* Begin PBXResourcesBuildPhase section */ 342 | 43B02D4E8D879CAB1E19F8A5CAFF2F26 /* Resources */ = { 343 | isa = PBXResourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | BE3B49C89A6D01C82E3F850233B7EE62 /* Resources */ = { 350 | isa = PBXResourcesBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | }; 356 | EEAE25E421ED7A1A23B38CF9E0054F74 /* Resources */ = { 357 | isa = PBXResourcesBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | /* End PBXResourcesBuildPhase section */ 364 | 365 | /* Begin PBXSourcesBuildPhase section */ 366 | 3A2597A342D797ECBDD249C3CD92B680 /* Sources */ = { 367 | isa = PBXSourcesBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | AD8884C874130D274DC2EE56D6366278 /* Pods-CNChainWrapper_Example-dummy.m in Sources */, 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | CD5323EE007BA462D21FBD261375DA7F /* Sources */ = { 375 | isa = PBXSourcesBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | 9D5E9D6AFCD72D36C8BF5F261B26B06F /* CNChainWrapper.swift in Sources */, 379 | 2C2DA33E88C2A43D97125CD9EF8C0EE3 /* CNChainWrapper-dummy.m in Sources */, 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | }; 383 | D602C3FFD3AD202C1FF1E3006BCD303E /* Sources */ = { 384 | isa = PBXSourcesBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | 5C1E3D94AE4A6FF01CCEED86152C45A0 /* Pods-CNChainWrapper_Tests-dummy.m in Sources */, 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | }; 391 | /* End PBXSourcesBuildPhase section */ 392 | 393 | /* Begin PBXTargetDependency section */ 394 | 53754BDBE9EAD0233B693C4AB36D4373 /* PBXTargetDependency */ = { 395 | isa = PBXTargetDependency; 396 | name = CNChainWrapper; 397 | target = 33CF1B5908F96DC1FE5235D3C4F61FF0 /* CNChainWrapper */; 398 | targetProxy = DCF19865AB0D6E2389723139B700D177 /* PBXContainerItemProxy */; 399 | }; 400 | 698E202255FE4915FE05B979D574FF52 /* PBXTargetDependency */ = { 401 | isa = PBXTargetDependency; 402 | name = "Pods-CNChainWrapper_Example"; 403 | target = D6AE3DC11575130607FAF02C5D767C83 /* Pods-CNChainWrapper_Example */; 404 | targetProxy = 55F53C7F1BFEEEA1BD8D355ED4AA6D55 /* PBXContainerItemProxy */; 405 | }; 406 | /* End PBXTargetDependency section */ 407 | 408 | /* Begin XCBuildConfiguration section */ 409 | 25AD9454612BF454A1E3DC4CD4FA8C6D /* Debug */ = { 410 | isa = XCBuildConfiguration; 411 | buildSettings = { 412 | ALWAYS_SEARCH_USER_PATHS = NO; 413 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 414 | CLANG_ANALYZER_NONNULL = YES; 415 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 416 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 417 | CLANG_CXX_LIBRARY = "libc++"; 418 | CLANG_ENABLE_MODULES = YES; 419 | CLANG_ENABLE_OBJC_ARC = YES; 420 | CLANG_ENABLE_OBJC_WEAK = YES; 421 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 422 | CLANG_WARN_BOOL_CONVERSION = YES; 423 | CLANG_WARN_COMMA = YES; 424 | CLANG_WARN_CONSTANT_CONVERSION = YES; 425 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 426 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 427 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 428 | CLANG_WARN_EMPTY_BODY = YES; 429 | CLANG_WARN_ENUM_CONVERSION = YES; 430 | CLANG_WARN_INFINITE_RECURSION = YES; 431 | CLANG_WARN_INT_CONVERSION = YES; 432 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 433 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 434 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 435 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 436 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 437 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 438 | CLANG_WARN_STRICT_PROTOTYPES = YES; 439 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 440 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 441 | CLANG_WARN_UNREACHABLE_CODE = YES; 442 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 443 | COPY_PHASE_STRIP = NO; 444 | DEBUG_INFORMATION_FORMAT = dwarf; 445 | ENABLE_STRICT_OBJC_MSGSEND = YES; 446 | ENABLE_TESTABILITY = YES; 447 | GCC_C_LANGUAGE_STANDARD = gnu11; 448 | GCC_DYNAMIC_NO_PIC = NO; 449 | GCC_NO_COMMON_BLOCKS = YES; 450 | GCC_OPTIMIZATION_LEVEL = 0; 451 | GCC_PREPROCESSOR_DEFINITIONS = ( 452 | "POD_CONFIGURATION_DEBUG=1", 453 | "DEBUG=1", 454 | "$(inherited)", 455 | ); 456 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 457 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 458 | GCC_WARN_UNDECLARED_SELECTOR = YES; 459 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 460 | GCC_WARN_UNUSED_FUNCTION = YES; 461 | GCC_WARN_UNUSED_VARIABLE = YES; 462 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 463 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 464 | MTL_FAST_MATH = YES; 465 | ONLY_ACTIVE_ARCH = YES; 466 | PRODUCT_NAME = "$(TARGET_NAME)"; 467 | STRIP_INSTALLED_PRODUCT = NO; 468 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 469 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 470 | SWIFT_VERSION = 5.0; 471 | SYMROOT = "${SRCROOT}/../build"; 472 | }; 473 | name = Debug; 474 | }; 475 | 28B8DFD2C345B06FE1759D14C32AA2EF /* Release */ = { 476 | isa = XCBuildConfiguration; 477 | baseConfigurationReference = 0022653EB208806517EAF35FB5FCE292 /* Pods-CNChainWrapper_Tests.release.xcconfig */; 478 | buildSettings = { 479 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 480 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 481 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 482 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 483 | CURRENT_PROJECT_VERSION = 1; 484 | DEFINES_MODULE = YES; 485 | DYLIB_COMPATIBILITY_VERSION = 1; 486 | DYLIB_CURRENT_VERSION = 1; 487 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 488 | INFOPLIST_FILE = "Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests-Info.plist"; 489 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 490 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 491 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 492 | MACH_O_TYPE = staticlib; 493 | MODULEMAP_FILE = "Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests.modulemap"; 494 | OTHER_LDFLAGS = ""; 495 | OTHER_LIBTOOLFLAGS = ""; 496 | PODS_ROOT = "$(SRCROOT)"; 497 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 498 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 499 | SDKROOT = iphoneos; 500 | SKIP_INSTALL = YES; 501 | TARGETED_DEVICE_FAMILY = "1,2"; 502 | VALIDATE_PRODUCT = YES; 503 | VERSIONING_SYSTEM = "apple-generic"; 504 | VERSION_INFO_PREFIX = ""; 505 | }; 506 | name = Release; 507 | }; 508 | 426275EE9932770BE62C1E950B121894 /* Debug */ = { 509 | isa = XCBuildConfiguration; 510 | baseConfigurationReference = 49494411514D4093C632ADE21F0314AD /* Pods-CNChainWrapper_Tests.debug.xcconfig */; 511 | buildSettings = { 512 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 513 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 514 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 515 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 516 | CURRENT_PROJECT_VERSION = 1; 517 | DEFINES_MODULE = YES; 518 | DYLIB_COMPATIBILITY_VERSION = 1; 519 | DYLIB_CURRENT_VERSION = 1; 520 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 521 | INFOPLIST_FILE = "Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests-Info.plist"; 522 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 523 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 524 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 525 | MACH_O_TYPE = staticlib; 526 | MODULEMAP_FILE = "Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests.modulemap"; 527 | OTHER_LDFLAGS = ""; 528 | OTHER_LIBTOOLFLAGS = ""; 529 | PODS_ROOT = "$(SRCROOT)"; 530 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 531 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 532 | SDKROOT = iphoneos; 533 | SKIP_INSTALL = YES; 534 | TARGETED_DEVICE_FAMILY = "1,2"; 535 | VERSIONING_SYSTEM = "apple-generic"; 536 | VERSION_INFO_PREFIX = ""; 537 | }; 538 | name = Debug; 539 | }; 540 | 61F130A94DEA0F4FAA17EE75F9EECB6E /* Release */ = { 541 | isa = XCBuildConfiguration; 542 | baseConfigurationReference = 10708ED0B21D383F3E6E27B0D95667A9 /* CNChainWrapper.release.xcconfig */; 543 | buildSettings = { 544 | CLANG_ENABLE_OBJC_WEAK = NO; 545 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 546 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 547 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 548 | CURRENT_PROJECT_VERSION = 1; 549 | DEFINES_MODULE = YES; 550 | DYLIB_COMPATIBILITY_VERSION = 1; 551 | DYLIB_CURRENT_VERSION = 1; 552 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 553 | GCC_PREFIX_HEADER = "Target Support Files/CNChainWrapper/CNChainWrapper-prefix.pch"; 554 | INFOPLIST_FILE = "Target Support Files/CNChainWrapper/CNChainWrapper-Info.plist"; 555 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 556 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 557 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 558 | MODULEMAP_FILE = "Target Support Files/CNChainWrapper/CNChainWrapper.modulemap"; 559 | PRODUCT_MODULE_NAME = CNChainWrapper; 560 | PRODUCT_NAME = CNChainWrapper; 561 | SDKROOT = iphoneos; 562 | SKIP_INSTALL = YES; 563 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 564 | SWIFT_VERSION = 5.0; 565 | TARGETED_DEVICE_FAMILY = "1,2"; 566 | VALIDATE_PRODUCT = YES; 567 | VERSIONING_SYSTEM = "apple-generic"; 568 | VERSION_INFO_PREFIX = ""; 569 | }; 570 | name = Release; 571 | }; 572 | 92E1C673B330EBF25E992FFADEEC8850 /* Debug */ = { 573 | isa = XCBuildConfiguration; 574 | baseConfigurationReference = 58D6CB0F55F519046C5ADEA63B4FB2EB /* CNChainWrapper.debug.xcconfig */; 575 | buildSettings = { 576 | CLANG_ENABLE_OBJC_WEAK = NO; 577 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 578 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 579 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 580 | CURRENT_PROJECT_VERSION = 1; 581 | DEFINES_MODULE = YES; 582 | DYLIB_COMPATIBILITY_VERSION = 1; 583 | DYLIB_CURRENT_VERSION = 1; 584 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 585 | GCC_PREFIX_HEADER = "Target Support Files/CNChainWrapper/CNChainWrapper-prefix.pch"; 586 | INFOPLIST_FILE = "Target Support Files/CNChainWrapper/CNChainWrapper-Info.plist"; 587 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 588 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 589 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 590 | MODULEMAP_FILE = "Target Support Files/CNChainWrapper/CNChainWrapper.modulemap"; 591 | PRODUCT_MODULE_NAME = CNChainWrapper; 592 | PRODUCT_NAME = CNChainWrapper; 593 | SDKROOT = iphoneos; 594 | SKIP_INSTALL = YES; 595 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 596 | SWIFT_VERSION = 5.0; 597 | TARGETED_DEVICE_FAMILY = "1,2"; 598 | VERSIONING_SYSTEM = "apple-generic"; 599 | VERSION_INFO_PREFIX = ""; 600 | }; 601 | name = Debug; 602 | }; 603 | CA547D2C7E9A8A153DC2B27FBE00B112 /* Release */ = { 604 | isa = XCBuildConfiguration; 605 | buildSettings = { 606 | ALWAYS_SEARCH_USER_PATHS = NO; 607 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 608 | CLANG_ANALYZER_NONNULL = YES; 609 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 610 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 611 | CLANG_CXX_LIBRARY = "libc++"; 612 | CLANG_ENABLE_MODULES = YES; 613 | CLANG_ENABLE_OBJC_ARC = YES; 614 | CLANG_ENABLE_OBJC_WEAK = YES; 615 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 616 | CLANG_WARN_BOOL_CONVERSION = YES; 617 | CLANG_WARN_COMMA = YES; 618 | CLANG_WARN_CONSTANT_CONVERSION = YES; 619 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 620 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 621 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 622 | CLANG_WARN_EMPTY_BODY = YES; 623 | CLANG_WARN_ENUM_CONVERSION = YES; 624 | CLANG_WARN_INFINITE_RECURSION = YES; 625 | CLANG_WARN_INT_CONVERSION = YES; 626 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 627 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 628 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 629 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 630 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 631 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 632 | CLANG_WARN_STRICT_PROTOTYPES = YES; 633 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 634 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 635 | CLANG_WARN_UNREACHABLE_CODE = YES; 636 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 637 | COPY_PHASE_STRIP = NO; 638 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 639 | ENABLE_NS_ASSERTIONS = NO; 640 | ENABLE_STRICT_OBJC_MSGSEND = YES; 641 | GCC_C_LANGUAGE_STANDARD = gnu11; 642 | GCC_NO_COMMON_BLOCKS = YES; 643 | GCC_PREPROCESSOR_DEFINITIONS = ( 644 | "POD_CONFIGURATION_RELEASE=1", 645 | "$(inherited)", 646 | ); 647 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 648 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 649 | GCC_WARN_UNDECLARED_SELECTOR = YES; 650 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 651 | GCC_WARN_UNUSED_FUNCTION = YES; 652 | GCC_WARN_UNUSED_VARIABLE = YES; 653 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 654 | MTL_ENABLE_DEBUG_INFO = NO; 655 | MTL_FAST_MATH = YES; 656 | PRODUCT_NAME = "$(TARGET_NAME)"; 657 | STRIP_INSTALLED_PRODUCT = NO; 658 | SWIFT_COMPILATION_MODE = wholemodule; 659 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 660 | SWIFT_VERSION = 5.0; 661 | SYMROOT = "${SRCROOT}/../build"; 662 | }; 663 | name = Release; 664 | }; 665 | E4CF0E16407B11124D10C2C551DC4593 /* Debug */ = { 666 | isa = XCBuildConfiguration; 667 | baseConfigurationReference = 3EF711FD9C57242572FFC9768C266096 /* Pods-CNChainWrapper_Example.debug.xcconfig */; 668 | buildSettings = { 669 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 670 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 671 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 672 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 673 | CURRENT_PROJECT_VERSION = 1; 674 | DEFINES_MODULE = YES; 675 | DYLIB_COMPATIBILITY_VERSION = 1; 676 | DYLIB_CURRENT_VERSION = 1; 677 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 678 | INFOPLIST_FILE = "Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-Info.plist"; 679 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 680 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 681 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 682 | MACH_O_TYPE = staticlib; 683 | MODULEMAP_FILE = "Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example.modulemap"; 684 | OTHER_LDFLAGS = ""; 685 | OTHER_LIBTOOLFLAGS = ""; 686 | PODS_ROOT = "$(SRCROOT)"; 687 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 688 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 689 | SDKROOT = iphoneos; 690 | SKIP_INSTALL = YES; 691 | TARGETED_DEVICE_FAMILY = "1,2"; 692 | VERSIONING_SYSTEM = "apple-generic"; 693 | VERSION_INFO_PREFIX = ""; 694 | }; 695 | name = Debug; 696 | }; 697 | E98C11C53B69B2609B30849AFCD60C6D /* Release */ = { 698 | isa = XCBuildConfiguration; 699 | baseConfigurationReference = 549445F8B7AD998626B227545B3AC309 /* Pods-CNChainWrapper_Example.release.xcconfig */; 700 | buildSettings = { 701 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 702 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 703 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 704 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 705 | CURRENT_PROJECT_VERSION = 1; 706 | DEFINES_MODULE = YES; 707 | DYLIB_COMPATIBILITY_VERSION = 1; 708 | DYLIB_CURRENT_VERSION = 1; 709 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 710 | INFOPLIST_FILE = "Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-Info.plist"; 711 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 712 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 713 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 714 | MACH_O_TYPE = staticlib; 715 | MODULEMAP_FILE = "Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example.modulemap"; 716 | OTHER_LDFLAGS = ""; 717 | OTHER_LIBTOOLFLAGS = ""; 718 | PODS_ROOT = "$(SRCROOT)"; 719 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 720 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 721 | SDKROOT = iphoneos; 722 | SKIP_INSTALL = YES; 723 | TARGETED_DEVICE_FAMILY = "1,2"; 724 | VALIDATE_PRODUCT = YES; 725 | VERSIONING_SYSTEM = "apple-generic"; 726 | VERSION_INFO_PREFIX = ""; 727 | }; 728 | name = Release; 729 | }; 730 | /* End XCBuildConfiguration section */ 731 | 732 | /* Begin XCConfigurationList section */ 733 | 449F689AABDAF5E0347CA56F6E432C3D /* Build configuration list for PBXNativeTarget "Pods-CNChainWrapper_Tests" */ = { 734 | isa = XCConfigurationList; 735 | buildConfigurations = ( 736 | 426275EE9932770BE62C1E950B121894 /* Debug */, 737 | 28B8DFD2C345B06FE1759D14C32AA2EF /* Release */, 738 | ); 739 | defaultConfigurationIsVisible = 0; 740 | defaultConfigurationName = Release; 741 | }; 742 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 743 | isa = XCConfigurationList; 744 | buildConfigurations = ( 745 | 25AD9454612BF454A1E3DC4CD4FA8C6D /* Debug */, 746 | CA547D2C7E9A8A153DC2B27FBE00B112 /* Release */, 747 | ); 748 | defaultConfigurationIsVisible = 0; 749 | defaultConfigurationName = Release; 750 | }; 751 | A57A22E9ED18664FB3C73AD885751FCB /* Build configuration list for PBXNativeTarget "CNChainWrapper" */ = { 752 | isa = XCConfigurationList; 753 | buildConfigurations = ( 754 | 92E1C673B330EBF25E992FFADEEC8850 /* Debug */, 755 | 61F130A94DEA0F4FAA17EE75F9EECB6E /* Release */, 756 | ); 757 | defaultConfigurationIsVisible = 0; 758 | defaultConfigurationName = Release; 759 | }; 760 | B6505A789F5A6A9DD2623F8A46BE627F /* Build configuration list for PBXNativeTarget "Pods-CNChainWrapper_Example" */ = { 761 | isa = XCConfigurationList; 762 | buildConfigurations = ( 763 | E4CF0E16407B11124D10C2C551DC4593 /* Debug */, 764 | E98C11C53B69B2609B30849AFCD60C6D /* Release */, 765 | ); 766 | defaultConfigurationIsVisible = 0; 767 | defaultConfigurationName = Release; 768 | }; 769 | /* End XCConfigurationList section */ 770 | }; 771 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 772 | } 773 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CNChainWrapper/CNChainWrapper-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CNChainWrapper/CNChainWrapper-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_CNChainWrapper : NSObject 3 | @end 4 | @implementation PodsDummy_CNChainWrapper 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CNChainWrapper/CNChainWrapper-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CNChainWrapper/CNChainWrapper-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double CNChainWrapperVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char CNChainWrapperVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CNChainWrapper/CNChainWrapper.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 5 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 12 | SKIP_INSTALL = YES 13 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CNChainWrapper/CNChainWrapper.modulemap: -------------------------------------------------------------------------------- 1 | framework module CNChainWrapper { 2 | umbrella header "CNChainWrapper-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/CNChainWrapper/CNChainWrapper.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 5 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 12 | SKIP_INSTALL = YES 13 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## CNChainWrapper 5 | 6 | Copyright (c) 2021 CouchNut 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2021 CouchNut <yit_copper@163.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | CNChainWrapper 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CNChainWrapper_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CNChainWrapper_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | BCSYMBOLMAP_DIR="BCSymbolMaps" 23 | 24 | 25 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 26 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 27 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 28 | 29 | # Copies and strips a vendored framework 30 | install_framework() 31 | { 32 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 33 | local source="${BUILT_PRODUCTS_DIR}/$1" 34 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 35 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 36 | elif [ -r "$1" ]; then 37 | local source="$1" 38 | fi 39 | 40 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 41 | 42 | if [ -L "${source}" ]; then 43 | echo "Symlinked..." 44 | source="$(readlink "${source}")" 45 | fi 46 | 47 | if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then 48 | # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied 49 | find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do 50 | echo "Installing $f" 51 | install_bcsymbolmap "$f" "$destination" 52 | rm "$f" 53 | done 54 | rmdir "${source}/${BCSYMBOLMAP_DIR}" 55 | fi 56 | 57 | # Use filter instead of exclude so missing patterns don't throw errors. 58 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 59 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 60 | 61 | local basename 62 | basename="$(basename -s .framework "$1")" 63 | binary="${destination}/${basename}.framework/${basename}" 64 | 65 | if ! [ -r "$binary" ]; then 66 | binary="${destination}/${basename}" 67 | elif [ -L "${binary}" ]; then 68 | echo "Destination binary is symlinked..." 69 | dirname="$(dirname "${binary}")" 70 | binary="${dirname}/$(readlink "${binary}")" 71 | fi 72 | 73 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 74 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 75 | strip_invalid_archs "$binary" 76 | fi 77 | 78 | # Resign the code if required by the build settings to avoid unstable apps 79 | code_sign_if_enabled "${destination}/$(basename "$1")" 80 | 81 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 82 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 83 | local swift_runtime_libs 84 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 85 | for lib in $swift_runtime_libs; do 86 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 87 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 88 | code_sign_if_enabled "${destination}/${lib}" 89 | done 90 | fi 91 | } 92 | # Copies and strips a vendored dSYM 93 | install_dsym() { 94 | local source="$1" 95 | warn_missing_arch=${2:-true} 96 | if [ -r "$source" ]; then 97 | # Copy the dSYM into the targets temp dir. 98 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 99 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 100 | 101 | local basename 102 | basename="$(basename -s .dSYM "$source")" 103 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 104 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 105 | 106 | # Strip invalid architectures from the dSYM. 107 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 108 | strip_invalid_archs "$binary" "$warn_missing_arch" 109 | fi 110 | if [[ $STRIP_BINARY_RETVAL == 0 ]]; then 111 | # Move the stripped file into its final destination. 112 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 113 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 114 | else 115 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 116 | mkdir -p "${DWARF_DSYM_FOLDER_PATH}" 117 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 118 | fi 119 | fi 120 | } 121 | 122 | # Used as a return value for each invocation of `strip_invalid_archs` function. 123 | STRIP_BINARY_RETVAL=0 124 | 125 | # Strip invalid architectures 126 | strip_invalid_archs() { 127 | binary="$1" 128 | warn_missing_arch=${2:-true} 129 | # Get architectures for current target binary 130 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 131 | # Intersect them with the architectures we are building for 132 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 133 | # If there are no archs supported by this binary then warn the user 134 | if [[ -z "$intersected_archs" ]]; then 135 | if [[ "$warn_missing_arch" == "true" ]]; then 136 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 137 | fi 138 | STRIP_BINARY_RETVAL=1 139 | return 140 | fi 141 | stripped="" 142 | for arch in $binary_archs; do 143 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 144 | # Strip non-valid architectures in-place 145 | lipo -remove "$arch" -output "$binary" "$binary" 146 | stripped="$stripped $arch" 147 | fi 148 | done 149 | if [[ "$stripped" ]]; then 150 | echo "Stripped $binary of architectures:$stripped" 151 | fi 152 | STRIP_BINARY_RETVAL=0 153 | } 154 | 155 | # Copies the bcsymbolmap files of a vendored framework 156 | install_bcsymbolmap() { 157 | local bcsymbolmap_path="$1" 158 | local destination="${BUILT_PRODUCTS_DIR}" 159 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 160 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 161 | } 162 | 163 | # Signs a framework with the provided identity 164 | code_sign_if_enabled() { 165 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 166 | # Use the current code_sign_identity 167 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 168 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 169 | 170 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 171 | code_sign_cmd="$code_sign_cmd &" 172 | fi 173 | echo "$code_sign_cmd" 174 | eval "$code_sign_cmd" 175 | fi 176 | } 177 | 178 | if [[ "$CONFIGURATION" == "Debug" ]]; then 179 | install_framework "${BUILT_PRODUCTS_DIR}/CNChainWrapper/CNChainWrapper.framework" 180 | fi 181 | if [[ "$CONFIGURATION" == "Release" ]]; then 182 | install_framework "${BUILT_PRODUCTS_DIR}/CNChainWrapper/CNChainWrapper.framework" 183 | fi 184 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 185 | wait 186 | fi 187 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_CNChainWrapper_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_CNChainWrapper_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper/CNChainWrapper.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 8 | OTHER_LDFLAGS = $(inherited) -framework "CNChainWrapper" 9 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 10 | PODS_BUILD_DIR = ${BUILD_DIR} 11 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 12 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 13 | PODS_ROOT = ${SRCROOT}/Pods 14 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 15 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CNChainWrapper_Example { 2 | umbrella header "Pods-CNChainWrapper_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Example/Pods-CNChainWrapper_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper/CNChainWrapper.framework/Headers" 6 | LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' 7 | LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift 8 | OTHER_LDFLAGS = $(inherited) -framework "CNChainWrapper" 9 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 10 | PODS_BUILD_DIR = ${BUILD_DIR} 11 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 12 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 13 | PODS_ROOT = ${SRCROOT}/Pods 14 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 15 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CNChainWrapper_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CNChainWrapper_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_CNChainWrapper_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_CNChainWrapper_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper/CNChainWrapper.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "CNChainWrapper" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CNChainWrapper_Tests { 2 | umbrella header "Pods-CNChainWrapper_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CNChainWrapper_Tests/Pods-CNChainWrapper_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/CNChainWrapper/CNChainWrapper.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "CNChainWrapper" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import CNChainWrapper 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021 CouchNut 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CNChainWrapper 2 | 3 | [![CI Status](https://img.shields.io/travis/CouchNut/CNChainWrapper.svg?style=flat)](https://travis-ci.org/CouchNut/CNChainWrapper) 4 | [![Version](https://img.shields.io/cocoapods/v/CNChainWrapper.svg?style=flat)](https://cocoapods.org/pods/CNChainWrapper) 5 | [![License](https://img.shields.io/cocoapods/l/CNChainWrapper.svg?style=flat)](https://cocoapods.org/pods/CNChainWrapper) 6 | [![Platform](https://img.shields.io/cocoapods/p/CNChainWrapper.svg?style=flat)](https://cocoapods.org/pods/CNChainWrapper) 7 | 8 | 在日常开发中,使用 Swift 实现链式调用时,会写出以下类似代码: 9 | 10 | ```swift 11 | class Person { 12 | var id: Int? 13 | var name: String? 14 | var age: Int? 15 | var nickName: String? 16 | 17 | func id(_ id: Int?) -> Person { 18 | self.id = id 19 | return self 20 | } 21 | 22 | func name(_ name: String?) -> Person { 23 | self.name = name 24 | return self 25 | } 26 | 27 | func age(_ age: Int?) -> Person { 28 | self.age = age 29 | return self 30 | } 31 | 32 | func nickName(_ nickName: String?) -> Person { 33 | self.nickName = nickName 34 | return self 35 | } 36 | } 37 | 38 | let person = Person().age(18).name("Bob").id(1).nickName("Job") 39 | .... 40 | ``` 41 | 42 | 如果只是那么一两个类需要实现链式调用,问题还不是很大,当遇到一个项目里几乎所有的类都需要实现链式调用时,这样写起来,不仅代码量大,而且重复工作太多,耗时耗力,给我们带来非常大的痛苦。 43 | 44 | 在经历过多次此种痛苦后,终于受不了这种写法,想寻找一个新的、酷的、省力气的实现链式调用的方式,经过一两个小时的探索,终于 `CNChainWrapper` 诞生了,目前本人已经加入到项目中。 45 | 46 | ## 如何使用 47 | 48 | ## 1、安装 49 | 50 | ### CocoaPods 51 | 52 | 在 Podfile 中添加下面代码,然后执行 `pod install` 53 | 54 | ```ruby 55 | pod 'CNChainWrapper' 56 | ``` 57 | 58 | ### Carthage 59 | 60 | 敬请期待 61 | 62 | ### Swift Package Manager 63 | 64 | 敬请期待 65 | 66 | ## 2、使用 67 | 68 | 在需要使用的 swift 文件中导入 `CNChainWrapper` 即可 69 | 70 | ```swift 71 | import CNChainWrapper 72 | ``` 73 | 74 | 想要链式调用时,只需要优先调用 `cn` 即可,代码如下: 75 | 76 | ### Class 77 | 78 | * 继承自 `NSObject` 的类 79 | ```swift 80 | class Student: NSObject { 81 | var id: Int? 82 | var name: String? 83 | var age: Int? 84 | var nickName: String? 85 | } 86 | 87 | let student = Student().cn 88 | .id(1) 89 | .name("Bob") 90 | .nickName("Job") 91 | .age(18) 92 | ``` 93 | 94 | 省时省力,只需要给类定义好属性即可 95 | 96 | * 非继承自 NSObjec 的类 97 | 98 | 实现方法与 Struct 类似,遵守 CNChainWrapperCompatible 即可,可参考 Struct 99 | 100 | ### Struct 101 | `Struct` 需要特殊处理一下,也不难,只需要遵守 CNChainWrapperCompatible 即可, 代码如下: 102 | ```swift 103 | struct Child: CNChainWrapperCompatible { 104 | var id: Int? 105 | var name: String? 106 | var age: Int? 107 | var nickName: String? 108 | } 109 | 110 | let child = Child().cn 111 | .id(1) 112 | .name("Bob") 113 | .nickName("Job") 114 | .age(18) 115 | ``` 116 | 117 | **注:** enum,目前还没有测试过,等以后需要了再测试~ 118 | 119 | ## 参考并感谢 120 | 121 | - [RxSwift](https://github.com/ReactiveX/RxSwift/blob/main/RxSwift/Reactive.swift)的 `rx` 实现方式,具体文件是 `Reactive.swift` 122 | - [掘金](https://juejin.cn/post/7005541971427065886) 上这位大兄弟的文章。 -------------------------------------------------------------------------------- /Sources/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CouchNut/CNChainWrapper/99a2b17d01a1e353a357a3b739c99ab670ee5102/Sources/Assets/.gitkeep -------------------------------------------------------------------------------- /Sources/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CouchNut/CNChainWrapper/99a2b17d01a1e353a357a3b739c99ab670ee5102/Sources/Classes/.gitkeep -------------------------------------------------------------------------------- /Sources/Classes/CNChainWrapper.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CNChainWrapper.swift 3 | // PlatformA 4 | // 5 | // Created by Copper on 2021/9/24. 6 | // 7 | 8 | import UIKit 9 | 10 | @dynamicMemberLookup 11 | public struct CNChainWrapper { 12 | public let subject: Subject 13 | 14 | public init(_ subject: Subject) { 15 | self.subject = subject 16 | } 17 | 18 | public subscript( 19 | dynamicMember keyPath: WritableKeyPath 20 | ) -> ((Value) -> CNChainWrapper) { 21 | var subject = self.subject 22 | return { value in 23 | subject[keyPath: keyPath] = value 24 | return CNChainWrapper(subject) 25 | } 26 | } 27 | } 28 | 29 | public protocol CNChainWrapperCompatible { 30 | associatedtype ChainWrapperBase 31 | 32 | // swiftlint:disable:next identifier_name 33 | static var cn: CNChainWrapper.Type { get set } 34 | 35 | // swiftlint:disable:next identifier_name 36 | var cn: CNChainWrapper { get set } 37 | } 38 | 39 | extension CNChainWrapperCompatible { 40 | // swiftlint:disable:next identifier_name 41 | public static var cn: CNChainWrapper.Type { 42 | get { CNChainWrapper.self } 43 | // this enables using CNChainWrapper to "mutate" base type 44 | // swiftlint:disable:next unused_setter_value 45 | set {} 46 | } 47 | 48 | // swiftlint:disable:next identifier_name 49 | public var cn: CNChainWrapper { 50 | get { CNChainWrapper(self) } 51 | // this enables using CNChainWrapper to "mutate" base type 52 | // swiftlint:disable:next unused_setter_value 53 | set {} 54 | } 55 | } 56 | 57 | /// Extend NSObject with `cn` proxy. 58 | extension NSObject: CNChainWrapperCompatible { } 59 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------