Skip to content

Commit 32b7bd5

Browse files
committed
Update Xcode projects for framework building and testing.
1 parent a477424 commit 32b7bd5

File tree

7 files changed

+5963
-3145
lines changed

7 files changed

+5963
-3145
lines changed

xcode/DirectBindingsApp/DirectBindingsApp.xcodeproj/project.pbxproj

Lines changed: 1699 additions & 1601 deletions
Large diffs are not rendered by default.

xcode/LDKFramework/LDKFramework.xcodeproj/project.pbxproj

Lines changed: 1848 additions & 1544 deletions
Large diffs are not rendered by default.

xcode/LDKFramework_Mac/LDKFramework.xcodeproj/project.pbxproj

Lines changed: 2285 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1230"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "0767DA2226A0964700BEB4CC"
18+
BuildableName = "LDKFramework_Mac.framework"
19+
BlueprintName = "LDKFramework_Mac"
20+
ReferencedContainer = "container:LDKFramework.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
50+
<MacroExpansion>
51+
<BuildableReference
52+
BuildableIdentifier = "primary"
53+
BlueprintIdentifier = "0767DA2226A0964700BEB4CC"
54+
BuildableName = "LDKFramework_Mac.framework"
55+
BlueprintName = "LDKFramework_Mac"
56+
ReferencedContainer = "container:LDKFramework.xcodeproj">
57+
</BuildableReference>
58+
</MacroExpansion>
59+
</ProfileAction>
60+
<AnalyzeAction
61+
buildConfiguration = "Debug">
62+
</AnalyzeAction>
63+
<ArchiveAction
64+
buildConfiguration = "Release"
65+
revealArchiveInOrganizer = "YES">
66+
</ArchiveAction>
67+
</Scheme>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
21+
</dict>
22+
</plist>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// LDKExampleClass.swift
3+
// LDKFramework
4+
//
5+
// Created by Arik Sosman on 5/5/21.
6+
//
7+
8+
import Foundation
9+
10+
public class LDKExampleClass {
11+
12+
public class func printSomething() -> Void {
13+
print("hello world!")
14+
}
15+
16+
public func printInstance() -> Void {
17+
print("instance print")
18+
}
19+
20+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// LDKFramework.h
3+
// LDKFramework
4+
//
5+
// Created by Arik Sosman on 5/4/21.
6+
// EDITED BY ARIK AT 12:39AM
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
#import "lightning.h"
12+
#import "ldk_net.h"
13+
14+
//! Project version number for LDKFramework.
15+
FOUNDATION_EXPORT double LDKFrameworkVersionNumber;
16+
17+
//! Project version string for LDKFramework.
18+
FOUNDATION_EXPORT const unsigned char LDKFrameworkVersionString[];
19+
20+
// In this header, you should import all the public headers of your framework using statements like #import <LDKFramework/PublicHeader.h>
21+
22+

0 commit comments

Comments
 (0)