diff --git a/Example/MCFoundation.xcodeproj/project.pbxproj b/Example/MCFoundation.xcodeproj/project.pbxproj index 91f87c8..fad675d 100644 --- a/Example/MCFoundation.xcodeproj/project.pbxproj +++ b/Example/MCFoundation.xcodeproj/project.pbxproj @@ -20,12 +20,12 @@ 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; - 6D9225982D5DFFCD9E4EC298 /* libPods-MCFoundation_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 76C9EA6E3D424CCF60C35E51 /* libPods-MCFoundation_Example.a */; }; 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; + 87820E03AFB51633FB4EDF85 /* Pods_MCFoundation_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1977A0398F9656D4A16BFBFD /* Pods_MCFoundation_Example.framework */; }; + C7AA96EE05659ACEB646FFBB /* Pods_MCFoundation_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 476568D65B88DB7E403C62FE /* Pods_MCFoundation_Tests.framework */; }; CEE148162123FED9000BB242 /* MCTestObject.m in Sources */ = {isa = PBXBuildFile; fileRef = CEE148152123FED9000BB242 /* MCTestObject.m */; }; CEE148172123FFAB000BB242 /* MCTestObject.m in Sources */ = {isa = PBXBuildFile; fileRef = CEE148152123FED9000BB242 /* MCTestObject.m */; }; - D3CE63C3C59CD560EEA0B841 /* libPods-MCFoundation_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AC99A665BDA51E9307E13022 /* libPods-MCFoundation_Tests.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -40,9 +40,11 @@ /* Begin PBXFileReference section */ 0DD3987402CC5585FCFD7870 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; + 1977A0398F9656D4A16BFBFD /* Pods_MCFoundation_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MCFoundation_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 374CB895818244BE08EBD96F /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 39427C1B4C404A5BB1A7207C /* Pods-MCFoundation_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MCFoundation_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MCFoundation_Tests/Pods-MCFoundation_Tests.debug.xcconfig"; sourceTree = ""; }; 3E786797BF26152528378200 /* Pods-MCFoundation_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MCFoundation_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-MCFoundation_Example/Pods-MCFoundation_Example.release.xcconfig"; sourceTree = ""; }; + 476568D65B88DB7E403C62FE /* Pods_MCFoundation_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MCFoundation_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 6003F58A195388D20070C39A /* MCFoundation_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MCFoundation_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; @@ -63,10 +65,8 @@ 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = Tests.m; sourceTree = ""; }; 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 76C9EA6E3D424CCF60C35E51 /* libPods-MCFoundation_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MCFoundation_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 919D716AE88D9BF94FFDE464 /* Pods-MCFoundation_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MCFoundation_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-MCFoundation_Tests/Pods-MCFoundation_Tests.release.xcconfig"; sourceTree = ""; }; - AC99A665BDA51E9307E13022 /* libPods-MCFoundation_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MCFoundation_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; BD97AE7EBCCB1B70EAD33EE5 /* Pods-MCFoundation_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MCFoundation_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MCFoundation_Example/Pods-MCFoundation_Example.debug.xcconfig"; sourceTree = ""; }; C22BD8460269F555AC72B810 /* MCFoundation.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MCFoundation.podspec; path = ../MCFoundation.podspec; sourceTree = ""; }; CEE148142123FED9000BB242 /* MCTestObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MCTestObject.h; sourceTree = ""; }; @@ -81,7 +81,7 @@ 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, - 6D9225982D5DFFCD9E4EC298 /* libPods-MCFoundation_Example.a in Frameworks */, + 87820E03AFB51633FB4EDF85 /* Pods_MCFoundation_Example.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -92,7 +92,7 @@ 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, - D3CE63C3C59CD560EEA0B841 /* libPods-MCFoundation_Tests.a in Frameworks */, + C7AA96EE05659ACEB646FFBB /* Pods_MCFoundation_Tests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -138,8 +138,8 @@ 6003F58F195388D20070C39A /* CoreGraphics.framework */, 6003F591195388D20070C39A /* UIKit.framework */, 6003F5AF195388D20070C39A /* XCTest.framework */, - 76C9EA6E3D424CCF60C35E51 /* libPods-MCFoundation_Example.a */, - AC99A665BDA51E9307E13022 /* libPods-MCFoundation_Tests.a */, + 1977A0398F9656D4A16BFBFD /* Pods_MCFoundation_Example.framework */, + 476568D65B88DB7E403C62FE /* Pods_MCFoundation_Tests.framework */, ); name = Frameworks; sourceTree = ""; @@ -213,6 +213,8 @@ 6003F586195388D20070C39A /* Sources */, 6003F587195388D20070C39A /* Frameworks */, 6003F588195388D20070C39A /* Resources */, + BBB452C5472F1AC922938B2E /* [CP] Embed Pods Frameworks */, + A986B6C46B62F655FF6C3403 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -231,6 +233,8 @@ 6003F5AA195388D20070C39A /* Sources */, 6003F5AB195388D20070C39A /* Frameworks */, 6003F5AC195388D20070C39A /* Resources */, + 75BC4EDBD0038FF4943AECB7 /* [CP] Embed Pods Frameworks */, + DDC44FF70784C4C3E3F49FF0 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -335,6 +339,85 @@ 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"; showEnvVarsInLog = 0; }; + 75BC4EDBD0038FF4943AECB7 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MCFoundation_Tests/Pods-MCFoundation_Tests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + A986B6C46B62F655FF6C3403 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MCFoundation_Example/Pods-MCFoundation_Example-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + BBB452C5472F1AC922938B2E /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-MCFoundation_Example/Pods-MCFoundation_Example-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/MCFoundation/MCFoundation.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + ); + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MCFoundation.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MCFoundation_Example/Pods-MCFoundation_Example-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + DDC44FF70784C4C3E3F49FF0 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MCFoundation_Tests/Pods-MCFoundation_Tests-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ diff --git a/Example/Podfile b/Example/Podfile index 9bb5284..daf5131 100644 --- a/Example/Podfile +++ b/Example/Podfile @@ -1,6 +1,6 @@ platform :ios, '8.0' -#use_frameworks! +use_frameworks! target 'MCFoundation_Example' do pod 'MCFoundation', :path => '../' diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 2c8644b..0d7f0d1 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -6,11 +6,11 @@ DEPENDENCIES: EXTERNAL SOURCES: MCFoundation: - :path: "../" + :path: ../ SPEC CHECKSUMS: - MCFoundation: d1d4eadd20f735f5037afac2fbb71267ee8d3917 + MCFoundation: 340e10f603fc5a3ffe18f14173a9c8d1cdb62a78 -PODFILE CHECKSUM: 63b03b56cd3d863ff3a6f4c43838aa51dd5bd3ac +PODFILE CHECKSUM: ec50a85d6f7759daf09473eea4dc53a20ebfb11d -COCOAPODS: 1.7.3 +COCOAPODS: 1.4.0 diff --git a/Example/Tests/Tests-Prefix.pch b/Example/Tests/Tests-Prefix.pch index 0bfb741..1b9a53f 100644 --- a/Example/Tests/Tests-Prefix.pch +++ b/Example/Tests/Tests-Prefix.pch @@ -2,6 +2,6 @@ #ifdef __OBJC__ - + @import MCFoundation; #endif diff --git a/MCFoundation/MCFoundation.h b/MCFoundation/MCFoundation.h index db0e971..9856bc6 100644 --- a/MCFoundation/MCFoundation.h +++ b/MCFoundation/MCFoundation.h @@ -6,7 +6,13 @@ // Copyright © 2018 MC-Studio. All rights reserved. // -#import "MCMacros.h" +#import + +//! Project version number for MCFoundation. +FOUNDATION_EXPORT double MCFoundationVersionNumber; + +//! Project version string for MCFoundation. +FOUNDATION_EXPORT const unsigned char MCFoundationVersionString[]; /** 属性安全校验 diff --git a/MCFoundation/MCProvider.h b/MCFoundation/MCProvider.h new file mode 100644 index 0000000..94865f2 --- /dev/null +++ b/MCFoundation/MCProvider.h @@ -0,0 +1,13 @@ +// +// MCProvider.h +// MCFoundation +// +// Created by Rake Yang on 16/10/2019. +// Copyright © 2018 MC-Studio. All rights reserved. +// + +#import + +@interface MCProvider : NSObject + +@end diff --git a/MCFoundation/MCProvider.m b/MCFoundation/MCProvider.m new file mode 100644 index 0000000..c2e8ca4 --- /dev/null +++ b/MCFoundation/MCProvider.m @@ -0,0 +1,14 @@ +// +// MCProvider.m +// MCFoundation +// +// Created by Rake Yang on 16/10/2019. +// Copyright © 2018 MC-Studio. All rights reserved. +// + +#import "MCProvider.h" + +@implementation MCProvider + + +@end