mixpanel / mixpanel-iphone

Official iOS (Objective-C) Tracking Library for Mixpanel Analytics
http://mixpanel.com
Apache License 2.0
1.05k stars 567 forks source link

Using Swift Package Manger fails to build a macOS target #940

Closed adamtharani closed 2 years ago

adamtharani commented 3 years ago

Integration Method: Swift Package Manager Xcode Version: 12.5 Library Version: 4.0.0 beta Platform: iOS & macOS Language: Objective-C Description:


Showing Recent Errors Only
SourcePackages/checkouts/mixpanel-iphone/Sources/AutomaticEvents.h:9:9: UIKit is not available when building for macOS. Consider using `#if !TARGET_OS_OSX` to conditionally import this framework, first importing TargetConditionals.h if necessary.

Expected Behavior:

Build doesn't fail

adamtharani commented 3 years ago

Any update on this?

zihejia commented 3 years ago

hi @adamtharani , sorry for the late response. We will fix this.

zihejia commented 2 years ago

hi @adamtharani , it's been fixed in 4.1.3. I'm closing it now. Please feel free to reopen it if the problem still exists.