Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Flurry swift package for iOS causes issue compiling for Mac Catalyst #20

Open
stefat opened this issue Jan 28, 2023 · 1 comment
Open

Comments

@stefat
Copy link

stefat commented Jan 28, 2023

Hello,
I’ve just updated an iOS app with the Flurry Swift package for iOS and it works fine.
The issue comes when I compile for Mac Catalyst: it shows the following two error messages:

"/Users/#username#/Library/Developer/Xcode/DerivedData/#nameOfBundle#-apiatgkmqztjuzeqnljjtkrytyhr/SourcePackages/checkouts/FlurrySwiftPackage/artifacts/FlurryConfig.xcframework
/Users/#username#/Library/Developer/Xcode/DerivedData/#nameOfBundle#-apiatgkmqztjuzeqnljjtkrytyhr/SourcePackages/checkouts/FlurrySwiftPackage/artifacts/FlurryConfig.xcframework:1:1 While building for Mac Catalyst, no library for this platform was found in '/Users/#username#/Library/Developer/Xcode/DerivedData/#nameOfBundle#-apiatgkmqztjuzeqnljjtkrytyhr/SourcePackages/checkouts/FlurrySwiftPackage/artifacts/FlurryConfig.xcframework'.

/Users/#username#/Library/Developer/Xcode/DerivedData/#nameOfBundle#-apiatgkmqztjuzeqnljjtkrytyhr/SourcePackages/checkouts/FlurrySwiftPackage/artifacts/FlurryMessaging.xcframework
/Users/#username#/Library/Developer/Xcode/DerivedData/#nameOfBundle#-apiatgkmqztjuzeqnljjtkrytyhr/SourcePackages/checkouts/FlurrySwiftPackage/artifacts/FlurryMessaging.xcframework:1:1 While building for Mac Catalyst, no library for this platform was found in '/Users/#username#/Library/Developer/Xcode/DerivedData/#nameOfBundle#-apiatgkmqztjuzeqnljjtkrytyhr/SourcePackages/checkouts/FlurrySwiftPackage/artifacts/FlurryMessaging.xcframework'.
"
BTW: in Mac Catalyst only I’m no longer interested in Flurry tracking. Just for iOS I use Flurry, and my code is always:
#if !targetEnvironment(macCatalyst)
… do stuff Flurry-related
#endif

The weird thing is that the compiler seems not looking for the Flurry.xcframework but just for the FlurryConfig.xcframework and FlurryMessaging.xcframework.
All three are present in the Build Phases tab in section 'Link Binary with Libraries’ and ALL three are marked ‘optional’, and for iOS only.

My hw/św pattern is:

MacBook Pro M1Pro 2021
macOS Ventura 13.1
Xcode 14.2

Any clue ?
How can I manage that ?

Thank you for any hint on this.

@hunterhays
Copy link
Contributor

FlurryConfig and FlurryMessaging are not compatible with MacCatalyst. I would recommend adding only the analytics SDK for your use case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants