Skip to content

Commit

Permalink
Support Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
mylcode committed Oct 17, 2019
1 parent b64bc28 commit 9eda584
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 15 deletions.
99 changes: 91 additions & 8 deletions Example/MCFoundation.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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 = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
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; };
Expand All @@ -63,10 +65,8 @@
6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = Tests.m; sourceTree = "<group>"; };
606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
C22BD8460269F555AC72B810 /* MCFoundation.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = MCFoundation.podspec; path = ../MCFoundation.podspec; sourceTree = "<group>"; };
CEE148142123FED9000BB242 /* MCTestObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MCTestObject.h; sourceTree = "<group>"; };
Expand All @@ -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;
};
Expand All @@ -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;
};
Expand Down Expand Up @@ -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 = "<group>";
Expand Down Expand Up @@ -213,6 +213,8 @@
6003F586195388D20070C39A /* Sources */,
6003F587195388D20070C39A /* Frameworks */,
6003F588195388D20070C39A /* Resources */,
BBB452C5472F1AC922938B2E /* [CP] Embed Pods Frameworks */,
A986B6C46B62F655FF6C3403 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand All @@ -231,6 +233,8 @@
6003F5AA195388D20070C39A /* Sources */,
6003F5AB195388D20070C39A /* Frameworks */,
6003F5AC195388D20070C39A /* Resources */,
75BC4EDBD0038FF4943AECB7 /* [CP] Embed Pods Frameworks */,
DDC44FF70784C4C3E3F49FF0 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
platform :ios, '8.0'

#use_frameworks!
use_frameworks!

target 'MCFoundation_Example' do
pod 'MCFoundation', :path => '../'
Expand Down
8 changes: 4 additions & 4 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Example/Tests/Tests-Prefix.pch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

#ifdef __OBJC__


@import MCFoundation;

#endif
8 changes: 7 additions & 1 deletion MCFoundation/MCFoundation.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
// Copyright © 2018 MC-Studio. All rights reserved.
//

#import "MCMacros.h"
#import <MCFoundation/MCMacros.h>

//! Project version number for MCFoundation.
FOUNDATION_EXPORT double MCFoundationVersionNumber;

//! Project version string for MCFoundation.
FOUNDATION_EXPORT const unsigned char MCFoundationVersionString[];

/**
属性安全校验
Expand Down
13 changes: 13 additions & 0 deletions MCFoundation/MCProvider.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// MCProvider.h
// MCFoundation
//
// Created by Rake Yang on 16/10/2019.
// Copyright © 2018 MC-Studio. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MCProvider : NSObject

@end
14 changes: 14 additions & 0 deletions MCFoundation/MCProvider.m
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9eda584

Please sign in to comment.