Skip to content

Commit 0dcea5d

Browse files
committed
Add ==> 新增Pod && GCDWebServer
1 parent 3ec1100 commit 0dcea5d

File tree

9 files changed

+83
-1
lines changed

9 files changed

+83
-1
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Xcode
22
#
33
.DS_Store
4-
*.xcuserstate
4+
*.xcuserstate
5+
6+
# CocoaPods
7+
#
8+
Pods/
9+
Podfile.lock
Binary file not shown.
Binary file not shown.
Binary file not shown.

Podfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
platform :osx, '10.10'
2+
3+
target 'WeChatPlugin' do
4+
pod 'GCDWebServer', '~> 3.4.2'
5+
end

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
* [XMLReader](https://github.com/amarcadet/XMLReader)
179179
* [insert_dylib](https://github.com/Tyilo/insert_dylib)
180180
* [fishhook](https://github.com/facebook/fishhook)
181+
* [GCDWebServer](https://github.com/swisspol/GCDWebServer)
181182

182183
---
183184
### Other

WeChatPlugin.xcodeproj/project.pbxproj

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@
5757
52B5CF1D1F3B4631000D9DD9 /* XMLReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 52B5CF051F3B4631000D9DD9 /* XMLReader.m */; };
5858
52EE9515203FE58500B76873 /* MMStickerMessageCellView+hook.m in Sources */ = {isa = PBXBuildFile; fileRef = 52EE9513203FE58500B76873 /* MMStickerMessageCellView+hook.m */; };
5959
52EE9517203FE63300B76873 /* MMStickerMessageCellView+hook.h in Headers */ = {isa = PBXBuildFile; fileRef = 52EE9516203FE63300B76873 /* MMStickerMessageCellView+hook.h */; };
60+
581E98663A5F0E6327516AA8 /* libPods-WeChatPlugin.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 17F7A08DC0E3A0626801414D /* libPods-WeChatPlugin.a */; };
6061
/* End PBXBuildFile section */
6162

6263
/* Begin PBXFileReference section */
64+
13B308B4A92CE38341762A48 /* Pods-WeChatPlugin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WeChatPlugin.release.xcconfig"; path = "Pods/Target Support Files/Pods-WeChatPlugin/Pods-WeChatPlugin.release.xcconfig"; sourceTree = "<group>"; };
65+
17F7A08DC0E3A0626801414D /* libPods-WeChatPlugin.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-WeChatPlugin.a"; sourceTree = BUILT_PRODUCTS_DIR; };
6366
522547CD1F4AE5A700226A2A /* NSView+Action.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSView+Action.h"; sourceTree = "<group>"; };
6467
522547CE1F4AE5A700226A2A /* NSView+Action.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSView+Action.m"; sourceTree = "<group>"; };
6568
522547D71F4C312A00226A2A /* TKAutoReplyWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TKAutoReplyWindowController.h; sourceTree = "<group>"; };
@@ -112,19 +115,38 @@
112115
52B5CF051F3B4631000D9DD9 /* XMLReader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XMLReader.m; sourceTree = "<group>"; };
113116
52EE9513203FE58500B76873 /* MMStickerMessageCellView+hook.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "MMStickerMessageCellView+hook.m"; sourceTree = "<group>"; };
114117
52EE9516203FE63300B76873 /* MMStickerMessageCellView+hook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MMStickerMessageCellView+hook.h"; sourceTree = "<group>"; };
118+
888B2791FA0BBCC192BADA47 /* Pods-WeChatPlugin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WeChatPlugin.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WeChatPlugin/Pods-WeChatPlugin.debug.xcconfig"; sourceTree = "<group>"; };
115119
/* End PBXFileReference section */
116120

117121
/* Begin PBXFrameworksBuildPhase section */
118122
528B4F8E1EA7383800BC6A89 /* Frameworks */ = {
119123
isa = PBXFrameworksBuildPhase;
120124
buildActionMask = 2147483647;
121125
files = (
126+
581E98663A5F0E6327516AA8 /* libPods-WeChatPlugin.a in Frameworks */,
122127
);
123128
runOnlyForDeploymentPostprocessing = 0;
124129
};
125130
/* End PBXFrameworksBuildPhase section */
126131

127132
/* Begin PBXGroup section */
133+
13EC3A000F46808B50A62C6F /* Frameworks */ = {
134+
isa = PBXGroup;
135+
children = (
136+
17F7A08DC0E3A0626801414D /* libPods-WeChatPlugin.a */,
137+
);
138+
name = Frameworks;
139+
sourceTree = "<group>";
140+
};
141+
3C138513A2C7760B47317A95 /* Pods */ = {
142+
isa = PBXGroup;
143+
children = (
144+
888B2791FA0BBCC192BADA47 /* Pods-WeChatPlugin.debug.xcconfig */,
145+
13B308B4A92CE38341762A48 /* Pods-WeChatPlugin.release.xcconfig */,
146+
);
147+
name = Pods;
148+
sourceTree = "<group>";
149+
};
128150
522547CC1F4AE5A700226A2A /* Category */ = {
129151
isa = PBXGroup;
130152
children = (
@@ -210,6 +232,8 @@
210232
children = (
211233
528B4F941EA7383800BC6A89 /* WeChatPlugin */,
212234
528B4F931EA7383800BC6A89 /* Products */,
235+
3C138513A2C7760B47317A95 /* Pods */,
236+
13EC3A000F46808B50A62C6F /* Frameworks */,
213237
);
214238
sourceTree = "<group>";
215239
};
@@ -376,11 +400,13 @@
376400
isa = PBXNativeTarget;
377401
buildConfigurationList = 528B4F9A1EA7383800BC6A89 /* Build configuration list for PBXNativeTarget "WeChatPlugin" */;
378402
buildPhases = (
403+
A23204925F0A37A0EBE14B92 /* [CP] Check Pods Manifest.lock */,
379404
528B4F8D1EA7383800BC6A89 /* Sources */,
380405
528B4F8E1EA7383800BC6A89 /* Frameworks */,
381406
528B4F8F1EA7383800BC6A89 /* Headers */,
382407
528B4F901EA7383800BC6A89 /* Resources */,
383408
528B4FB51EA738B100BC6A89 /* ShellScript */,
409+
165746E0A28B760DEA538E0D /* [CP] Copy Pods Resources */,
384410
);
385411
buildRules = (
386412
);
@@ -438,6 +464,21 @@
438464
/* End PBXResourcesBuildPhase section */
439465

440466
/* Begin PBXShellScriptBuildPhase section */
467+
165746E0A28B760DEA538E0D /* [CP] Copy Pods Resources */ = {
468+
isa = PBXShellScriptBuildPhase;
469+
buildActionMask = 2147483647;
470+
files = (
471+
);
472+
inputPaths = (
473+
);
474+
name = "[CP] Copy Pods Resources";
475+
outputPaths = (
476+
);
477+
runOnlyForDeploymentPostprocessing = 0;
478+
shellPath = /bin/sh;
479+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-WeChatPlugin/Pods-WeChatPlugin-resources.sh\"\n";
480+
showEnvVarsInLog = 0;
481+
};
441482
528B4FB51EA738B100BC6A89 /* ShellScript */ = {
442483
isa = PBXShellScriptBuildPhase;
443484
buildActionMask = 2147483647;
@@ -451,6 +492,24 @@
451492
shellPath = /bin/sh;
452493
shellScript = "#!/bin/bash\napp_name=\"WeChat\"\nframework_name=\"WeChatPlugin\"\napp_bundle_path=\"/Applications/${app_name}.app/Contents/MacOS\"\napp_executable_path=\"${app_bundle_path}/${app_name}\"\napp_executable_backup_path=\"${app_executable_path}_backup\"\nframework_path=\"${app_bundle_path}/${framework_name}.framework\"\n# 备份WeChat原始可执行文件\nif [ ! -f \"$app_executable_backup_path\" ]\nthen\ncp \"$app_executable_path\" \"$app_executable_backup_path\"\nfi\n\nrm -rf \"./Other/Products/Debug/${framework_name}.framework\"\ncp -r \"${BUILT_PRODUCTS_DIR}/${framework_name}.framework\" \"./Other/Products/Debug/${framework_name}.framework\"\ncp -r \"${BUILT_PRODUCTS_DIR}/${framework_name}.framework\" ${app_bundle_path}\n./Other/insert_dylib --all-yes \"${framework_path}/${framework_name}\" \"$app_executable_backup_path\" \"$app_executable_path\"";
453494
};
495+
A23204925F0A37A0EBE14B92 /* [CP] Check Pods Manifest.lock */ = {
496+
isa = PBXShellScriptBuildPhase;
497+
buildActionMask = 2147483647;
498+
files = (
499+
);
500+
inputPaths = (
501+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
502+
"${PODS_ROOT}/Manifest.lock",
503+
);
504+
name = "[CP] Check Pods Manifest.lock";
505+
outputPaths = (
506+
"$(DERIVED_FILE_DIR)/Pods-WeChatPlugin-checkManifestLockResult.txt",
507+
);
508+
runOnlyForDeploymentPostprocessing = 0;
509+
shellPath = /bin/sh;
510+
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";
511+
showEnvVarsInLog = 0;
512+
};
454513
/* End PBXShellScriptBuildPhase section */
455514

456515
/* Begin PBXSourcesBuildPhase section */
@@ -593,6 +652,7 @@
593652
};
594653
528B4F9B1EA7383800BC6A89 /* Debug */ = {
595654
isa = XCBuildConfiguration;
655+
baseConfigurationReference = 888B2791FA0BBCC192BADA47 /* Pods-WeChatPlugin.debug.xcconfig */;
596656
buildSettings = {
597657
CODE_SIGN_IDENTITY = "";
598658
COMBINE_HIDPI_IMAGES = YES;
@@ -614,6 +674,7 @@
614674
};
615675
528B4F9C1EA7383800BC6A89 /* Release */ = {
616676
isa = XCBuildConfiguration;
677+
baseConfigurationReference = 13B308B4A92CE38341762A48 /* Pods-WeChatPlugin.release.xcconfig */;
617678
buildSettings = {
618679
CODE_SIGN_IDENTITY = "";
619680
COMBINE_HIDPI_IMAGES = YES;

WeChatPlugin.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)