Skip to content

Commit 86d04a1

Browse files
陈玉国陈玉国
authored andcommitted
调整 podspec
1 parent adc6dd2 commit 86d04a1

File tree

3 files changed

+49
-48
lines changed

3 files changed

+49
-48
lines changed

example/ios/Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ flutter_ios_podfile_setup
2929

3030
target 'Runner' do
3131
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
32+
# 本地调试运行时,需注释掉上面的 flutter_install, 并使用下面的本地安装
33+
# pod 'sensors_analytics_flutter_plugin', :path => '../../'
3234
end
3335

3436
post_install do |installer|

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1515
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
1616
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17-
9A0422BC7972F0939CD6BDB5 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A2A9034F83CF47EA113939F /* libPods-Runner.a */; };
17+
C7F98F518FC60775C5D1DFE8 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D18D9D5115C7BD186A258A5D /* libPods-Runner.a */; };
1818
/* End PBXBuildFile section */
1919

2020
/* Begin PBXCopyFilesBuildPhase section */
@@ -33,14 +33,12 @@
3333
/* Begin PBXFileReference section */
3434
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3535
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
36-
2363752114BFB379A3D29679 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
37-
2CC4A312CEA187FE643BFA6B /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
38-
3A2A9034F83CF47EA113939F /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3936
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
40-
4D3AFCAFD89DAB446AE6CB5F /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
37+
64BBA7F176BCA83E13626910 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
4138
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
4239
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
4340
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
41+
873612E54ECFDEED139A1A2C /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
4442
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
4543
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
4644
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -49,14 +47,16 @@
4947
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5048
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
5149
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
50+
A52EEC2737FB298191C51BB5 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
51+
D18D9D5115C7BD186A258A5D /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
5252
/* End PBXFileReference section */
5353

5454
/* Begin PBXFrameworksBuildPhase section */
5555
97C146EB1CF9000F007C117D /* Frameworks */ = {
5656
isa = PBXFrameworksBuildPhase;
5757
buildActionMask = 2147483647;
5858
files = (
59-
9A0422BC7972F0939CD6BDB5 /* libPods-Runner.a in Frameworks */,
59+
C7F98F518FC60775C5D1DFE8 /* libPods-Runner.a in Frameworks */,
6060
);
6161
runOnlyForDeploymentPostprocessing = 0;
6262
};
@@ -66,17 +66,17 @@
6666
2ED1876E1158C03834CA23B8 /* Pods */ = {
6767
isa = PBXGroup;
6868
children = (
69-
2CC4A312CEA187FE643BFA6B /* Pods-Runner.debug.xcconfig */,
70-
2363752114BFB379A3D29679 /* Pods-Runner.release.xcconfig */,
71-
4D3AFCAFD89DAB446AE6CB5F /* Pods-Runner.profile.xcconfig */,
69+
873612E54ECFDEED139A1A2C /* Pods-Runner.debug.xcconfig */,
70+
64BBA7F176BCA83E13626910 /* Pods-Runner.release.xcconfig */,
71+
A52EEC2737FB298191C51BB5 /* Pods-Runner.profile.xcconfig */,
7272
);
7373
path = Pods;
7474
sourceTree = "<group>";
7575
};
76-
41121AF86129B2D3DB326950 /* Frameworks */ = {
76+
932E1FAF11A168C3B056CE75 /* Frameworks */ = {
7777
isa = PBXGroup;
7878
children = (
79-
3A2A9034F83CF47EA113939F /* libPods-Runner.a */,
79+
D18D9D5115C7BD186A258A5D /* libPods-Runner.a */,
8080
);
8181
name = Frameworks;
8282
sourceTree = "<group>";
@@ -99,7 +99,7 @@
9999
97C146F01CF9000F007C117D /* Runner */,
100100
97C146EF1CF9000F007C117D /* Products */,
101101
2ED1876E1158C03834CA23B8 /* Pods */,
102-
41121AF86129B2D3DB326950 /* Frameworks */,
102+
932E1FAF11A168C3B056CE75 /* Frameworks */,
103103
);
104104
sourceTree = "<group>";
105105
};
@@ -142,15 +142,15 @@
142142
isa = PBXNativeTarget;
143143
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
144144
buildPhases = (
145-
FFC40FFEC7948C2B45555974 /* [CP] Check Pods Manifest.lock */,
145+
B4551749B6E9A7BF7A2B964F /* [CP] Check Pods Manifest.lock */,
146146
9740EEB61CF901F6004384FC /* Run Script */,
147147
97C146EA1CF9000F007C117D /* Sources */,
148148
97C146EB1CF9000F007C117D /* Frameworks */,
149149
97C146EC1CF9000F007C117D /* Resources */,
150150
9705A1C41CF9048500538489 /* Embed Frameworks */,
151151
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
152-
E8A8BB4362F2A70380297AAA /* [CP] Copy Pods Resources */,
153-
F9B8266724ECFF162FE2F8B6 /* [CP] Embed Pods Frameworks */,
152+
CB186228C5A897726CDCD25D /* [CP] Embed Pods Frameworks */,
153+
4D0DFBB3407CCD13BA57DE56 /* [CP] Copy Pods Resources */,
154154
);
155155
buildRules = (
156156
);
@@ -224,22 +224,7 @@
224224
shellPath = /bin/sh;
225225
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
226226
};
227-
9740EEB61CF901F6004384FC /* Run Script */ = {
228-
isa = PBXShellScriptBuildPhase;
229-
alwaysOutOfDate = 1;
230-
buildActionMask = 2147483647;
231-
files = (
232-
);
233-
inputPaths = (
234-
);
235-
name = "Run Script";
236-
outputPaths = (
237-
);
238-
runOnlyForDeploymentPostprocessing = 0;
239-
shellPath = /bin/sh;
240-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
241-
};
242-
E8A8BB4362F2A70380297AAA /* [CP] Copy Pods Resources */ = {
227+
4D0DFBB3407CCD13BA57DE56 /* [CP] Copy Pods Resources */ = {
243228
isa = PBXShellScriptBuildPhase;
244229
buildActionMask = 2147483647;
245230
files = (
@@ -256,24 +241,22 @@
256241
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
257242
showEnvVarsInLog = 0;
258243
};
259-
F9B8266724ECFF162FE2F8B6 /* [CP] Embed Pods Frameworks */ = {
244+
9740EEB61CF901F6004384FC /* Run Script */ = {
260245
isa = PBXShellScriptBuildPhase;
246+
alwaysOutOfDate = 1;
261247
buildActionMask = 2147483647;
262248
files = (
263249
);
264-
inputFileListPaths = (
265-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
250+
inputPaths = (
266251
);
267-
name = "[CP] Embed Pods Frameworks";
268-
outputFileListPaths = (
269-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
252+
name = "Run Script";
253+
outputPaths = (
270254
);
271255
runOnlyForDeploymentPostprocessing = 0;
272256
shellPath = /bin/sh;
273-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
274-
showEnvVarsInLog = 0;
257+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
275258
};
276-
FFC40FFEC7948C2B45555974 /* [CP] Check Pods Manifest.lock */ = {
259+
B4551749B6E9A7BF7A2B964F /* [CP] Check Pods Manifest.lock */ = {
277260
isa = PBXShellScriptBuildPhase;
278261
buildActionMask = 2147483647;
279262
files = (
@@ -295,6 +278,23 @@
295278
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";
296279
showEnvVarsInLog = 0;
297280
};
281+
CB186228C5A897726CDCD25D /* [CP] Embed Pods Frameworks */ = {
282+
isa = PBXShellScriptBuildPhase;
283+
buildActionMask = 2147483647;
284+
files = (
285+
);
286+
inputFileListPaths = (
287+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
288+
);
289+
name = "[CP] Embed Pods Frameworks";
290+
outputFileListPaths = (
291+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
292+
);
293+
runOnlyForDeploymentPostprocessing = 0;
294+
shellPath = /bin/sh;
295+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
296+
showEnvVarsInLog = 0;
297+
};
298298
/* End PBXShellScriptBuildPhase section */
299299

300300
/* Begin PBXSourcesBuildPhase section */

ios/sensors_analytics_flutter_plugin.podspec renamed to sensors_analytics_flutter_plugin.podspec

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@
44
Pod::Spec.new do |s|
55
s.name = 'sensors_analytics_flutter_plugin'
66
s.version = '4.0.1'
7-
s.summary = 'A new flutter plugin project.'
8-
s.description = <<-DESC
9-
A new flutter plugin project.
10-
DESC
7+
s.summary = 'The official flutter iOS plugin of Sensors Analytics.'
118
s.homepage = 'https://www.sensorsdata.cn/'
12-
s.license = { :file => '../LICENSE' }
9+
s.license = {
10+
:type => 'Commercial',
11+
:file => '../LICENSE' }
1312
s.author = { "caojiang" => "[email protected]" }
1413
s.source = { :git => 'https://github.com/sensorsdata/sensors_analytics_flutter_plugin.git', :tag => "v#{s.version}" }
15-
s.source_files = 'Classes/**/*'
16-
s.public_header_files = 'Classes/**/*.h'
14+
s.source_files = 'ios/Classes/**/*'
15+
s.public_header_files = 'ios/Classes/**/*.h'
1716
s.dependency 'Flutter'
1817
s.platform = :ios, '9.0'
1918
s.dependency 'SensorsAnalyticsSDK', ">= 4.9.0"
2019
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
2120
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
22-
s.resource_bundle = { 'sensors_analytics_flutter_plugin' => 'Resources/**/*'}
21+
s.resource_bundle = { 'sensors_analytics_flutter_plugin' => 'ios/Resources/**/*'}
2322
end

0 commit comments

Comments
 (0)