├── .gitignore ├── FILE_LICENSE ├── MainProject.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── casa.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── MainProject ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── BViewController │ ├── BViewController.h │ ├── BViewController.m │ └── Targets │ │ ├── Target_B.h │ │ └── Target_B.m ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── Podfile └── readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | MainProject.xcodeproj/xcuserdata/ 2 | MainProject.xcworkspace/ 3 | Pods/ 4 | *.swp 5 | Podfile.lock 6 | .DS_Store 7 | MainProject.xcodeproj/project.xcworkspace/xcuserdata/ 8 | -------------------------------------------------------------------------------- /FILE_LICENSE: -------------------------------------------------------------------------------- 1 | MIT 2 | -------------------------------------------------------------------------------- /MainProject.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4A3F63E51DFBEB9700C7D2EE /* Target_B.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A3F63E41DFBEB9700C7D2EE /* Target_B.m */; }; 11 | 4A510BAD1DFB91B0005B9DB9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A510BAC1DFB91B0005B9DB9 /* main.m */; }; 12 | 4A510BB01DFB91B0005B9DB9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A510BAF1DFB91B0005B9DB9 /* AppDelegate.m */; }; 13 | 4A510BB31DFB91B0005B9DB9 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A510BB21DFB91B0005B9DB9 /* ViewController.m */; }; 14 | 4A510BB61DFB91B0005B9DB9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4A510BB41DFB91B0005B9DB9 /* Main.storyboard */; }; 15 | 4A510BB81DFB91B0005B9DB9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4A510BB71DFB91B0005B9DB9 /* Assets.xcassets */; }; 16 | 4A510BBB1DFB91B0005B9DB9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4A510BB91DFB91B0005B9DB9 /* LaunchScreen.storyboard */; }; 17 | 4A510BC91DFB925E005B9DB9 /* BViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A510BC81DFB925E005B9DB9 /* BViewController.m */; }; 18 | BE99CFD91528A7C5FC4E5535 /* Pods_MainProject.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF487BF666A511CCE0D1BDDE /* Pods_MainProject.framework */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | 4003BDE36800E7259021C8F5 /* Pods-MainProject.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MainProject.release.xcconfig"; path = "Pods/Target Support Files/Pods-MainProject/Pods-MainProject.release.xcconfig"; sourceTree = ""; }; 23 | 4732F0A38173004B46459775 /* Pods-MainProject.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MainProject.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MainProject/Pods-MainProject.debug.xcconfig"; sourceTree = ""; }; 24 | 4A3F63E31DFBEB9700C7D2EE /* Target_B.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Target_B.h; sourceTree = ""; }; 25 | 4A3F63E41DFBEB9700C7D2EE /* Target_B.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Target_B.m; sourceTree = ""; }; 26 | 4A510BA81DFB91B0005B9DB9 /* MainProject.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MainProject.app; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 4A510BAC1DFB91B0005B9DB9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 28 | 4A510BAE1DFB91B0005B9DB9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 29 | 4A510BAF1DFB91B0005B9DB9 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 30 | 4A510BB11DFB91B0005B9DB9 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 31 | 4A510BB21DFB91B0005B9DB9 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 32 | 4A510BB51DFB91B0005B9DB9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 33 | 4A510BB71DFB91B0005B9DB9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 34 | 4A510BBA1DFB91B0005B9DB9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 35 | 4A510BBC1DFB91B0005B9DB9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 4A510BC71DFB925E005B9DB9 /* BViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BViewController.h; sourceTree = ""; }; 37 | 4A510BC81DFB925E005B9DB9 /* BViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BViewController.m; sourceTree = ""; }; 38 | BF487BF666A511CCE0D1BDDE /* Pods_MainProject.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MainProject.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | 4A510BA51DFB91AF005B9DB9 /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | BE99CFD91528A7C5FC4E5535 /* Pods_MainProject.framework in Frameworks */, 47 | ); 48 | runOnlyForDeploymentPostprocessing = 0; 49 | }; 50 | /* End PBXFrameworksBuildPhase section */ 51 | 52 | /* Begin PBXGroup section */ 53 | 4A3F63E21DFBEB8C00C7D2EE /* Targets */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 4A3F63E31DFBEB9700C7D2EE /* Target_B.h */, 57 | 4A3F63E41DFBEB9700C7D2EE /* Target_B.m */, 58 | ); 59 | path = Targets; 60 | sourceTree = ""; 61 | }; 62 | 4A510B9F1DFB91AF005B9DB9 = { 63 | isa = PBXGroup; 64 | children = ( 65 | 4A510BAA1DFB91B0005B9DB9 /* MainProject */, 66 | 4A510BA91DFB91B0005B9DB9 /* Products */, 67 | FDAB92F25041AC2D87DFB2DA /* Pods */, 68 | FF6B7731E91A54EFFFEB8C06 /* Frameworks */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | 4A510BA91DFB91B0005B9DB9 /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 4A510BA81DFB91B0005B9DB9 /* MainProject.app */, 76 | ); 77 | name = Products; 78 | sourceTree = ""; 79 | }; 80 | 4A510BAA1DFB91B0005B9DB9 /* MainProject */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 4A510BC21DFB924C005B9DB9 /* BViewController */, 84 | 4A510BAE1DFB91B0005B9DB9 /* AppDelegate.h */, 85 | 4A510BAF1DFB91B0005B9DB9 /* AppDelegate.m */, 86 | 4A510BB11DFB91B0005B9DB9 /* ViewController.h */, 87 | 4A510BB21DFB91B0005B9DB9 /* ViewController.m */, 88 | 4A510BB41DFB91B0005B9DB9 /* Main.storyboard */, 89 | 4A510BB71DFB91B0005B9DB9 /* Assets.xcassets */, 90 | 4A510BB91DFB91B0005B9DB9 /* LaunchScreen.storyboard */, 91 | 4A510BBC1DFB91B0005B9DB9 /* Info.plist */, 92 | 4A510BAB1DFB91B0005B9DB9 /* Supporting Files */, 93 | ); 94 | path = MainProject; 95 | sourceTree = ""; 96 | }; 97 | 4A510BAB1DFB91B0005B9DB9 /* Supporting Files */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 4A510BAC1DFB91B0005B9DB9 /* main.m */, 101 | ); 102 | name = "Supporting Files"; 103 | sourceTree = ""; 104 | }; 105 | 4A510BC21DFB924C005B9DB9 /* BViewController */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 4A3F63E21DFBEB8C00C7D2EE /* Targets */, 109 | 4A510BC71DFB925E005B9DB9 /* BViewController.h */, 110 | 4A510BC81DFB925E005B9DB9 /* BViewController.m */, 111 | ); 112 | path = BViewController; 113 | sourceTree = ""; 114 | }; 115 | FDAB92F25041AC2D87DFB2DA /* Pods */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 4732F0A38173004B46459775 /* Pods-MainProject.debug.xcconfig */, 119 | 4003BDE36800E7259021C8F5 /* Pods-MainProject.release.xcconfig */, 120 | ); 121 | name = Pods; 122 | sourceTree = ""; 123 | }; 124 | FF6B7731E91A54EFFFEB8C06 /* Frameworks */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | BF487BF666A511CCE0D1BDDE /* Pods_MainProject.framework */, 128 | ); 129 | name = Frameworks; 130 | sourceTree = ""; 131 | }; 132 | /* End PBXGroup section */ 133 | 134 | /* Begin PBXNativeTarget section */ 135 | 4A510BA71DFB91AF005B9DB9 /* MainProject */ = { 136 | isa = PBXNativeTarget; 137 | buildConfigurationList = 4A510BBF1DFB91B0005B9DB9 /* Build configuration list for PBXNativeTarget "MainProject" */; 138 | buildPhases = ( 139 | 4642BF9F2221A8232497CFB2 /* [CP] Check Pods Manifest.lock */, 140 | 4A510BA41DFB91AF005B9DB9 /* Sources */, 141 | 4A510BA51DFB91AF005B9DB9 /* Frameworks */, 142 | 4A510BA61DFB91AF005B9DB9 /* Resources */, 143 | 594378B4621C36D1312A4E3C /* [CP] Embed Pods Frameworks */, 144 | ); 145 | buildRules = ( 146 | ); 147 | dependencies = ( 148 | ); 149 | name = MainProject; 150 | productName = MainProject; 151 | productReference = 4A510BA81DFB91B0005B9DB9 /* MainProject.app */; 152 | productType = "com.apple.product-type.application"; 153 | }; 154 | /* End PBXNativeTarget section */ 155 | 156 | /* Begin PBXProject section */ 157 | 4A510BA01DFB91AF005B9DB9 /* Project object */ = { 158 | isa = PBXProject; 159 | attributes = { 160 | LastUpgradeCheck = 0940; 161 | ORGANIZATIONNAME = casa; 162 | TargetAttributes = { 163 | 4A510BA71DFB91AF005B9DB9 = { 164 | CreatedOnToolsVersion = 8.1; 165 | ProvisioningStyle = Automatic; 166 | }; 167 | }; 168 | }; 169 | buildConfigurationList = 4A510BA31DFB91AF005B9DB9 /* Build configuration list for PBXProject "MainProject" */; 170 | compatibilityVersion = "Xcode 3.2"; 171 | developmentRegion = English; 172 | hasScannedForEncodings = 0; 173 | knownRegions = ( 174 | en, 175 | Base, 176 | ); 177 | mainGroup = 4A510B9F1DFB91AF005B9DB9; 178 | productRefGroup = 4A510BA91DFB91B0005B9DB9 /* Products */; 179 | projectDirPath = ""; 180 | projectRoot = ""; 181 | targets = ( 182 | 4A510BA71DFB91AF005B9DB9 /* MainProject */, 183 | ); 184 | }; 185 | /* End PBXProject section */ 186 | 187 | /* Begin PBXResourcesBuildPhase section */ 188 | 4A510BA61DFB91AF005B9DB9 /* Resources */ = { 189 | isa = PBXResourcesBuildPhase; 190 | buildActionMask = 2147483647; 191 | files = ( 192 | 4A510BBB1DFB91B0005B9DB9 /* LaunchScreen.storyboard in Resources */, 193 | 4A510BB81DFB91B0005B9DB9 /* Assets.xcassets in Resources */, 194 | 4A510BB61DFB91B0005B9DB9 /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 4642BF9F2221A8232497CFB2 /* [CP] Check Pods Manifest.lock */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 208 | "${PODS_ROOT}/Manifest.lock", 209 | ); 210 | name = "[CP] Check Pods Manifest.lock"; 211 | outputPaths = ( 212 | "$(DERIVED_FILE_DIR)/Pods-MainProject-checkManifestLockResult.txt", 213 | ); 214 | runOnlyForDeploymentPostprocessing = 0; 215 | shellPath = /bin/sh; 216 | 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"; 217 | showEnvVarsInLog = 0; 218 | }; 219 | 594378B4621C36D1312A4E3C /* [CP] Embed Pods Frameworks */ = { 220 | isa = PBXShellScriptBuildPhase; 221 | buildActionMask = 2147483647; 222 | files = ( 223 | ); 224 | inputPaths = ( 225 | "${PODS_ROOT}/Target Support Files/Pods-MainProject/Pods-MainProject-frameworks.sh", 226 | "${BUILT_PRODUCTS_DIR}/A/A.framework", 227 | "${BUILT_PRODUCTS_DIR}/A_Category/A_Category.framework", 228 | "${BUILT_PRODUCTS_DIR}/A_Extension/A_Extension.framework", 229 | "${BUILT_PRODUCTS_DIR}/A_swift/A_swift.framework", 230 | "${BUILT_PRODUCTS_DIR}/B_Category/B_Category.framework", 231 | "${BUILT_PRODUCTS_DIR}/CTMediator/CTMediator.framework", 232 | "${BUILT_PRODUCTS_DIR}/HandyFrame/HandyFrame.framework", 233 | ); 234 | name = "[CP] Embed Pods Frameworks"; 235 | outputPaths = ( 236 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/A.framework", 237 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/A_Category.framework", 238 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/A_Extension.framework", 239 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/A_swift.framework", 240 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/B_Category.framework", 241 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CTMediator.framework", 242 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/HandyFrame.framework", 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | shellPath = /bin/sh; 246 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-MainProject/Pods-MainProject-frameworks.sh\"\n"; 247 | showEnvVarsInLog = 0; 248 | }; 249 | /* End PBXShellScriptBuildPhase section */ 250 | 251 | /* Begin PBXSourcesBuildPhase section */ 252 | 4A510BA41DFB91AF005B9DB9 /* Sources */ = { 253 | isa = PBXSourcesBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | 4A510BB31DFB91B0005B9DB9 /* ViewController.m in Sources */, 257 | 4A510BB01DFB91B0005B9DB9 /* AppDelegate.m in Sources */, 258 | 4A3F63E51DFBEB9700C7D2EE /* Target_B.m in Sources */, 259 | 4A510BC91DFB925E005B9DB9 /* BViewController.m in Sources */, 260 | 4A510BAD1DFB91B0005B9DB9 /* main.m in Sources */, 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXSourcesBuildPhase section */ 265 | 266 | /* Begin PBXVariantGroup section */ 267 | 4A510BB41DFB91B0005B9DB9 /* Main.storyboard */ = { 268 | isa = PBXVariantGroup; 269 | children = ( 270 | 4A510BB51DFB91B0005B9DB9 /* Base */, 271 | ); 272 | name = Main.storyboard; 273 | sourceTree = ""; 274 | }; 275 | 4A510BB91DFB91B0005B9DB9 /* LaunchScreen.storyboard */ = { 276 | isa = PBXVariantGroup; 277 | children = ( 278 | 4A510BBA1DFB91B0005B9DB9 /* Base */, 279 | ); 280 | name = LaunchScreen.storyboard; 281 | sourceTree = ""; 282 | }; 283 | /* End PBXVariantGroup section */ 284 | 285 | /* Begin XCBuildConfiguration section */ 286 | 4A510BBD1DFB91B0005B9DB9 /* Debug */ = { 287 | isa = XCBuildConfiguration; 288 | buildSettings = { 289 | ALWAYS_SEARCH_USER_PATHS = NO; 290 | CLANG_ANALYZER_NONNULL = YES; 291 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 292 | CLANG_CXX_LIBRARY = "libc++"; 293 | CLANG_ENABLE_MODULES = YES; 294 | CLANG_ENABLE_OBJC_ARC = YES; 295 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 296 | CLANG_WARN_BOOL_CONVERSION = YES; 297 | CLANG_WARN_COMMA = YES; 298 | CLANG_WARN_CONSTANT_CONVERSION = YES; 299 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 300 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 301 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 302 | CLANG_WARN_EMPTY_BODY = YES; 303 | CLANG_WARN_ENUM_CONVERSION = YES; 304 | CLANG_WARN_INFINITE_RECURSION = YES; 305 | CLANG_WARN_INT_CONVERSION = YES; 306 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 307 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 308 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 309 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 310 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 311 | CLANG_WARN_STRICT_PROTOTYPES = YES; 312 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 313 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 314 | CLANG_WARN_UNREACHABLE_CODE = YES; 315 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 316 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 317 | COPY_PHASE_STRIP = NO; 318 | DEBUG_INFORMATION_FORMAT = dwarf; 319 | ENABLE_STRICT_OBJC_MSGSEND = YES; 320 | ENABLE_TESTABILITY = YES; 321 | GCC_C_LANGUAGE_STANDARD = gnu99; 322 | GCC_DYNAMIC_NO_PIC = NO; 323 | GCC_NO_COMMON_BLOCKS = YES; 324 | GCC_OPTIMIZATION_LEVEL = 0; 325 | GCC_PREPROCESSOR_DEFINITIONS = ( 326 | "DEBUG=1", 327 | "$(inherited)", 328 | ); 329 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 330 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 331 | GCC_WARN_UNDECLARED_SELECTOR = YES; 332 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 333 | GCC_WARN_UNUSED_FUNCTION = YES; 334 | GCC_WARN_UNUSED_VARIABLE = YES; 335 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 336 | MTL_ENABLE_DEBUG_INFO = YES; 337 | ONLY_ACTIVE_ARCH = YES; 338 | SDKROOT = iphoneos; 339 | TARGETED_DEVICE_FAMILY = "1,2"; 340 | }; 341 | name = Debug; 342 | }; 343 | 4A510BBE1DFB91B0005B9DB9 /* Release */ = { 344 | isa = XCBuildConfiguration; 345 | buildSettings = { 346 | ALWAYS_SEARCH_USER_PATHS = NO; 347 | CLANG_ANALYZER_NONNULL = YES; 348 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 349 | CLANG_CXX_LIBRARY = "libc++"; 350 | CLANG_ENABLE_MODULES = YES; 351 | CLANG_ENABLE_OBJC_ARC = YES; 352 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 353 | CLANG_WARN_BOOL_CONVERSION = YES; 354 | CLANG_WARN_COMMA = YES; 355 | CLANG_WARN_CONSTANT_CONVERSION = YES; 356 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 357 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 358 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 359 | CLANG_WARN_EMPTY_BODY = YES; 360 | CLANG_WARN_ENUM_CONVERSION = YES; 361 | CLANG_WARN_INFINITE_RECURSION = YES; 362 | CLANG_WARN_INT_CONVERSION = YES; 363 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 364 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 365 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 366 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 367 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 368 | CLANG_WARN_STRICT_PROTOTYPES = YES; 369 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 370 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 371 | CLANG_WARN_UNREACHABLE_CODE = YES; 372 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 373 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 374 | COPY_PHASE_STRIP = NO; 375 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 376 | ENABLE_NS_ASSERTIONS = NO; 377 | ENABLE_STRICT_OBJC_MSGSEND = YES; 378 | GCC_C_LANGUAGE_STANDARD = gnu99; 379 | GCC_NO_COMMON_BLOCKS = YES; 380 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 381 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 382 | GCC_WARN_UNDECLARED_SELECTOR = YES; 383 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 384 | GCC_WARN_UNUSED_FUNCTION = YES; 385 | GCC_WARN_UNUSED_VARIABLE = YES; 386 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 387 | MTL_ENABLE_DEBUG_INFO = NO; 388 | SDKROOT = iphoneos; 389 | TARGETED_DEVICE_FAMILY = "1,2"; 390 | VALIDATE_PRODUCT = YES; 391 | }; 392 | name = Release; 393 | }; 394 | 4A510BC01DFB91B0005B9DB9 /* Debug */ = { 395 | isa = XCBuildConfiguration; 396 | baseConfigurationReference = 4732F0A38173004B46459775 /* Pods-MainProject.debug.xcconfig */; 397 | buildSettings = { 398 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 399 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 400 | INFOPLIST_FILE = MainProject/Info.plist; 401 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 402 | PRODUCT_BUNDLE_IDENTIFIER = casa.MainProject; 403 | PRODUCT_NAME = "$(TARGET_NAME)"; 404 | }; 405 | name = Debug; 406 | }; 407 | 4A510BC11DFB91B0005B9DB9 /* Release */ = { 408 | isa = XCBuildConfiguration; 409 | baseConfigurationReference = 4003BDE36800E7259021C8F5 /* Pods-MainProject.release.xcconfig */; 410 | buildSettings = { 411 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | INFOPLIST_FILE = MainProject/Info.plist; 414 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 415 | PRODUCT_BUNDLE_IDENTIFIER = casa.MainProject; 416 | PRODUCT_NAME = "$(TARGET_NAME)"; 417 | }; 418 | name = Release; 419 | }; 420 | /* End XCBuildConfiguration section */ 421 | 422 | /* Begin XCConfigurationList section */ 423 | 4A510BA31DFB91AF005B9DB9 /* Build configuration list for PBXProject "MainProject" */ = { 424 | isa = XCConfigurationList; 425 | buildConfigurations = ( 426 | 4A510BBD1DFB91B0005B9DB9 /* Debug */, 427 | 4A510BBE1DFB91B0005B9DB9 /* Release */, 428 | ); 429 | defaultConfigurationIsVisible = 0; 430 | defaultConfigurationName = Release; 431 | }; 432 | 4A510BBF1DFB91B0005B9DB9 /* Build configuration list for PBXNativeTarget "MainProject" */ = { 433 | isa = XCConfigurationList; 434 | buildConfigurations = ( 435 | 4A510BC01DFB91B0005B9DB9 /* Debug */, 436 | 4A510BC11DFB91B0005B9DB9 /* Release */, 437 | ); 438 | defaultConfigurationIsVisible = 0; 439 | defaultConfigurationName = Release; 440 | }; 441 | /* End XCConfigurationList section */ 442 | }; 443 | rootObject = 4A510BA01DFB91AF005B9DB9 /* Project object */; 444 | } 445 | -------------------------------------------------------------------------------- /MainProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MainProject.xcodeproj/xcuserdata/casa.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | MainProject.xcscheme 8 | 9 | orderHint 10 | 6 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 4A510BA71DFB91AF005B9DB9 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /MainProject/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /MainProject/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /MainProject/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /MainProject/BViewController/BViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BViewController.h 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BViewController : UIViewController 12 | 13 | - (instancetype)initWithContentText:(NSString *)contentText; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /MainProject/BViewController/BViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BViewController.m 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import "BViewController.h" 10 | #import 11 | 12 | @interface BViewController () 13 | 14 | @property (nonatomic, strong) UILabel *contentLabel; 15 | 16 | @end 17 | 18 | @implementation BViewController 19 | 20 | #pragma mark - life cycle 21 | - (instancetype)initWithContentText:(NSString *)contentText 22 | { 23 | self = [super init]; 24 | if (self) { 25 | self.contentLabel.text = contentText; 26 | } 27 | return self; 28 | } 29 | 30 | - (void)viewDidLoad 31 | { 32 | [super viewDidLoad]; 33 | self.view.backgroundColor = [UIColor whiteColor]; 34 | [self.view addSubview:self.contentLabel]; 35 | } 36 | 37 | - (void)viewWillLayoutSubviews 38 | { 39 | [super viewWillLayoutSubviews]; 40 | [self.contentLabel sizeToFit]; 41 | [self.contentLabel centerEqualToView:self.view]; 42 | } 43 | 44 | #pragma mark - getters and setters 45 | - (UILabel *)contentLabel 46 | { 47 | if (_contentLabel == nil) { 48 | _contentLabel = [[UILabel alloc] init]; 49 | _contentLabel.textColor = [UIColor blueColor]; 50 | } 51 | return _contentLabel; 52 | } 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /MainProject/BViewController/Targets/Target_B.h: -------------------------------------------------------------------------------- 1 | // 2 | // Target_B.h 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface Target_B : NSObject 12 | 13 | - (UIViewController *)Action_viewController:(NSDictionary *)params; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /MainProject/BViewController/Targets/Target_B.m: -------------------------------------------------------------------------------- 1 | // 2 | // Target_B.m 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import "Target_B.h" 10 | #import "BViewController.h" 11 | 12 | @implementation Target_B 13 | 14 | - (UIViewController *)Action_viewController:(NSDictionary *)params 15 | { 16 | NSString *contentText = params[@"contentText"]; 17 | BViewController *viewController = [[BViewController alloc] initWithContentText:contentText]; 18 | return viewController; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /MainProject/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /MainProject/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 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /MainProject/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 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /MainProject/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /MainProject/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | @interface ViewController () 16 | 17 | @property (nonatomic, strong) UITableView *tableView; 18 | @property (nonatomic, strong) NSArray *dataSource; 19 | 20 | @end 21 | 22 | @implementation ViewController 23 | 24 | #pragma mark - life cycle 25 | - (void)viewDidLoad 26 | { 27 | [super viewDidLoad]; 28 | [self.view addSubview:self.tableView]; 29 | } 30 | 31 | - (void)viewWillLayoutSubviews 32 | { 33 | [super viewWillLayoutSubviews]; 34 | [self.tableView fill]; 35 | } 36 | 37 | #pragma mark - UITableViewDataSource 38 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 39 | { 40 | return self.dataSource.count; 41 | } 42 | 43 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 44 | { 45 | return [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath]; 46 | } 47 | 48 | #pragma mark - UITableViewDelegate 49 | - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath 50 | { 51 | cell.textLabel.text = self.dataSource[indexPath.row]; 52 | } 53 | 54 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 55 | { 56 | if (indexPath.row == 0) { 57 | // Objective-C -> Category -> Objective-C 58 | UIViewController *viewController = [[CTMediator sharedInstance] A_Category_Objc_ViewControllerWithCallback:^(NSString *result) { 59 | NSLog(@"%@", result); 60 | }]; 61 | [self.navigationController pushViewController:viewController animated:YES]; 62 | } 63 | if (indexPath.row == 1) { 64 | // Objective-C -> Category -> Swift 65 | UIViewController *viewController = [[CTMediator sharedInstance] A_Category_Swift_ViewControllerWithCallback:^(NSString *result) { 66 | NSLog(@"%@", result); 67 | }]; 68 | [self.navigationController pushViewController:viewController animated:YES]; 69 | } 70 | if (indexPath.row == 2) { 71 | // Objective-C -> Extension -> Objective-C 72 | UIViewController *viewController = [[CTMediator sharedInstance] A_showObjcWithCallback:^(NSString * _Nonnull result) { 73 | NSLog(@"%@", result); 74 | }]; 75 | [self.navigationController pushViewController:viewController animated:YES]; 76 | } 77 | if (indexPath.row == 3) { 78 | // Objective-C -> Extension -> Swift 79 | UIViewController *viewController = [[CTMediator sharedInstance] A_showSwiftWithCallback:^(NSString * _Nonnull result) { 80 | NSLog(@"%@", result); 81 | }]; 82 | [self.navigationController pushViewController:viewController animated:YES]; 83 | } 84 | } 85 | 86 | #pragma mark - getters and setters 87 | - (UITableView *)tableView 88 | { 89 | if (_tableView == nil) { 90 | _tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain]; 91 | _tableView.delegate = self; 92 | _tableView.dataSource = self; 93 | [_tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"cell"]; 94 | } 95 | return _tableView; 96 | } 97 | 98 | - (NSArray *)dataSource 99 | { 100 | if (_dataSource == nil) { 101 | _dataSource = @[ 102 | @"Objective-C -> Category -> Objective-C", 103 | @"Objective-C -> Category -> Swift", 104 | @"Objective-C -> Extension -> Objective-C", 105 | @"Objective-C -> Extension -> Swift", 106 | ]; 107 | } 108 | return _dataSource; 109 | } 110 | 111 | @end 112 | -------------------------------------------------------------------------------- /MainProject/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // MainProject 4 | // 5 | // Created by casa on 2016/12/10. 6 | // Copyright © 2016年 casa. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | source 'https://github.com/ModulizationDemo/PrivatePods.git' 5 | source 'https://github.com/CocoaPods/Specs.git' 6 | 7 | target 'MainProject' do 8 | # Uncomment this line if you're using Swift or would like to use dynamic frameworks 9 | use_frameworks! 10 | use_modular_headers! 11 | # 12 | pod 'A_Category' 13 | pod 'A_Extension' 14 | pod 'HandyFrame' 15 | pod 'A' 16 | pod 'A_swift' 17 | pod 'CTMediator' 18 | 19 | end 20 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ``` 2 | pod repo add PrivatePods https://github.com/ModulizationDemo/PrivatePods.git 3 | 4 | pod update 5 | ``` 6 | --------------------------------------------------------------------------------