Skip to content
This repository was archived by the owner on Nov 18, 2018. It is now read-only.

Commit f459a84

Browse files
committed
replaced dynamic framework BSON with Hombrew dylib
1 parent 16a0a4d commit f459a84

File tree

11 files changed

+23
-49
lines changed

11 files changed

+23
-49
lines changed

Cartfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
github "PureSwift/SwiftFoundation" "develop"
2-
github "PureSwift/libbson-xcode" "master"
1+
github "PureSwift/SwiftFoundation" "develop"

Cartfile.resolved

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
github "PureSwift/SwiftFoundation" "1bd7e82c365c38ed0bf94917f57713da72543005"
2-
github "PureSwift/libbson-xcode" "7fd01a66361e6a41154d3718d8a2d55c56f83985"

Sources/BinaryJSON/Context.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66
// Copyright © 2015 PureSwift. All rights reserved.
77
//
88

9-
#if os(OSX)
10-
import bson
11-
#elseif os(Linux)
12-
import CBSON
13-
#endif
14-
159
import SwiftFoundation
10+
import CBSON
1611

1712
public extension BSON {
1813

Sources/BinaryJSON/JSONDecodable.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66
// Copyright © 2015 PureSwift. All rights reserved.
77
//
88

9-
#if os(OSX)
10-
import bson
11-
#elseif os(Linux)
12-
import CBSON
13-
#endif
14-
159
import SwiftFoundation
10+
import CBSON
1611

1712

1813

Sources/BinaryJSON/JSONEncodable.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66
// Copyright © 2015 PureSwift. All rights reserved.
77
//
88

9-
#if os(OSX)
10-
import bson
11-
#elseif os(Linux)
12-
import CBSON
13-
#endif
14-
159
import SwiftFoundation
10+
import CBSON
1611

1712
// MARK: - JSON String
1813

Sources/BinaryJSON/ObjectID.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66
// Copyright © 2015 PureSwift. All rights reserved.
77
//
88

9-
#if os(OSX)
10-
import bson
11-
#elseif os(Linux)
12-
import CBSON
13-
#endif
14-
159
import SwiftFoundation
10+
import CBSON
1611

1712
public extension BSON {
1813

Sources/BinaryJSON/Reader.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66
// Copyright © 2015 PureSwift. All rights reserved.
77
//
88

9-
#if os(OSX)
10-
import bson
11-
#elseif os(Linux)
12-
import CBSON
13-
#endif
14-
159
import SwiftFoundation
10+
import CBSON
1611

1712
public extension BSON {
1813

Sources/BinaryJSON/UnsafePointer.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@
66
// Copyright © 2015 PureSwift. All rights reserved.
77
//
88

9-
#if os(OSX)
10-
import bson
11-
#elseif os(Linux)
12-
import CBSON
13-
#endif
14-
159
import SwiftFoundation
10+
import CBSON
1611

1712
public extension BSON {
1813

Sources/UnitTests/BSONTests.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@
66
// Copyright © 2015 PureSwift. All rights reserved.
77
//
88

9-
#if os(OSX)
10-
import bson
11-
#elseif os(Linux)
12-
import CBSON
13-
#endif
14-
159
import XCTest
1610
import BinaryJSON
1711
import SwiftFoundation
12+
import CBSON
1813

1914
class BSONTests: XCTestCase {
2015

Xcode/BinaryJSON.xcodeproj/project.pbxproj

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

99
/* Begin PBXBuildFile section */
10+
6E3E14571C2B5FB500AD9F5B /* libbson-1.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E3E14561C2B5FB500AD9F5B /* libbson-1.0.0.dylib */; };
1011
6E68254F1C1FDAB7006C6FF8 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E68254E1C1FDAB7006C6FF8 /* Extensions.swift */; };
1112
6E8D798C1C2928610016893F /* JSONDecodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E8D798B1C2928610016893F /* JSONDecodable.swift */; };
1213
6E8D798E1C29353D0016893F /* JSONEncodable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ED88B711C1E359200DF07E3 /* JSONEncodable.swift */; };
@@ -20,7 +21,6 @@
2021
6EE709581C274FDA00573EE4 /* Error.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EE709571C274FDA00573EE4 /* Error.swift */; };
2122
6EF6DB231C1E942800D38C7B /* ObjectID.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EF6DB221C1E942800D38C7B /* ObjectID.swift */; };
2223
6EFE5AD41C28DE9B00C3007F /* SwiftFoundation.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 6EFE5AD21C28DE8B00C3007F /* SwiftFoundation.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
23-
6EFE5AD61C28DEC100C3007F /* bson.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 6EFE5AD51C28DEBB00C3007F /* bson.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2424
/* End PBXBuildFile section */
2525

2626
/* Begin PBXContainerItemProxy section */
@@ -40,7 +40,6 @@
4040
dstPath = "";
4141
dstSubfolderSpec = 10;
4242
files = (
43-
6EFE5AD61C28DEC100C3007F /* bson.framework in Copy Frameworks */,
4443
6EFE5AD41C28DE9B00C3007F /* SwiftFoundation.framework in Copy Frameworks */,
4544
);
4645
name = "Copy Frameworks";
@@ -49,6 +48,8 @@
4948
/* End PBXCopyFilesBuildPhase section */
5049

5150
/* Begin PBXFileReference section */
51+
6E3E14531C2B5D5F00AD9F5B /* module.map */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.map; sourceTree = SOURCE_ROOT; };
52+
6E3E14561C2B5FB500AD9F5B /* libbson-1.0.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libbson-1.0.0.dylib"; path = "../../../../../usr/local/lib/libbson-1.0.0.dylib"; sourceTree = "<group>"; };
5253
6E68254E1C1FDAB7006C6FF8 /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
5354
6E8D798B1C2928610016893F /* JSONDecodable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSONDecodable.swift; sourceTree = "<group>"; };
5455
6ED88B4E1C1E226A00DF07E3 /* BinaryJSON.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = BinaryJSON.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -65,14 +66,14 @@
6566
6EE709571C274FDA00573EE4 /* Error.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Error.swift; sourceTree = "<group>"; };
6667
6EF6DB221C1E942800D38C7B /* ObjectID.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ObjectID.swift; sourceTree = "<group>"; };
6768
6EFE5AD21C28DE8B00C3007F /* SwiftFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftFoundation.framework; path = ../Carthage/Build/Mac/SwiftFoundation.framework; sourceTree = "<group>"; };
68-
6EFE5AD51C28DEBB00C3007F /* bson.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = bson.framework; path = ../Carthage/Build/Mac/bson.framework; sourceTree = "<group>"; };
6969
/* End PBXFileReference section */
7070

7171
/* Begin PBXFrameworksBuildPhase section */
7272
6ED88B4A1C1E226A00DF07E3 /* Frameworks */ = {
7373
isa = PBXFrameworksBuildPhase;
7474
buildActionMask = 2147483647;
7575
files = (
76+
6E3E14571C2B5FB500AD9F5B /* libbson-1.0.0.dylib in Frameworks */,
7677
);
7778
runOnlyForDeploymentPostprocessing = 0;
7879
};
@@ -111,6 +112,7 @@
111112
isa = PBXGroup;
112113
children = (
113114
6ED88B511C1E226A00DF07E3 /* BSON.h */,
115+
6E3E14531C2B5D5F00AD9F5B /* module.map */,
114116
6ED88B531C1E226A00DF07E3 /* Info.plist */,
115117
);
116118
path = BinaryJSON;
@@ -162,8 +164,8 @@
162164
6EFE5AD11C28DE6F00C3007F /* Dependencies */ = {
163165
isa = PBXGroup;
164166
children = (
165-
6EFE5AD51C28DEBB00C3007F /* bson.framework */,
166167
6EFE5AD21C28DE8B00C3007F /* SwiftFoundation.framework */,
168+
6E3E14561C2B5FB500AD9F5B /* libbson-1.0.0.dylib */,
167169
);
168170
name = Dependencies;
169171
sourceTree = "<group>";
@@ -408,9 +410,11 @@
408410
INFOPLIST_FILE = "$(SRCROOT)/BinaryJSON/Info.plist";
409411
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
410412
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
413+
LIBRARY_SEARCH_PATHS = /usr/local/lib;
411414
PRODUCT_BUNDLE_IDENTIFIER = org.pureswift.BSON;
412415
PRODUCT_NAME = BinaryJSON;
413416
SKIP_INSTALL = YES;
417+
SWIFT_INCLUDE_PATHS = $SRCROOT;
414418
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
415419
};
416420
name = Debug;
@@ -429,9 +433,11 @@
429433
INFOPLIST_FILE = "$(SRCROOT)/BinaryJSON/Info.plist";
430434
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
431435
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
436+
LIBRARY_SEARCH_PATHS = /usr/local/lib;
432437
PRODUCT_BUNDLE_IDENTIFIER = org.pureswift.BSON;
433438
PRODUCT_NAME = BinaryJSON;
434439
SKIP_INSTALL = YES;
440+
SWIFT_INCLUDE_PATHS = $SRCROOT;
435441
};
436442
name = Release;
437443
};

0 commit comments

Comments
 (0)