├── MixModuleFrameWork.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── nishant.s1.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── MixModuleFrameWork ├── Class.h ├── Class.mm ├── Info.plist ├── IntConverter.cpp ├── IntConverter.h ├── MixModuleFrameWork.h ├── TestCode-Private.h ├── TestCode.h ├── TestCode.m ├── TestCode.swift └── module.modulemap └── README.md /MixModuleFrameWork.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 9082523520AC1D60007A4E42 /* MixModuleFrameWork.h in Headers */ = {isa = PBXBuildFile; fileRef = 9082523320AC1D60007A4E42 /* MixModuleFrameWork.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 9082524320AC1DE2007A4E42 /* IntConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = 9082523B20AC1DE1007A4E42 /* IntConverter.h */; }; 12 | 9082524420AC1DE2007A4E42 /* TestCode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9082523C20AC1DE1007A4E42 /* TestCode.swift */; }; 13 | 9082524520AC1DE2007A4E42 /* Class.h in Headers */ = {isa = PBXBuildFile; fileRef = 9082523D20AC1DE1007A4E42 /* Class.h */; }; 14 | 9082524620AC1DE2007A4E42 /* TestCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 9082523E20AC1DE1007A4E42 /* TestCode.m */; }; 15 | 9082524720AC1DE2007A4E42 /* TestCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 9082523F20AC1DE2007A4E42 /* TestCode.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | 9082524820AC1DE2007A4E42 /* TestCode-Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 9082524020AC1DE2007A4E42 /* TestCode-Private.h */; }; 17 | 9082524920AC1DE2007A4E42 /* IntConverter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9082524120AC1DE2007A4E42 /* IntConverter.cpp */; }; 18 | 9082524A20AC1DE2007A4E42 /* Class.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9082524220AC1DE2007A4E42 /* Class.mm */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | 9082523020AC1D60007A4E42 /* MixModuleFrameWork.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MixModuleFrameWork.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 9082523320AC1D60007A4E42 /* MixModuleFrameWork.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MixModuleFrameWork.h; sourceTree = ""; }; 24 | 9082523420AC1D60007A4E42 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 25 | 9082523B20AC1DE1007A4E42 /* IntConverter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IntConverter.h; sourceTree = ""; }; 26 | 9082523C20AC1DE1007A4E42 /* TestCode.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestCode.swift; sourceTree = ""; }; 27 | 9082523D20AC1DE1007A4E42 /* Class.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Class.h; sourceTree = ""; }; 28 | 9082523E20AC1DE1007A4E42 /* TestCode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestCode.m; sourceTree = ""; }; 29 | 9082523F20AC1DE2007A4E42 /* TestCode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestCode.h; sourceTree = ""; }; 30 | 9082524020AC1DE2007A4E42 /* TestCode-Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TestCode-Private.h"; sourceTree = ""; }; 31 | 9082524120AC1DE2007A4E42 /* IntConverter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IntConverter.cpp; sourceTree = ""; }; 32 | 9082524220AC1DE2007A4E42 /* Class.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = Class.mm; sourceTree = ""; }; 33 | 9082524B20AC1EBD007A4E42 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; name = module.modulemap; path = MixModuleFrameWork/module.modulemap; sourceTree = ""; }; 34 | /* End PBXFileReference section */ 35 | 36 | /* Begin PBXFrameworksBuildPhase section */ 37 | 9082522C20AC1D60007A4E42 /* Frameworks */ = { 38 | isa = PBXFrameworksBuildPhase; 39 | buildActionMask = 2147483647; 40 | files = ( 41 | ); 42 | runOnlyForDeploymentPostprocessing = 0; 43 | }; 44 | /* End PBXFrameworksBuildPhase section */ 45 | 46 | /* Begin PBXGroup section */ 47 | 9082522620AC1D60007A4E42 = { 48 | isa = PBXGroup; 49 | children = ( 50 | 9082524B20AC1EBD007A4E42 /* module.modulemap */, 51 | 9082523220AC1D60007A4E42 /* MixModuleFrameWork */, 52 | 9082523120AC1D60007A4E42 /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | 9082523120AC1D60007A4E42 /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 9082523020AC1D60007A4E42 /* MixModuleFrameWork.framework */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | 9082523220AC1D60007A4E42 /* MixModuleFrameWork */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 9082523320AC1D60007A4E42 /* MixModuleFrameWork.h */, 68 | 9082523420AC1D60007A4E42 /* Info.plist */, 69 | 9082523D20AC1DE1007A4E42 /* Class.h */, 70 | 9082524220AC1DE2007A4E42 /* Class.mm */, 71 | 9082524120AC1DE2007A4E42 /* IntConverter.cpp */, 72 | 9082523B20AC1DE1007A4E42 /* IntConverter.h */, 73 | 9082524020AC1DE2007A4E42 /* TestCode-Private.h */, 74 | 9082523F20AC1DE2007A4E42 /* TestCode.h */, 75 | 9082523E20AC1DE1007A4E42 /* TestCode.m */, 76 | 9082523C20AC1DE1007A4E42 /* TestCode.swift */, 77 | ); 78 | path = MixModuleFrameWork; 79 | sourceTree = ""; 80 | }; 81 | /* End PBXGroup section */ 82 | 83 | /* Begin PBXHeadersBuildPhase section */ 84 | 9082522D20AC1D60007A4E42 /* Headers */ = { 85 | isa = PBXHeadersBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | 9082524520AC1DE2007A4E42 /* Class.h in Headers */, 89 | 9082524720AC1DE2007A4E42 /* TestCode.h in Headers */, 90 | 9082523520AC1D60007A4E42 /* MixModuleFrameWork.h in Headers */, 91 | 9082524320AC1DE2007A4E42 /* IntConverter.h in Headers */, 92 | 9082524820AC1DE2007A4E42 /* TestCode-Private.h in Headers */, 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | /* End PBXHeadersBuildPhase section */ 97 | 98 | /* Begin PBXNativeTarget section */ 99 | 9082522F20AC1D60007A4E42 /* MixModuleFrameWork */ = { 100 | isa = PBXNativeTarget; 101 | buildConfigurationList = 9082523820AC1D60007A4E42 /* Build configuration list for PBXNativeTarget "MixModuleFrameWork" */; 102 | buildPhases = ( 103 | 9082522B20AC1D60007A4E42 /* Sources */, 104 | 9082522C20AC1D60007A4E42 /* Frameworks */, 105 | 9082522D20AC1D60007A4E42 /* Headers */, 106 | 9082522E20AC1D60007A4E42 /* Resources */, 107 | ); 108 | buildRules = ( 109 | ); 110 | dependencies = ( 111 | ); 112 | name = MixModuleFrameWork; 113 | productName = MixModuleFrameWork; 114 | productReference = 9082523020AC1D60007A4E42 /* MixModuleFrameWork.framework */; 115 | productType = "com.apple.product-type.framework"; 116 | }; 117 | /* End PBXNativeTarget section */ 118 | 119 | /* Begin PBXProject section */ 120 | 9082522720AC1D60007A4E42 /* Project object */ = { 121 | isa = PBXProject; 122 | attributes = { 123 | LastUpgradeCheck = 0920; 124 | ORGANIZATIONNAME = Personal; 125 | TargetAttributes = { 126 | 9082522F20AC1D60007A4E42 = { 127 | CreatedOnToolsVersion = 9.2; 128 | LastSwiftMigration = 0920; 129 | ProvisioningStyle = Automatic; 130 | }; 131 | }; 132 | }; 133 | buildConfigurationList = 9082522A20AC1D60007A4E42 /* Build configuration list for PBXProject "MixModuleFrameWork" */; 134 | compatibilityVersion = "Xcode 8.0"; 135 | developmentRegion = en; 136 | hasScannedForEncodings = 0; 137 | knownRegions = ( 138 | en, 139 | ); 140 | mainGroup = 9082522620AC1D60007A4E42; 141 | productRefGroup = 9082523120AC1D60007A4E42 /* Products */; 142 | projectDirPath = ""; 143 | projectRoot = ""; 144 | targets = ( 145 | 9082522F20AC1D60007A4E42 /* MixModuleFrameWork */, 146 | ); 147 | }; 148 | /* End PBXProject section */ 149 | 150 | /* Begin PBXResourcesBuildPhase section */ 151 | 9082522E20AC1D60007A4E42 /* Resources */ = { 152 | isa = PBXResourcesBuildPhase; 153 | buildActionMask = 2147483647; 154 | files = ( 155 | ); 156 | runOnlyForDeploymentPostprocessing = 0; 157 | }; 158 | /* End PBXResourcesBuildPhase section */ 159 | 160 | /* Begin PBXSourcesBuildPhase section */ 161 | 9082522B20AC1D60007A4E42 /* Sources */ = { 162 | isa = PBXSourcesBuildPhase; 163 | buildActionMask = 2147483647; 164 | files = ( 165 | 9082524620AC1DE2007A4E42 /* TestCode.m in Sources */, 166 | 9082524420AC1DE2007A4E42 /* TestCode.swift in Sources */, 167 | 9082524A20AC1DE2007A4E42 /* Class.mm in Sources */, 168 | 9082524920AC1DE2007A4E42 /* IntConverter.cpp in Sources */, 169 | ); 170 | runOnlyForDeploymentPostprocessing = 0; 171 | }; 172 | /* End PBXSourcesBuildPhase section */ 173 | 174 | /* Begin XCBuildConfiguration section */ 175 | 9082523620AC1D60007A4E42 /* Debug */ = { 176 | isa = XCBuildConfiguration; 177 | buildSettings = { 178 | ALWAYS_SEARCH_USER_PATHS = NO; 179 | CLANG_ANALYZER_NONNULL = YES; 180 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 181 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 182 | CLANG_CXX_LIBRARY = "libc++"; 183 | CLANG_ENABLE_MODULES = YES; 184 | CLANG_ENABLE_OBJC_ARC = YES; 185 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 186 | CLANG_WARN_BOOL_CONVERSION = YES; 187 | CLANG_WARN_COMMA = YES; 188 | CLANG_WARN_CONSTANT_CONVERSION = YES; 189 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 190 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 191 | CLANG_WARN_EMPTY_BODY = YES; 192 | CLANG_WARN_ENUM_CONVERSION = YES; 193 | CLANG_WARN_INFINITE_RECURSION = YES; 194 | CLANG_WARN_INT_CONVERSION = YES; 195 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 196 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 197 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 198 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 199 | CLANG_WARN_STRICT_PROTOTYPES = YES; 200 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 201 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 202 | CLANG_WARN_UNREACHABLE_CODE = YES; 203 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 204 | CODE_SIGN_IDENTITY = "iPhone Developer"; 205 | COPY_PHASE_STRIP = NO; 206 | CURRENT_PROJECT_VERSION = 1; 207 | DEBUG_INFORMATION_FORMAT = dwarf; 208 | ENABLE_STRICT_OBJC_MSGSEND = YES; 209 | ENABLE_TESTABILITY = YES; 210 | GCC_C_LANGUAGE_STANDARD = gnu11; 211 | GCC_DYNAMIC_NO_PIC = NO; 212 | GCC_NO_COMMON_BLOCKS = YES; 213 | GCC_OPTIMIZATION_LEVEL = 0; 214 | GCC_PREPROCESSOR_DEFINITIONS = ( 215 | "DEBUG=1", 216 | "$(inherited)", 217 | ); 218 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 219 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 220 | GCC_WARN_UNDECLARED_SELECTOR = YES; 221 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 222 | GCC_WARN_UNUSED_FUNCTION = YES; 223 | GCC_WARN_UNUSED_VARIABLE = YES; 224 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 225 | MTL_ENABLE_DEBUG_INFO = YES; 226 | ONLY_ACTIVE_ARCH = YES; 227 | SDKROOT = iphoneos; 228 | VERSIONING_SYSTEM = "apple-generic"; 229 | VERSION_INFO_PREFIX = ""; 230 | }; 231 | name = Debug; 232 | }; 233 | 9082523720AC1D60007A4E42 /* Release */ = { 234 | isa = XCBuildConfiguration; 235 | buildSettings = { 236 | ALWAYS_SEARCH_USER_PATHS = NO; 237 | CLANG_ANALYZER_NONNULL = YES; 238 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 248 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 255 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 256 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 257 | CLANG_WARN_STRICT_PROTOTYPES = YES; 258 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 259 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | CODE_SIGN_IDENTITY = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | CURRENT_PROJECT_VERSION = 1; 265 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 266 | ENABLE_NS_ASSERTIONS = NO; 267 | ENABLE_STRICT_OBJC_MSGSEND = YES; 268 | GCC_C_LANGUAGE_STANDARD = gnu11; 269 | GCC_NO_COMMON_BLOCKS = YES; 270 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 271 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 272 | GCC_WARN_UNDECLARED_SELECTOR = YES; 273 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 274 | GCC_WARN_UNUSED_FUNCTION = YES; 275 | GCC_WARN_UNUSED_VARIABLE = YES; 276 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 277 | MTL_ENABLE_DEBUG_INFO = NO; 278 | SDKROOT = iphoneos; 279 | VALIDATE_PRODUCT = YES; 280 | VERSIONING_SYSTEM = "apple-generic"; 281 | VERSION_INFO_PREFIX = ""; 282 | }; 283 | name = Release; 284 | }; 285 | 9082523920AC1D60007A4E42 /* Debug */ = { 286 | isa = XCBuildConfiguration; 287 | buildSettings = { 288 | CLANG_ENABLE_MODULES = YES; 289 | CODE_SIGN_IDENTITY = ""; 290 | CODE_SIGN_STYLE = Automatic; 291 | DEFINES_MODULE = YES; 292 | DYLIB_COMPATIBILITY_VERSION = 1; 293 | DYLIB_CURRENT_VERSION = 1; 294 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 295 | INFOPLIST_FILE = MixModuleFrameWork/Info.plist; 296 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 298 | PRODUCT_BUNDLE_IDENTIFIER = com.nishant.demo.MixModuleFrameWork; 299 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 300 | SKIP_INSTALL = YES; 301 | SWIFT_INCLUDE_PATHS = "$(SRCROOT)/MixModuleFramework"; 302 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 303 | SWIFT_VERSION = 3.0; 304 | TARGETED_DEVICE_FAMILY = "1,2"; 305 | }; 306 | name = Debug; 307 | }; 308 | 9082523A20AC1D60007A4E42 /* Release */ = { 309 | isa = XCBuildConfiguration; 310 | buildSettings = { 311 | CLANG_ENABLE_MODULES = YES; 312 | CODE_SIGN_IDENTITY = ""; 313 | CODE_SIGN_STYLE = Automatic; 314 | DEFINES_MODULE = YES; 315 | DYLIB_COMPATIBILITY_VERSION = 1; 316 | DYLIB_CURRENT_VERSION = 1; 317 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 318 | INFOPLIST_FILE = MixModuleFrameWork/Info.plist; 319 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 320 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 321 | PRODUCT_BUNDLE_IDENTIFIER = com.nishant.demo.MixModuleFrameWork; 322 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 323 | SKIP_INSTALL = YES; 324 | SWIFT_INCLUDE_PATHS = "$(SRCROOT)/MixModuleFramework"; 325 | SWIFT_VERSION = 3.0; 326 | TARGETED_DEVICE_FAMILY = "1,2"; 327 | }; 328 | name = Release; 329 | }; 330 | /* End XCBuildConfiguration section */ 331 | 332 | /* Begin XCConfigurationList section */ 333 | 9082522A20AC1D60007A4E42 /* Build configuration list for PBXProject "MixModuleFrameWork" */ = { 334 | isa = XCConfigurationList; 335 | buildConfigurations = ( 336 | 9082523620AC1D60007A4E42 /* Debug */, 337 | 9082523720AC1D60007A4E42 /* Release */, 338 | ); 339 | defaultConfigurationIsVisible = 0; 340 | defaultConfigurationName = Release; 341 | }; 342 | 9082523820AC1D60007A4E42 /* Build configuration list for PBXNativeTarget "MixModuleFrameWork" */ = { 343 | isa = XCConfigurationList; 344 | buildConfigurations = ( 345 | 9082523920AC1D60007A4E42 /* Debug */, 346 | 9082523A20AC1D60007A4E42 /* Release */, 347 | ); 348 | defaultConfigurationIsVisible = 0; 349 | defaultConfigurationName = Release; 350 | }; 351 | /* End XCConfigurationList section */ 352 | }; 353 | rootObject = 9082522720AC1D60007A4E42 /* Project object */; 354 | } 355 | -------------------------------------------------------------------------------- /MixModuleFrameWork.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MixModuleFrameWork.xcodeproj/xcuserdata/nishant.s1.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | MixModuleFrameWork.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /MixModuleFrameWork/Class.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface MyClass: NSObject 4 | 5 | - (void)publicObjCMethodInClassNotExtension; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /MixModuleFrameWork/Class.mm: -------------------------------------------------------------------------------- 1 | #import "Class.h" 2 | #import 3 | #import "IntConverter.h" 4 | @implementation MyClass: NSObject 5 | 6 | - (void)publicObjCMethodInClassNotExtension { 7 | printf("publicObjCMethodInClassNotExtension\n"); 8 | [[TestCode new] toBeCalledFromObjC]; 9 | IntConverter obj = IntConverter(100); 10 | NSLog(@"getObject from C++ %d",obj.getInt()); 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /MixModuleFrameWork/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /MixModuleFrameWork/IntConverter.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // IntConverter.cpp 3 | // TestFramework 4 | // 5 | // Created by Nishant Sharma on 5/14/18. 6 | // Copyright © 2018 Personal. All rights reserved. 7 | // 8 | 9 | #include "IntConverter.h" 10 | 11 | 12 | IntConverter::IntConverter(int _i) : m_Int(_i) { 13 | 14 | } 15 | int IntConverter::getInt() { 16 | return m_Int; 17 | } 18 | -------------------------------------------------------------------------------- /MixModuleFrameWork/IntConverter.h: -------------------------------------------------------------------------------- 1 | // 2 | // IntConverter.hpp 3 | // TestFramework 4 | // 5 | // Created by Nishant Sharma on 5/14/18. 6 | // Copyright © 2018 Personal. All rights reserved. 7 | // 8 | 9 | #ifndef IntConverter_hpp 10 | #define IntConverter_hpp 11 | 12 | #include 13 | class IntConverter 14 | { 15 | public: 16 | IntConverter(int); 17 | int getInt(); 18 | private: 19 | int m_Int; 20 | }; 21 | #endif /* IntConverter_hpp */ 22 | -------------------------------------------------------------------------------- /MixModuleFrameWork/MixModuleFrameWork.h: -------------------------------------------------------------------------------- 1 | // 2 | // MixModuleFrameWork.h 3 | // MixModuleFrameWork 4 | // 5 | // Created by Nishant Sharma on 5/16/18. 6 | // Copyright © 2018 Personal. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for MixModuleFrameWork. 12 | FOUNDATION_EXPORT double MixModuleFrameWorkVersionNumber; 13 | 14 | //! Project version string for MixModuleFrameWork. 15 | FOUNDATION_EXPORT const unsigned char MixModuleFrameWorkVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | #import "TestCode.h" 19 | 20 | -------------------------------------------------------------------------------- /MixModuleFrameWork/TestCode-Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // ObjWrapper-Private.h 3 | // MixModuleSample 4 | // 5 | // Created by Nishant Sharma on 5/16/18. 6 | // Copyright © 2018 Personal. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "TestCode.h" 11 | 12 | @interface TestCode() 13 | 14 | - (void)privateObjCMethod:(BOOL)internal; 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /MixModuleFrameWork/TestCode.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestCode.h 3 | // MixModuleSample 4 | // 5 | // Created by Nishant Sharma on 5/16/18. 6 | // Copyright © 2018 Personal. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TestCode : NSObject 12 | - (void)publicObjCMethod; 13 | @end 14 | -------------------------------------------------------------------------------- /MixModuleFrameWork/TestCode.m: -------------------------------------------------------------------------------- 1 | // 2 | // TestCode.m 3 | // MixModuleSample 4 | // 5 | // Created by Nishant Sharma on 5/16/18. 6 | // Copyright © 2018 Personal. All rights reserved. 7 | // 8 | 9 | #import "TestCode.h" 10 | 11 | @implementation TestCode 12 | - (void)publicObjCMethod { 13 | printf("public OBJ-C\n"); 14 | [self privateObjCMethod:YES]; 15 | } 16 | 17 | - (void)privateObjCMethod:(BOOL)internal { 18 | printf("private (%d) OBJ-C\n", internal); 19 | } 20 | 21 | @end 22 | 23 | -------------------------------------------------------------------------------- /MixModuleFrameWork/TestCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestCode.swift 3 | // MixModuleSample 4 | // 5 | // Created by Nishant Sharma on 5/16/18. 6 | // Copyright © 2018 Personal. All rights reserved. 7 | // 8 | 9 | import MixModuleFrameworkPrivate 10 | 11 | extension TestCode { 12 | public func publicSwiftFunc() { 13 | privateObjCMethod(false) 14 | MyClass().publicObjCMethodInClassNotExtension() 15 | } 16 | 17 | @objc public func toBeCalledFromObjC() { 18 | print("Called from ObjC - Hurray!") 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /MixModuleFrameWork/module.modulemap: -------------------------------------------------------------------------------- 1 | module MixModuleFrameworkPrivate { 2 | header "TestCode-Private.h" 3 | header "Class.h" 4 | export * 5 | } 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MixModuleFramework 2 | Custom framework using C++, Objective C and Swift 3 | --------------------------------------------------------------------------------