Swift Package Manager Support Request
Closed this issue · 10 comments
Flurry need to provide a Swift Package Manager Support , Right now am not sure it is supporting .
Flurry has support for Swift Package Manager currently in beta testing. It is available here:
The SPM package doesn't seem to work for iOS simulators running on M1 Macs. Is this a known issue? I get this error:
ld: warning: ignoring file /Users/zulfishah/Library/Developer/Xcode/DerivedData/SimpleList-bkylkdabwgxlstdympoknglfewum/Build/Products/Debug-iphonesimulator/libFlurry.a, missing required architecture arm64 in file /Users/zulfishah/Library/Developer/Xcode/DerivedData/SimpleList-bkylkdabwgxlstdympoknglfewum/Build/Products/Debug-iphonesimulator/libFlurry.a (2 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Flurry", referenced from:
objc-class-ref in SLAppDelegate.o
objc-class-ref in UpcomingEventsViewController.o
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It works fine when building and running to a device. Though I do want to be able to use the iOS simulator, so what's the best way to work around it?
@zulfishah Please reset the package cache and try again using Flurry 11.3.0.
A fix was previously released for this issue but the tag was not updated to point to the new commit. This has been corrected.
Also looking forward to this feature release.
I am also having an issue of trying to build my app with Flurry for the simulator on a M1 MBP. When I reset the cache and try to load 11.3.0 it says "Package Resolution Failed." There is no TAG for 11.3.0 FWIW, I can successfully load 11.2.0 but that (of coarse) doesn't fix the issue. And as you probably already know the library is missing a compiled version for the simulator.
$ lipo -archs libFlurry.a
i386 x86_64
Hello @rspears,
Are you looking at the correct repo? See the releases and tags listed here: https://github.com/flurry/FlurrySwiftPackage/releases
ios-arm64_i386_x86_64-simulator % lipo -archs libFlurry.a
i386 x86_64 arm64
`
My confusion was that the documentation shows:
"https://github.com/flurrydev/FlurrySwiftPackage/"
instead of:
"https://github.com/flurry/FlurrySwiftPackage"
@rspears I am sorry for that typo and the inconvenience it caused. I have updated the documentation on the master branch.
I'm trying to resolve the package https://github.com/flurry/FlurrySwiftPackage
but it seems that it's trying to resolve a non public url:
https://github.com/flurrydev/FlurrySwiftPackage/
Do you know why is this happening?
In a different computer this is NOT happening
UPDATE:
Xcode 13.2
(Btw, removing Flurry from "recently used packages", restarting Xcode, and re-adding the dependency worked :/ )
Flurry has added official support for Swift Package Manager(SPM). Please visit https://github.com/flurry/FlurrySwiftPackage and https://developer.yahoo.com/flurry/docs/integrateflurry/ios/