Closed andaralex closed 2 years ago
Trying removing this line <pod name="GoogleIDFASupport" spec="3.14.0" />
; because it seems to be a versions conflict
You target is set to 8.0, but the deploy target is 9.0 to 15.4.99
Thanks for your quick reply. You are correct. As you said, it's version conflict. Now Xcode build succeeded and the app running in iOS simulators. I made the below changes in plugin.xml file.
commented this line <pod name="GoogleIDFASupport" spec="3.14.0" />;
and updated the GoogleAnalytics pod spec version to 3.20.0
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="GoogleAnalytics" spec="3.20.0"/>
<!-- <pod name="GoogleIDFASupport" spec="3.14.0" /> -->
</pods>
</podspec>
<pods use-frameworks="true">
<pod name="GoogleAnalytics" spec="3.20.0"/>
<!-- <pod name="GoogleIDFASupport" spec="3.14.0" /> -->
</pods>
any PR is welcome
Raised PR for this fix - https://github.com/danwilson/google-analytics-plugin/pull/596#issue-1180452809. Please review and merge it.
OS: macOS Monterey Version 12.3 Chip: Apple M1 Pro
Plugin Details: "cordova-plugin-google-analytics": "1.9.1",
"cordova": { "plugins": { "cordova-plugin-google-analytics": { "GMS_VERSION": "18.0.1" }, "platforms": [ "ios" ] },
Recently I changed my MacBook Pro with Apple M1 Chip. In my application, I have used the "google-analytics-plugin": 1.9.1 and getting below issue while build and run the iOS simulator:
ld: in /Users/Alexandar.S/Documents/ionic_sample_app/test_app/platforms/ios/Pods/GoogleIDFASupport/Libraries/libAdIdAccessLibrary.a(TAGActualAdIdAccess.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/Alexandar.S/Documents/ionic_sample_app/test_app/platforms/ios/Pods/GoogleIDFASupport/Libraries/libAdIdAccessLibrary.a' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Issue only on Xcode while choosing iOS simulator, on real iPhone devices working fine. Also build succeeded on Cordova CLI.
Note: Same working on macOS Big Sur Intel chip machine having Xcode 12.