Skip to content

Commit fda2ca7

Browse files
committed
Create (unused) bridging header to appease Xcode editor.
1 parent 8d952f2 commit fda2ca7

File tree

3 files changed

+39
-31
lines changed

3 files changed

+39
-31
lines changed

xcode/LDKFramework/LDKFramework.xcodeproj/project.pbxproj

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,12 @@
1414
07344C8826427F95001CD90E /* LDKExampleClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07344C8626427F95001CD90E /* LDKExampleClass.swift */; };
1515
07344FE626429524001CD90E /* libldk.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07344FE526429524001CD90E /* libldk.a */; };
1616
07344FE926429536001CD90E /* libldk.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07344FE526429524001CD90E /* libldk.a */; };
17-
0734506026445915001CD90E /* lightning.h in Headers */ = {isa = PBXBuildFile; fileRef = 0734505D26445915001CD90E /* lightning.h */; settings = {ATTRIBUTES = (Public, ); }; };
18-
0734506126445915001CD90E /* ldk_ver.h in Headers */ = {isa = PBXBuildFile; fileRef = 0734505E26445915001CD90E /* ldk_ver.h */; settings = {ATTRIBUTES = (Public, ); }; };
19-
0734506226445915001CD90E /* ldk_rust_types.h in Headers */ = {isa = PBXBuildFile; fileRef = 0734505F26445915001CD90E /* ldk_rust_types.h */; settings = {ATTRIBUTES = (Public, ); }; };
2017
0749F9C6265615CC00876C52 /* ChannelManagerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0749F9C4265615CB00876C52 /* ChannelManagerConstructor.swift */; };
2118
0749F9C7265615CC00876C52 /* ChannelManagerConstructor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0749F9C4265615CB00876C52 /* ChannelManagerConstructor.swift */; };
2219
0749F9C8265615CC00876C52 /* UtilMethods.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0749F9C5265615CB00876C52 /* UtilMethods.swift */; };
2320
0749F9C9265615CC00876C52 /* UtilMethods.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0749F9C5265615CB00876C52 /* UtilMethods.swift */; };
2421
0767CD292698B6B700BEB4CC /* TCPPeerHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0767CD282698B6B700BEB4CC /* TCPPeerHandler.swift */; };
2522
0767CD2A2698B6B700BEB4CC /* TCPPeerHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0767CD282698B6B700BEB4CC /* TCPPeerHandler.swift */; };
26-
0767CD332698B70900BEB4CC /* ldk_net.c in Sources */ = {isa = PBXBuildFile; fileRef = 0767CD312698B70800BEB4CC /* ldk_net.c */; };
27-
0767CD342698B70900BEB4CC /* ldk_net.c in Sources */ = {isa = PBXBuildFile; fileRef = 0767CD312698B70800BEB4CC /* ldk_net.c */; };
28-
0767CD352698B70900BEB4CC /* ldk_net.h in Headers */ = {isa = PBXBuildFile; fileRef = 0767CD322698B70800BEB4CC /* ldk_net.h */; settings = {ATTRIBUTES = (Public, ); }; };
2923
0767CE372698B82A00BEB4CC /* PaymentSendFailure.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0767CD3C2698B82800BEB4CC /* PaymentSendFailure.swift */; };
3024
0767CE382698B82A00BEB4CC /* PaymentSendFailure.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0767CD3C2698B82800BEB4CC /* PaymentSendFailure.swift */; };
3125
0767CE392698B82A00BEB4CC /* Option_u64Z.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0767CD3D2698B82800BEB4CC /* Option_u64Z.swift */; };
@@ -520,6 +514,12 @@
520514
0767D0222698B82B00BEB4CC /* OutPoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0767CE352698B82A00BEB4CC /* OutPoint.swift */; };
521515
0767D0232698B82B00BEB4CC /* DelayedPaymentOutputDescriptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0767CE362698B82A00BEB4CC /* DelayedPaymentOutputDescriptor.swift */; };
522516
0767D0242698B82B00BEB4CC /* DelayedPaymentOutputDescriptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0767CE362698B82A00BEB4CC /* DelayedPaymentOutputDescriptor.swift */; };
517+
0767D03A2698BB9800BEB4CC /* ldk_net.h in Headers */ = {isa = PBXBuildFile; fileRef = 0767D0352698BB9700BEB4CC /* ldk_net.h */; settings = {ATTRIBUTES = (Public, ); }; };
518+
0767D03B2698BB9800BEB4CC /* lightning.h in Headers */ = {isa = PBXBuildFile; fileRef = 0767D0362698BB9700BEB4CC /* lightning.h */; settings = {ATTRIBUTES = (Public, ); }; };
519+
0767D03C2698BB9800BEB4CC /* ldk_rust_types.h in Headers */ = {isa = PBXBuildFile; fileRef = 0767D0372698BB9700BEB4CC /* ldk_rust_types.h */; settings = {ATTRIBUTES = (Public, ); }; };
520+
0767D03D2698BB9800BEB4CC /* ldk_ver.h in Headers */ = {isa = PBXBuildFile; fileRef = 0767D0382698BB9700BEB4CC /* ldk_ver.h */; settings = {ATTRIBUTES = (Public, ); }; };
521+
0767D03E2698BB9800BEB4CC /* ldk_net.c in Sources */ = {isa = PBXBuildFile; fileRef = 0767D0392698BB9800BEB4CC /* ldk_net.c */; };
522+
0767D03F2698BB9800BEB4CC /* ldk_net.c in Sources */ = {isa = PBXBuildFile; fileRef = 0767D0392698BB9800BEB4CC /* ldk_net.c */; };
523523
/* End PBXBuildFile section */
524524

525525
/* Begin PBXContainerItemProxy section */
@@ -542,14 +542,9 @@
542542
07344C8626427F95001CD90E /* LDKExampleClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LDKExampleClass.swift; sourceTree = "<group>"; };
543543
07344FCD26428DD2001CD90E /* LDKFramework.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = LDKFramework.modulemap; sourceTree = "<group>"; };
544544
07344FE526429524001CD90E /* libldk.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libldk.a; sourceTree = "<group>"; };
545-
0734505D26445915001CD90E /* lightning.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lightning.h; sourceTree = SOURCE_ROOT; };
546-
0734505E26445915001CD90E /* ldk_ver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ldk_ver.h; sourceTree = SOURCE_ROOT; };
547-
0734505F26445915001CD90E /* ldk_rust_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ldk_rust_types.h; sourceTree = SOURCE_ROOT; };
548545
0749F9C4265615CB00876C52 /* ChannelManagerConstructor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChannelManagerConstructor.swift; sourceTree = "<group>"; };
549546
0749F9C5265615CB00876C52 /* UtilMethods.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UtilMethods.swift; sourceTree = "<group>"; };
550547
0767CD282698B6B700BEB4CC /* TCPPeerHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TCPPeerHandler.swift; sourceTree = "<group>"; };
551-
0767CD312698B70800BEB4CC /* ldk_net.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ldk_net.c; sourceTree = SOURCE_ROOT; };
552-
0767CD322698B70800BEB4CC /* ldk_net.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ldk_net.h; sourceTree = SOURCE_ROOT; };
553548
0767CD3C2698B82800BEB4CC /* PaymentSendFailure.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PaymentSendFailure.swift; sourceTree = "<group>"; };
554549
0767CD3D2698B82800BEB4CC /* Option_u64Z.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Option_u64Z.swift; sourceTree = "<group>"; };
555550
0767CD3E2698B82800BEB4CC /* Fallback.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Fallback.swift; sourceTree = "<group>"; };
@@ -797,6 +792,12 @@
797792
0767CE342698B82A00BEB4CC /* Route.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Route.swift; sourceTree = "<group>"; };
798793
0767CE352698B82A00BEB4CC /* OutPoint.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OutPoint.swift; sourceTree = "<group>"; };
799794
0767CE362698B82A00BEB4CC /* DelayedPaymentOutputDescriptor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DelayedPaymentOutputDescriptor.swift; sourceTree = "<group>"; };
795+
0767D0322698BB9600BEB4CC /* LDKFrameworkTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LDKFrameworkTests-Bridging-Header.h"; sourceTree = "<group>"; };
796+
0767D0352698BB9700BEB4CC /* ldk_net.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ldk_net.h; sourceTree = SOURCE_ROOT; };
797+
0767D0362698BB9700BEB4CC /* lightning.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lightning.h; sourceTree = SOURCE_ROOT; };
798+
0767D0372698BB9700BEB4CC /* ldk_rust_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ldk_rust_types.h; sourceTree = SOURCE_ROOT; };
799+
0767D0382698BB9700BEB4CC /* ldk_ver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ldk_ver.h; sourceTree = SOURCE_ROOT; };
800+
0767D0392698BB9800BEB4CC /* ldk_net.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ldk_net.c; sourceTree = SOURCE_ROOT; };
800801
/* End PBXFileReference section */
801802

802803
/* Begin PBXFrameworksBuildPhase section */
@@ -843,8 +844,8 @@
843844
07344C56264277EC001CD90E /* LDKFramework */ = {
844845
isa = PBXGroup;
845846
children = (
847+
0767D0312698BB8800BEB4CC /* headers */,
846848
0767CD3A2698B82800BEB4CC /* LDK */,
847-
07344FAC26428B09001CD90E /* headers */,
848849
0749F9C3265615CB00876C52 /* batteries */,
849850
07344C57264277ED001CD90E /* LDKFramework.h */,
850851
07344C58264277ED001CD90E /* Info.plist */,
@@ -870,19 +871,6 @@
870871
name = Frameworks;
871872
sourceTree = "<group>";
872873
};
873-
07344FAC26428B09001CD90E /* headers */ = {
874-
isa = PBXGroup;
875-
children = (
876-
0767CD312698B70800BEB4CC /* ldk_net.c */,
877-
0767CD322698B70800BEB4CC /* ldk_net.h */,
878-
0734505F26445915001CD90E /* ldk_rust_types.h */,
879-
0734505E26445915001CD90E /* ldk_ver.h */,
880-
0734505D26445915001CD90E /* lightning.h */,
881-
);
882-
name = headers;
883-
path = ../../../bindings/headers;
884-
sourceTree = "<group>";
885-
};
886874
0749F9C3265615CB00876C52 /* batteries */ = {
887875
isa = PBXGroup;
888876
children = (
@@ -1189,18 +1177,31 @@
11891177
path = structs;
11901178
sourceTree = "<group>";
11911179
};
1180+
0767D0312698BB8800BEB4CC /* headers */ = {
1181+
isa = PBXGroup;
1182+
children = (
1183+
0767D0392698BB9800BEB4CC /* ldk_net.c */,
1184+
0767D0352698BB9700BEB4CC /* ldk_net.h */,
1185+
0767D0372698BB9700BEB4CC /* ldk_rust_types.h */,
1186+
0767D0382698BB9700BEB4CC /* ldk_ver.h */,
1187+
0767D0362698BB9700BEB4CC /* lightning.h */,
1188+
0767D0322698BB9600BEB4CC /* LDKFrameworkTests-Bridging-Header.h */,
1189+
);
1190+
name = headers;
1191+
sourceTree = "<group>";
1192+
};
11921193
/* End PBXGroup section */
11931194

11941195
/* Begin PBXHeadersBuildPhase section */
11951196
07344C4F264277EC001CD90E /* Headers */ = {
11961197
isa = PBXHeadersBuildPhase;
11971198
buildActionMask = 2147483647;
11981199
files = (
1200+
0767D03B2698BB9800BEB4CC /* lightning.h in Headers */,
1201+
0767D03A2698BB9800BEB4CC /* ldk_net.h in Headers */,
1202+
0767D03C2698BB9800BEB4CC /* ldk_rust_types.h in Headers */,
11991203
07344C65264277ED001CD90E /* LDKFramework.h in Headers */,
1200-
0734506026445915001CD90E /* lightning.h in Headers */,
1201-
0734506226445915001CD90E /* ldk_rust_types.h in Headers */,
1202-
0767CD352698B70900BEB4CC /* ldk_net.h in Headers */,
1203-
0734506126445915001CD90E /* ldk_ver.h in Headers */,
1204+
0767D03D2698BB9800BEB4CC /* ldk_ver.h in Headers */,
12041205
);
12051206
runOnlyForDeploymentPostprocessing = 0;
12061207
};
@@ -1314,6 +1315,7 @@
13141315
0767CF9F2698B82B00BEB4CC /* CounterpartyChannelTransactionParameters.swift in Sources */,
13151316
0767CEBF2698B82A00BEB4CC /* Result_AcceptChannelDecodeErrorZ.swift in Sources */,
13161317
0767CFF12698B82B00BEB4CC /* LightningError.swift in Sources */,
1318+
0767D03E2698BB9800BEB4CC /* ldk_net.c in Sources */,
13171319
0767CEAF2698B82A00BEB4CC /* Result_ChannelInfoDecodeErrorZ.swift in Sources */,
13181320
0767CE452698B82A00BEB4CC /* ErrorAction.swift in Sources */,
13191321
0767CE872698B82A00BEB4CC /* C2Tuple_u32TxOutZ.swift in Sources */,
@@ -1387,7 +1389,6 @@
13871389
0767CEB72698B82A00BEB4CC /* Result_PaymentSecretAPIErrorZ.swift in Sources */,
13881390
0767CFAF2698B82B00BEB4CC /* HTLCUpdate.swift in Sources */,
13891391
0767CF0B2698B82A00BEB4CC /* Result_InvoiceSemanticErrorZ.swift in Sources */,
1390-
0767CD332698B70900BEB4CC /* ldk_net.c in Sources */,
13911392
0767CE4B2698B82A00BEB4CC /* SignOrCreationError.swift in Sources */,
13921393
0767CE972698B82A00BEB4CC /* Result_QueryChannelRangeDecodeErrorZ.swift in Sources */,
13931394
0767CEE12698B82A00BEB4CC /* Result_boolLightningErrorZ.swift in Sources */,
@@ -1705,6 +1706,7 @@
17051706
0767CF182698B82A00BEB4CC /* Result_ChannelMonitorUpdateDecodeErrorZ.swift in Sources */,
17061707
0767CE702698B82A00BEB4CC /* Filter.swift in Sources */,
17071708
0767CE842698B82A00BEB4CC /* C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ.swift in Sources */,
1709+
0767D03F2698BB9800BEB4CC /* ldk_net.c in Sources */,
17081710
0767CD2A2698B6B700BEB4CC /* TCPPeerHandler.swift in Sources */,
17091711
0767CEDC2698B82A00BEB4CC /* Result_NoneLightningErrorZ.swift in Sources */,
17101712
0767CFBE2698B82B00BEB4CC /* RawInvoice.swift in Sources */,
@@ -1768,7 +1770,6 @@
17681770
0767CFA62698B82B00BEB4CC /* IgnoringMessageHandler.swift in Sources */,
17691771
0767CF7A2698B82B00BEB4CC /* HTLCOutputInCommitment.swift in Sources */,
17701772
0767CE3E2698B82A00BEB4CC /* Option_C2Tuple_usizeTransactionZZ.swift in Sources */,
1771-
0767CD342698B70900BEB4CC /* ldk_net.c in Sources */,
17721773
0767CF242698B82A00BEB4CC /* Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.swift in Sources */,
17731774
0767CEEC2698B82A00BEB4CC /* Result_SiPrefixNoneZ.swift in Sources */,
17741775
0767CFE62698B82B00BEB4CC /* CommitmentUpdate.swift in Sources */,
@@ -2042,6 +2043,7 @@
20422043
MODULEMAP_PRIVATE_FILE = "";
20432044
PRODUCT_BUNDLE_IDENTIFIER = org.ldk.LDKFrameworkTests;
20442045
PRODUCT_NAME = "$(TARGET_NAME)";
2046+
SWIFT_OBJC_BRIDGING_HEADER = "LDKFramework/LDKFrameworkTests-Bridging-Header.h";
20452047
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
20462048
SWIFT_VERSION = 5.0;
20472049
TARGETED_DEVICE_FAMILY = "1,2";
@@ -2069,6 +2071,7 @@
20692071
MODULEMAP_PRIVATE_FILE = "";
20702072
PRODUCT_BUNDLE_IDENTIFIER = org.ldk.LDKFrameworkTests;
20712073
PRODUCT_NAME = "$(TARGET_NAME)";
2074+
SWIFT_OBJC_BRIDGING_HEADER = "LDKFramework/LDKFrameworkTests-Bridging-Header.h";
20722075
SWIFT_VERSION = 5.0;
20732076
TARGETED_DEVICE_FAMILY = "1,2";
20742077
};

xcode/LDKFramework/LDKFramework/LDKFramework.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#import <Foundation/Foundation.h>
1010

1111
#import "lightning.h"
12+
#import "ldk_net.h"
1213

1314
//! Project version number for LDKFramework.
1415
FOUNDATION_EXPORT double LDKFrameworkVersionNumber;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//
2+
// Use this file to import your target's public headers that you would like to expose to Swift.
3+
//
4+

0 commit comments

Comments
 (0)