Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit daac1f1

Browse files
committed
1 parent 02b2e90 commit daac1f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/ApolloDeveloperKit/ApolloDebugServer.swift

+4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ import Foundation
1616
* When the server is released, it stops itself automatically.
1717
*/
1818
public class ApolloDebugServer {
19+
#if SWIFT_PACKAGE
20+
private static let documentRootURL = Bundle.module.url(forResource: "Assets", withExtension: nil)!
21+
#else
1922
private static let documentRootURL = Bundle(for: ApolloDebugServer.self).url(forResource: "Assets", withExtension: nil)!
23+
#endif
2024
private let networkTransport: DebuggableNetworkTransport
2125
private let cache: DebuggableNormalizedCache
2226
private let keepAliveInterval: TimeInterval

0 commit comments

Comments
 (0)