- Copy/paste FBAnal.xcframework into your project, your google-service.plist should be in your project.
- Clone project and open in terminal
- Run below commands one by one
- then follow method 1
xcodebuild archive
-scheme FBAnal
-archivePath archives/FBAnal-iphonesimulator.xcarchive
-sdk iphonesimulator
SKIP_INSTALL=NO
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild archive
-scheme FBAnal
-archivePath archives/FBAnal-iphoneos.xcarchive
-sdk iphoneos
SKIP_INSTALL=NO
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework
-framework './archives/FBAnal-iphonesimulator.xcarchive/Products/Library/Frameworks/FBAnal.framework'
-framework './archives/FBAnal-iphoneos.xcarchive/Products/Library/Frameworks/FBAnal.framework'
-output ./archives/FBAnal.xcframework
let firebasemthod = FirebaseMethods() firebasemthod.fireBaseInit() let dict = ["key":"value"] firebasemthod.fireBaseLogEvent(dict, andEventName: "eventName")