-
Notifications
You must be signed in to change notification settings - Fork 14
Flurry swift package for iOS causes issue compiling for Mac Catalyst #20
Description
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.