Git Product home page Git Product logo

googleappmeasurement's Introduction

GoogleAppMeasurement

This repo hosts the GoogleAppMeasurement Swift Package Manager distribution.

GoogleAppMeasurement is not supported for direct usage by non-Google libraries. Any issues should be reported to the product that is using GoogleAppMeasurement.

googleappmeasurement's People

Contributors

allenktv avatar htcgh avatar maksymmalyhin avatar moemcd avatar ncooke3 avatar ollieatkinson avatar paulb777 avatar pcfba avatar ryanwilson avatar tsunghung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

googleappmeasurement's Issues

No bitcode provided for some architectures

Some architectures do not include bitcode, which causes a lot of warnings to be emitted when compiling an app and including bitcode (the default setting). Running the following script against 9.0.0 was used to check for bitcode:

#!/usr/bin/env bash

for executable in ./**/GoogleAppMeasurement.framework/GoogleAppMeasurement; do
    if otool -l "$executable" | grep __bitcode --silent; then
        echo "$executable includes bitcode"
    else
        echo "$executable does not include bitcode"
    fi
done

which outputs:

./ios-arm64_armv7/GoogleAppMeasurement.framework/GoogleAppMeasurement includes bitcode
./ios-arm64_i386_x86_64-simulator/GoogleAppMeasurement.framework/GoogleAppMeasurement does not include bitcode
./ios-arm64_x86_64-maccatalyst/GoogleAppMeasurement.framework/GoogleAppMeasurement does not include bitcode
./macos-arm64_x86_64/GoogleAppMeasurement.framework/GoogleAppMeasurement does not include bitcode
./tvos-arm64/GoogleAppMeasurement.framework/GoogleAppMeasurement includes bitcode
./tvos-arm64_x86_64-simulator/GoogleAppMeasurement.framework/GoogleAppMeasurement does not include bitcode

As shown, only ios-arm64_armv7 and tvos-arm64 include bitcode. Is it possible to include bitcode for the other architectures?

This was tested with the binaries provided for 9.0.0 (https://dl.google.com/firebase/ios/swiftpm/9.0.0/GoogleAppMeasurement.zip) and 8.8.0 (https://dl.google.com/firebase/ios/swiftpm/8.8.0/GoogleAppMeasurement.zip), which only provides ios-arm64_armv7 and ios-arm64_i386_x86_64-simulator architectures.

does not contain bitcode

GoogleAppMeasurement.framework/GoogleAppMeasurement(APMEventAggregates.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/haru/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuotwyogvxfhadenpzxqztkjdlfr/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport/GoogleAppMeasurement.framework/GoogleAppMeasurement' for architecture arm64

Xcode 13.2.1 support ?

Hello,

I don't know if it's the right place to ask this but we are using Xcode 13.2.1 to build our iOs projects (we cannot upgrade Xcode).

Using GoogleAppMeasurement 10.10.0 as a sub dependency of firebase, the linker fails with undefined symbols like objc_msgSend$....

After some research, it looks like it is related to libraries built with Xcode 14 and some new optimizations of the Clang compiler not available with Xcode 13.

Are there any solutions to this ?

Xcode 15: Ignoring duplicate libraries: '-lc++'

Starting with Xcode 15 you don't need to link C++ anymore, and .linkedLibrary("c++") in your Package.swift will cause Xcode to produce a warning Ignoring duplicate libraries: '-lc++' for any app or framework where the GoogleAppMeasurementWrapper package is used (including transitive use)

You can also remove .linkedLibrary("z")

Usage of depreciated CC_MD5 algorithm

Hi Google Team,
We are writing this mail a request you update the usage of depreciated crypto API CC_MD5 with SHA256 in GoogleAppMeasurement.xcframework. This is being flagged in multiple places throughout our project as a security vulnerability via multiple SAST tools. Would really appreciate your help. Here attaching some screenshots for your reference.

many crash on GoogleAppMeasurement 9.6.0

after out app ugrade google ad sdk to - Google-Mobile-Ads-SDK (= 9.11.0), GoogleAppMeasurement (= 9.6.0), there much crash on. But previous version ( Google-Mobile-Ads-SDK (8.13.0) GoogleAppMeasurement (8.10.0):) is OK.

0 libsystem_blocks.dylib 0x000000020bcd3afc __Block_copy + 56
1 libdispatch.dylib 0x00000001c624c478 __dispatch_Block_copy + 32
2 libdispatch.dylib 0x00000001c624c478 __dispatch_Block_copy + 32
3 libdispatch.dylib 0x00000001c62658e0 _dispatch_after + 280
4 QQKSong 0x0000000103bfbcb0 -[APMPersistedConfig scheduleSynchronizeToDisk] + 168
5 libdispatch.dylib 0x00000001c624dfdc __dispatch_client_callout + 20
6 libdispatch.dylib 0x00000001c625d574 __dispatch_lane_barrier_sync_invoke_and_complete + 56
7 QQKSong 0x0000000103bfb90c -[APMPersistedConfig setString:forKey:] + 136
8 QQKSong 0x0000000103bada04 -[APMIdentity enforceConsentSettings] + 60
9 QQKSong 0x0000000103baea80 ___32-[APMIdentity updateIdentifiers]_block_invoke + 72
10 libdispatch.dylib 0x00000001c624c4b4 __dispatch_call_block_and_release + 32
11 libdispatch.dylib 0x00000001c624dfdc __dispatch_client_callout + 20
12 libdispatch.dylib 0x00000001c6255694 __dispatch_lane_serial_drain + 672
13 libdispatch.dylib 0x00000001c62561e0 __dispatch_lane_invoke + 384
14 libdispatch.dylib 0x00000001c6260e10 __dispatch_workloop_worker_thread + 652
15 libsystem_pthread.dylib 0x000000020bcd7df8 __pthread_wqthread + 288
SEGV_ACCERR
Issue ID:B8406351C0E70EB236028468F644741C

0
libdispatch.dylib
__dispatch_block_async_invoke2 + 60
1
libdispatch.dylib
__dispatch_client_callout + 20
2
libdispatch.dylib
__dispatch_client_callout + 20
3
libdispatch.dylib
__dispatch_continuation_pop + 504
4
libdispatch.dylib
__dispatch_source_invoke + 1588
5
libdispatch.dylib
__dispatch_lane_serial_drain + 376
6
libdispatch.dylib
__dispatch_lane_invoke + 384
7
libdispatch.dylib
__dispatch_workloop_worker_thread + 652
8
libsystem_pthread.dylib
__pthread_wqthread + 288

Tag `8.14.0` missing

Hello, Package.swift refers to version 8.14.0 but this particular tag as not been published (yet?).

Failed to resolve dependencies
Dependencies could not be resolved because no versions of 'googleappmeasurement' match the requirement 8.14.0 and root depends on 'googleappmeasurement' 8.14.0.

Similar to #20

Specify minimum platforms version for watchOS

While using SwiftUI preview in watchOS target, I get this error.

The package product 'GULAppDelegateSwizzler' requires minimum platform version 6.0 for the watchOS platform, but this target supports 4.0

Suggested fix: Since GoogleAppMeasurement has dependency on GoogleUtilities which has minimum watchOS target set to watchOS(.v6), this minimum watchOS version should be included in GoogleAppMeasurement package manifest file

Can't update to Firebase/Analytics due to GoogleAppMeasurement dependency

Hello, I am trying to upgrade our firebase analytics library from 8.11 to 8.15 but it seems to be getting stuck with the following error:

➜  ios git:(chore/upgrade-dependencies) ✗ bundle exec pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
  In snapshot (Podfile.lock):
    GoogleAppMeasurement (< 10.0, = 8.11.0, >= 7.0)

  In Podfile:
    Firebase/Analytics (= 8.15.0) was resolved to 8.15.0, which depends on
      Firebase/Core (= 8.15.0) was resolved to 8.15.0, which depends on
        FirebaseAnalytics (~> 8.15.0) was resolved to 8.15.0, which depends on
          FirebaseAnalytics/AdIdSupport (= 8.15.0) was resolved to 8.15.0, which depends on
            GoogleAppMeasurement (= 8.15.0)

Specs satisfying the `GoogleAppMeasurement (< 10.0, = 8.11.0, >= 7.0), GoogleAppMeasurement (= 8.15.0)` dependency were found, but they required a higher minimum deployment target.

The deployment target for our app is ios 13, we have it specified in our Podfile like so:

platform :ios, '13.0'

And in our project build settings in xcode.

I am not great at troubleshooting cocoapod dependency issues, so I'm not totally sure this is a GoogleAppMeasurement issue, but I am not having any problems upgrading several other firebase libraries (auth, crashlytics, firestore, messaging, performance, remote config) from 8.11 to 8.15. It seems to just be analytics and it looks like it's complaining about GoogleAppMeasurement.

Any help is much appreciated - thanks!

no versions of 'GoogleAppMeasurement' match the requirement 8.15.0

Fetching from https://github.com/google/promises.git

Dependencies could not be resolved because no versions of 'GoogleAppMeasurement' match the requirement 8.15.0 and root depends on 'GoogleAppMeasurement' 8.15.0.

xcodebuild: error: Could not resolve package dependencies:
  Dependencies could not be resolved because no versions of 'GoogleAppMeasurement' match the requirement 8.15.0 and root depends on 'GoogleAppMeasurement' 8.15.0.

##[error]Error: /usr/bin/xcodebuild failed with return code: 74

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.