Skip to content

Commit 81bf306

Browse files
author
Bret Cheng
committed
Use static library instead of framework bundle
1 parent c563ce1 commit 81bf306

File tree

10 files changed

+36
-9
lines changed

10 files changed

+36
-9
lines changed

OneSkyOTADemo.xcodeproj/project.pbxproj

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
FB56D8A31BA2C0C0001FB4B7 /* ibsupport in Resources */ = {isa = PBXBuildFile; fileRef = FB56D8A11BA2C0C0001FB4B7 /* ibsupport */; settings = {ASSET_TAGS = (); }; };
11+
FB56D8A41BA2C0C0001FB4B7 /* libOneSkyOTAPlugin.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FB56D8A21BA2C0C0001FB4B7 /* libOneSkyOTAPlugin.a */; settings = {ASSET_TAGS = (); }; };
1012
FB6757DD19933E1C00E96A12 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FB6757DB19933E1C00E96A12 /* Storyboard.storyboard */; };
1113
FB6757E019933E3100E96A12 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = FB6757DE19933E3100E96A12 /* Localizable.strings */; };
1214
FB7344F01980C9E40062424F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FB7344EF1980C9E40062424F /* Foundation.framework */; };
@@ -16,10 +18,12 @@
1618
FB7344FC1980C9E40062424F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FB7344FB1980C9E40062424F /* main.m */; };
1719
FB7345001980C9E40062424F /* OSAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FB7344FF1980C9E40062424F /* OSAppDelegate.m */; };
1820
FB7345021980C9E40062424F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FB7345011980C9E40062424F /* Images.xcassets */; };
19-
FB73451F1980CA770062424F /* OneSkyOTAPlugin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FB73451E1980CA770062424F /* OneSkyOTAPlugin.framework */; };
2021
/* End PBXBuildFile section */
2122

2223
/* Begin PBXFileReference section */
24+
FB56D8A01BA2C0C0001FB4B7 /* OneSkyOTAPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneSkyOTAPlugin.h; sourceTree = "<group>"; };
25+
FB56D8A11BA2C0C0001FB4B7 /* ibsupport */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; path = ibsupport; sourceTree = "<group>"; };
26+
FB56D8A21BA2C0C0001FB4B7 /* libOneSkyOTAPlugin.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libOneSkyOTAPlugin.a; sourceTree = "<group>"; };
2327
FB6757DC19933E1C00E96A12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Storyboard.storyboard; sourceTree = "<group>"; };
2428
FB6757DF19933E3100E96A12 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
2529
FB6757E419933E4300E96A12 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Storyboard.strings; sourceTree = "<group>"; };
@@ -35,7 +39,6 @@
3539
FB7344FF1980C9E40062424F /* OSAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = OSAppDelegate.m; sourceTree = "<group>"; };
3640
FB7345011980C9E40062424F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
3741
FB7345081980C9E40062424F /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
38-
FB73451E1980CA770062424F /* OneSkyOTAPlugin.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OneSkyOTAPlugin.framework; sourceTree = "<group>"; };
3942
/* End PBXFileReference section */
4043

4144
/* Begin PBXFrameworksBuildPhase section */
@@ -44,19 +47,38 @@
4447
buildActionMask = 2147483647;
4548
files = (
4649
FB7344F21980C9E40062424F /* CoreGraphics.framework in Frameworks */,
47-
FB73451F1980CA770062424F /* OneSkyOTAPlugin.framework in Frameworks */,
4850
FB7344F41980C9E40062424F /* UIKit.framework in Frameworks */,
4951
FB7344F01980C9E40062424F /* Foundation.framework in Frameworks */,
52+
FB56D8A41BA2C0C0001FB4B7 /* libOneSkyOTAPlugin.a in Frameworks */,
5053
);
5154
runOnlyForDeploymentPostprocessing = 0;
5255
};
5356
/* End PBXFrameworksBuildPhase section */
5457

5558
/* Begin PBXGroup section */
59+
FB56D89E1BA2C0C0001FB4B7 /* OneSkyOTAPlugin */ = {
60+
isa = PBXGroup;
61+
children = (
62+
FB56D89F1BA2C0C0001FB4B7 /* Headers */,
63+
FB56D8A11BA2C0C0001FB4B7 /* ibsupport */,
64+
FB56D8A21BA2C0C0001FB4B7 /* libOneSkyOTAPlugin.a */,
65+
);
66+
path = OneSkyOTAPlugin;
67+
sourceTree = "<group>";
68+
};
69+
FB56D89F1BA2C0C0001FB4B7 /* Headers */ = {
70+
isa = PBXGroup;
71+
children = (
72+
FB56D8A01BA2C0C0001FB4B7 /* OneSkyOTAPlugin.h */,
73+
);
74+
path = Headers;
75+
sourceTree = "<group>";
76+
};
5677
FB7344E31980C9E40062424F = {
5778
isa = PBXGroup;
5879
children = (
5980
FB7344F51980C9E40062424F /* OneSkyOTADemo */,
81+
FB56D89E1BA2C0C0001FB4B7 /* OneSkyOTAPlugin */,
6082
FB7344EE1980C9E40062424F /* Frameworks */,
6183
FB7344ED1980C9E40062424F /* Products */,
6284
);
@@ -73,7 +95,6 @@
7395
FB7344EE1980C9E40062424F /* Frameworks */ = {
7496
isa = PBXGroup;
7597
children = (
76-
FB73451E1980CA770062424F /* OneSkyOTAPlugin.framework */,
7798
FB7344EF1980C9E40062424F /* Foundation.framework */,
7899
FB7344F11980C9E40062424F /* CoreGraphics.framework */,
79100
FB7344F31980C9E40062424F /* UIKit.framework */,
@@ -162,6 +183,7 @@
162183
files = (
163184
FB7344FA1980C9E40062424F /* InfoPlist.strings in Resources */,
164185
FB6757E019933E3100E96A12 /* Localizable.strings in Resources */,
186+
FB56D8A31BA2C0C0001FB4B7 /* ibsupport in Resources */,
165187
FB7345021980C9E40062424F /* Images.xcassets in Resources */,
166188
FB6757DD19933E1C00E96A12 /* Storyboard.storyboard in Resources */,
167189
);
@@ -182,7 +204,7 @@
182204
);
183205
runOnlyForDeploymentPostprocessing = 0;
184206
shellPath = /bin/sh;
185-
shellScript = ./OneSkyOTAPlugin.framework/ibsupport;
207+
shellScript = ./OneSkyOTAPlugin/ibsupport;
186208
};
187209
/* End PBXShellScriptBuildPhase section */
188210

@@ -309,6 +331,10 @@
309331
GCC_PRECOMPILE_PREFIX_HEADER = YES;
310332
GCC_PREFIX_HEADER = "OneSkyOTADemo/OneSkyOTADemo-Prefix.pch";
311333
INFOPLIST_FILE = "OneSkyOTADemo/OneSkyOTADemo-Info.plist";
334+
LIBRARY_SEARCH_PATHS = (
335+
"$(inherited)",
336+
"$(PROJECT_DIR)/OneSkyOTAPlugin",
337+
);
312338
OTHER_LDFLAGS = "-ObjC";
313339
PRODUCT_NAME = "$(TARGET_NAME)";
314340
WRAPPER_EXTENSION = app;
@@ -327,6 +353,10 @@
327353
GCC_PRECOMPILE_PREFIX_HEADER = YES;
328354
GCC_PREFIX_HEADER = "OneSkyOTADemo/OneSkyOTADemo-Prefix.pch";
329355
INFOPLIST_FILE = "OneSkyOTADemo/OneSkyOTADemo-Info.plist";
356+
LIBRARY_SEARCH_PATHS = (
357+
"$(inherited)",
358+
"$(PROJECT_DIR)/OneSkyOTAPlugin",
359+
);
330360
OTHER_LDFLAGS = "-ObjC";
331361
PRODUCT_NAME = "$(TARGET_NAME)";
332362
WRAPPER_EXTENSION = app;

OneSkyOTADemo/OSAppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "OSAppDelegate.h"
10-
#import <OneSkyOTAPlugin/OneSkyOTAPlugin.h>
10+
#import "OneSkyOTAPlugin.h"
1111

1212
@implementation OSAppDelegate
1313

OneSkyOTAPlugin.framework/Headers

Lines changed: 0 additions & 1 deletion
This file was deleted.

OneSkyOTAPlugin.framework/OneSkyOTAPlugin

Lines changed: 0 additions & 1 deletion
This file was deleted.
-649 KB
Binary file not shown.

OneSkyOTAPlugin.framework/Versions/Current

Lines changed: 0 additions & 1 deletion
This file was deleted.
-28.6 KB
Binary file not shown.

OneSkyOTAPlugin.framework/Versions/A/Headers/OneSkyOTAPlugin.h renamed to OneSkyOTAPlugin/Headers/OneSkyOTAPlugin.h

File renamed without changes.

OneSkyOTAPlugin/ibsupport

64.5 KB
Binary file not shown.
448 KB
Binary file not shown.

0 commit comments

Comments
 (0)