PiwikPRO / piwik-pro-sdk-framework-ios

MIT License
2 stars 2 forks source link

piwik flutter sdk not building on iOS #15

Open nebis-software opened 2 months ago

nebis-software commented 2 months ago

(I hope it's the correct place to report this, I cannot find a dedicated flutter GH)

Hi, when building the flutter sdk https://pub.dev/packages/flutter_piwikpro i get an error on iOS: when building a empty project example that includes

google_sign_in: ^6.2.1 flutter_piwikpro: ^1.1.0

I get compilation errors:

[   +2 ms] Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module 'GTMSessionFetcher.GTMSessionFetcherLogging': 'Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcherLogging.h:15:8

[   +2 ms] Semantic Issue (Xcode): Duplicate interface definition for class 'GTMSessionFetcherUserDefaultsFactory'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:419:0

[        ] Semantic Issue (Xcode): Redefinition of 'GTMSessionFetcherError'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:429:27

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorDownloadFailed'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:430:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorUploadChunkUnavailable'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:431:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorBackgroundExpiration'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:432:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorBackgroundFetchFailed'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:433:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorInsecureRequest'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:434:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorTaskCreationFailed'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:435:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherErrorUserCancelled'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:439:2

[        ] Semantic Issue (Xcode): Redefinition of 'GTMSessionFetcherStatus'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:442:27

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusNotModified'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:444:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusBadRequest'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:445:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusUnauthorized'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:446:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusForbidden'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:447:2

[        ] Semantic Issue (Xcode): Redefinition of enumerator 'GTMSessionFetcherStatusPreconditionFailed'
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:448:2

[        ] Semantic Issue (Xcode): Reference to 'GTMUserAgentProvider' is ambiguous
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:531:49

[        ] Semantic Issue (Xcode): Unknown class name 'GTMUserAgentProvider'; did you mean 'GTMUserAgentStringProvider'?
           /Users/luigi/Documents/app/ios/Pods/GTMSessionFetcher/Sources/Core/Public/GTMSessionFetcher/GTMSessionFetcher.h:531:49

etc etc

I am using:

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.1.1 23B81 darwin-arm64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (3 available)
[✓] Network resources

do you see the same? Thanks!

nebis-software commented 1 month ago

any help?