Skip to content

Commit 18600ef

Browse files
authored
Fix osx and watchOS build issue. (#10)
* Fix osx and watchOS build issue. * Updated CI
1 parent 91bd9fe commit 18600ef

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/swift.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717

1818
build_and_test_examples:
1919
needs: cancel_previous
20-
runs-on: macos-11
20+
runs-on: macos-latest
2121
steps:
2222
- uses: maxim-lobanov/setup-xcode@v1
2323
with:
24-
xcode-version: '13.0'
24+
xcode-version: latest-stable
2525
- uses: actions/checkout@v2
2626
- uses: actions/cache@v2
2727
with:

Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SegmentMixpanel/MixpanelDestination.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ public class MixpanelDestination: DestinationPlugin, RemoteNotifications {
6969
// see blog for reference:
7070
// https://help.mixpanel.com/hc/en-us/articles/115004600343-Autotrack-Retirement
7171
if let token = mixpanelSettings?.token {
72+
#if !os(OSX) && !os(watchOS)
7273
mixpanel = Mixpanel.initialize(token: token, trackAutomaticEvents: false)
74+
#else
75+
mixpanel = Mixpanel.initialize(token: token)
76+
#endif
7377
}
7478

7579
// Change the endpoint if euro one is set

0 commit comments

Comments
 (0)