Skip to content

Commit 4933865

Browse files
committed
integrate into visionOS-Swift
1 parent 9b54e0b commit 4933865

File tree

2 files changed

+56
-10
lines changed

2 files changed

+56
-10
lines changed

Samples/visionOS-Swift/visionOS-Swift.xcodeproj/project.pbxproj

+54
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,31 @@
1212
62D7C6F02AEFBE3400339924 /* SentrySwiftUI.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 62D7C6EE2AEFBE3400339924 /* SentrySwiftUI.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1313
62D7C6F22AEFC03700339924 /* LoremIpsumView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62D7C6F12AEFC03700339924 /* LoremIpsumView.swift */; };
1414
62D7C6F42AEFC14F00339924 /* LoremIpsum.txt in Resources */ = {isa = PBXBuildFile; fileRef = 62D7C6F32AEFC14F00339924 /* LoremIpsum.txt */; };
15+
84B1363D2DA9F6000004D99F /* libSentrySampleShared-Swift.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 84B1363C2DA9F5FD0004D99F /* libSentrySampleShared-Swift.a */; };
1516
D84C37E32ACDC4A000EF74BE /* VisionOSSwiftApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84C37E22ACDC4A000EF74BE /* VisionOSSwiftApp.swift */; };
1617
D84C37E52ACDC4A000EF74BE /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84C37E42ACDC4A000EF74BE /* ContentView.swift */; };
1718
D84C37EC2ACDC4A100EF74BE /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D84C37EB2ACDC4A100EF74BE /* Preview Assets.xcassets */; };
1819
D84C37F52ACDC7DB00EF74BE /* Sentry.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D84C37F42ACDC7DB00EF74BE /* Sentry.framework */; };
1920
D84C37F62ACDC7DB00EF74BE /* Sentry.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D84C37F42ACDC7DB00EF74BE /* Sentry.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2021
/* End PBXBuildFile section */
2122

23+
/* Begin PBXContainerItemProxy section */
24+
84B136382DA9F5FC0004D99F /* PBXContainerItemProxy */ = {
25+
isa = PBXContainerItemProxy;
26+
containerPortal = 84B136352DA9F5FC0004D99F /* SentrySampleShared.xcodeproj */;
27+
proxyType = 1;
28+
remoteGlobalIDString = 842D547D2DA712C200D3528B;
29+
remoteInfo = "SentrySampleShared-Swift";
30+
};
31+
84B1363B2DA9F5FD0004D99F /* PBXContainerItemProxy */ = {
32+
isa = PBXContainerItemProxy;
33+
containerPortal = 84B136352DA9F5FC0004D99F /* SentrySampleShared.xcodeproj */;
34+
proxyType = 2;
35+
remoteGlobalIDString = 842D547E2DA712C200D3528B;
36+
remoteInfo = "SentrySampleShared-Swift";
37+
};
38+
/* End PBXContainerItemProxy section */
39+
2240
/* Begin PBXCopyFilesBuildPhase section */
2341
D84C37F72ACDC7DB00EF74BE /* Embed Frameworks */ = {
2442
isa = PBXCopyFilesBuildPhase;
@@ -39,6 +57,7 @@
3957
62D7C6EE2AEFBE3400339924 /* SentrySwiftUI.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = SentrySwiftUI.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4058
62D7C6F12AEFC03700339924 /* LoremIpsumView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoremIpsumView.swift; sourceTree = "<group>"; };
4159
62D7C6F32AEFC14F00339924 /* LoremIpsum.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = LoremIpsum.txt; sourceTree = "<group>"; };
60+
84B136352DA9F5FC0004D99F /* SentrySampleShared.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SentrySampleShared.xcodeproj; path = "/Users/andrewmcknight/Code/organization/getsentry/repos/public/sentry-cocoa/Samples/SentrySampleShared-Swift/SentrySampleShared.xcodeproj"; sourceTree = "<absolute>"; };
4261
D84C37DB2ACDC4A000EF74BE /* visionOS-Swift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "visionOS-Swift.app"; sourceTree = BUILT_PRODUCTS_DIR; };
4362
D84C37E22ACDC4A000EF74BE /* VisionOSSwiftApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VisionOSSwiftApp.swift; sourceTree = "<group>"; };
4463
D84C37E42ACDC4A000EF74BE /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
@@ -52,6 +71,7 @@
5271
isa = PBXFrameworksBuildPhase;
5372
buildActionMask = 2147483647;
5473
files = (
74+
84B1363D2DA9F6000004D99F /* libSentrySampleShared-Swift.a in Frameworks */,
5575
D84C37F52ACDC7DB00EF74BE /* Sentry.framework in Frameworks */,
5676
62D7C6EF2AEFBE3400339924 /* SentrySwiftUI.framework in Frameworks */,
5777
);
@@ -60,12 +80,21 @@
6080
/* End PBXFrameworksBuildPhase section */
6181

6282
/* Begin PBXGroup section */
83+
84B136362DA9F5FC0004D99F /* Products */ = {
84+
isa = PBXGroup;
85+
children = (
86+
84B1363C2DA9F5FD0004D99F /* libSentrySampleShared-Swift.a */,
87+
);
88+
name = Products;
89+
sourceTree = "<group>";
90+
};
6391
D84C37D22ACDC4A000EF74BE = {
6492
isa = PBXGroup;
6593
children = (
6694
D84C37DD2ACDC4A000EF74BE /* visionOS-Swift */,
6795
D84C37DC2ACDC4A000EF74BE /* Products */,
6896
D84C37F32ACDC7DB00EF74BE /* Frameworks */,
97+
84B136352DA9F5FC0004D99F /* SentrySampleShared.xcodeproj */,
6998
);
7099
sourceTree = "<group>";
71100
};
@@ -123,6 +152,7 @@
123152
buildRules = (
124153
);
125154
dependencies = (
155+
84B136392DA9F5FC0004D99F /* PBXTargetDependency */,
126156
);
127157
name = "visionOS-Swift";
128158
packageProductDependencies = (
@@ -157,13 +187,29 @@
157187
mainGroup = D84C37D22ACDC4A000EF74BE;
158188
productRefGroup = D84C37DC2ACDC4A000EF74BE /* Products */;
159189
projectDirPath = "";
190+
projectReferences = (
191+
{
192+
ProductGroup = 84B136362DA9F5FC0004D99F /* Products */;
193+
ProjectRef = 84B136352DA9F5FC0004D99F /* SentrySampleShared.xcodeproj */;
194+
},
195+
);
160196
projectRoot = "";
161197
targets = (
162198
D84C37DA2ACDC4A000EF74BE /* visionOS-Swift */,
163199
);
164200
};
165201
/* End PBXProject section */
166202

203+
/* Begin PBXReferenceProxy section */
204+
84B1363C2DA9F5FD0004D99F /* libSentrySampleShared-Swift.a */ = {
205+
isa = PBXReferenceProxy;
206+
fileType = archive.ar;
207+
path = "libSentrySampleShared-Swift.a";
208+
remoteRef = 84B1363B2DA9F5FD0004D99F /* PBXContainerItemProxy */;
209+
sourceTree = BUILT_PRODUCTS_DIR;
210+
};
211+
/* End PBXReferenceProxy section */
212+
167213
/* Begin PBXResourcesBuildPhase section */
168214
D84C37D92ACDC4A000EF74BE /* Resources */ = {
169215
isa = PBXResourcesBuildPhase;
@@ -190,6 +236,14 @@
190236
};
191237
/* End PBXSourcesBuildPhase section */
192238

239+
/* Begin PBXTargetDependency section */
240+
84B136392DA9F5FC0004D99F /* PBXTargetDependency */ = {
241+
isa = PBXTargetDependency;
242+
name = "SentrySampleShared-Swift";
243+
targetProxy = 84B136382DA9F5FC0004D99F /* PBXContainerItemProxy */;
244+
};
245+
/* End PBXTargetDependency section */
246+
193247
/* Begin XCBuildConfiguration section */
194248
D84C37EE2ACDC4A100EF74BE /* Debug */ = {
195249
isa = XCBuildConfiguration;

Samples/visionOS-Swift/visionOS-Swift/VisionOSSwiftApp.swift

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
import Sentry
2+
import SentrySampleShared_Swift
23
import SwiftUI
34

45
@main
56
struct VisionOSSwiftApp: App {
67

78
init() {
8-
SentrySDK.start { options in
9-
options.dsn = "https://6cc9bae94def43cab8444a99e0031c28@o447951.ingest.sentry.io/5428557"
10-
options.debug = true
11-
options.tracesSampleRate = 1.0
12-
options.attachScreenshot = true
13-
options.attachViewHierarchy = true
14-
15-
// Experimental features
16-
options.experimental.enableFileManagerSwizzling = true
17-
}
9+
SentrySDKWrapper.shared.startSentry()
1810
}
1911

2012
var body: some Scene {

0 commit comments

Comments
 (0)