Skip to content

Commit

Permalink
Fix macOS building from Xcode (#8)
Browse files Browse the repository at this point in the history
* Fix macOS building from Xcode

* Remove CI for now
  • Loading branch information
brianmichel committed Oct 23, 2023
1 parent abdc4cf commit d9bd271
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
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

0 comments on commit d9bd271

Please sign in to comment.