Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS building from Xcode #8

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Examples/SentryExampleMacOS/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ struct MacOSExample {
defer { Sentry.close() }

print("Hello macOS")

RunLoop.current.run()
}

static func startSentry() {
Expand Down
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ let package = Package(
),
.testTarget(
name: "SwiftSentryTests",
dependencies: ["SwiftSentry"]
dependencies: ["SwiftSentry"],
swiftSettings: swiftSettings
),
]
)
Expand Down
1 change: 1 addition & 0 deletions Sources/sentry/dummy.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// A required, empty file to ensure that when building from Xcode that a .o is produced.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import XCTest
@testable import swift_sentry
@testable import SwiftSentry

final class swift_sentryTests: XCTestCase {
final class SwiftSentryTests: XCTestCase {
func testExample() throws {
// XCTest Documentation
// https://developer.apple.com/documentation/xctest
Expand Down