dd-sdk-ios icon indicating copy to clipboard operation
dd-sdk-ios copied to clipboard

No Library Found When Compiling for Mac Catalyst

Open hyling opened this issue 1 year ago • 1 comments

The issue

Getting this error when compiling for Mac Catalyst:

Carthage/Build/DatadogObjc.xcframework:1:1: While building for Mac Catalyst, no library for this platform was found in 'Carthage/Build/DatadogObjc.xcframework'.


Datadog SDK version:

1.19.0

Last working Datadog SDK version:

NA

Dependency Manager:

Carthage

Other toolset:

NO

Xcode version:

14.3

Swift version:

5

Deployment Target:

iOS 11.0

macOS version:

NA

hyling avatar May 04 '23 17:05 hyling

Hi @hyling 👋 Thanks for the report!

We support Mac Catalyst when using SPM or CocoaPods, but it's not included in our xcframework builds. We should update our settings to make it work.

As a workaround, you can fork our repo and enable Mac Catalyst in targets defined in Datadog/Datadog.xcodeproj, you will then be able to target your fork in you Cartfile. Otherwise you can use either SPM or CocoaPods.

maxep avatar May 05 '23 12:05 maxep