Skip to content

Commit e9e183c

Browse files
author
Paul Seligman
committed
Cleanup from an abandoned attempt to build on macOS. These changes still seem worthwhile
1 parent de5f7ed commit e9e183c

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

Sources/FoundationNetworking/Resources/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
77
<key>CFBundleExecutable</key>
8-
<string>SwiftFoundation</string>
8+
<string>SwiftFoundationNetworking</string>
99
<key>CFBundleIdentifier</key>
1010
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>

Sources/FoundationXML/Resources/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
77
<key>CFBundleExecutable</key>
8-
<string>SwiftFoundation</string>
8+
<string>SwiftFoundationXML</string>
99
<key>CFBundleIdentifier</key>
1010
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>

Tests/Foundation/FTPServer.swift

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
//This is a very rudimentary FTP server written plainly for testing URLSession FTP Implementation.
1212
import Dispatch
1313

14+
#if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
15+
#if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
16+
@testable import SwiftFoundation
17+
#else
18+
@testable import Foundation
19+
#endif
20+
#endif
21+
1422
#if canImport(Glibc)
1523
import Glibc
1624
#elseif canImport(Darwin)

Tests/Foundation/Tests/TestDecimal.swift

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88
//
99

10-
import Foundation
11-
import XCTest
10+
#if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
11+
#if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
12+
@testable import SwiftFoundation
13+
#else
14+
@testable import Foundation
15+
#endif
16+
#endif
1217

1318
class TestDecimal: XCTestCase {
1419

0 commit comments

Comments
 (0)