Closed efeder-amd closed 1 year ago
I finally got this to work! I did all the following steps. I'm not 100% sure all are necessary.
I initially got rid of the Could not find or use auto-linked framework 'GoogleAppMeasurement'
error by downloading the module source code and moved GoogleAppMeasurement.xcframework
from the ios/shared
directory to the ios/platform
directory (and had to re-add GoogleAppMeasurement to the Framworks for the product in Xcode) and that particular error went away, However, I still received errors of the type: Undefined symbols for architecture x86_64.
I then followed suggestions in this stackoverflow post, including
the paths I had were (top to bottom):
$(PROJECT_DIR)
;$(TOOLCHAIN_DIR/usr/lib/swift/$(PLATFORM_NAME)
,/usr/lib/swift
,$(inherited)
I then ran carthage update
, copied all the .xcframework
folders to ios/platform
and re-added the frameworks to the Xcode project.
This resulted in a Cartfile.resolved
with:
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" "10.4.0"
I committed the result to my fork. Let me know if you want me to clean this up and open a PR.
Wow, silly me. I realized that the real issue is that I did not have the firebase.core module installed for my app. Once I listed both firebase.core
(v8.0.0) and firebase.analytics
(v7.0.0) in my tiapp.xml
, my application built and ran fine. firebase.core
has the other frameworks needed for firebase analytics to work. You do say that firebase.core is required on ios, but somehow I missed that.
My Environment: Operating System = macOS 12.6.2 Architecture = 64bit CPUs = 16
Node.js Version = 14.17.3 npm Version = 6.14.13 Titanium CLI = 6.1.1 Titanium SDK = 12.0.0.GA (also happened on 10.1.1.GA) firebase.analytics = 7.0.0 Xcode = 14.2
Platform iOS simulator = iPhone 14 Pro (iOS 16.2) device = iPhone 11 Pro (iOS 16.2)
When building for simulator or device, I am receiving the following error log: