plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Bug]: ITMS-91061: Missing privacy manifest

Open kssce opened this issue 1 year ago β€’ 4 comments

Platform

macOS

Plugin

connectivity_plus

Version

6.1.0

Flutter SDK

3.24.5

Steps to reproduce

I distributed macOS to the App Store. However, I received the following response to the Apple review email:

ITMS-91061: Missing privacy manifest - Your app includes β€œContents/Frameworks/connectivity_plus.framework/Versions/A/connectivity_plus”, which includes connectivity_plus, an SDK that was identified in the documentation as a privacy-impacting third-party SDK. Starting February 12, 2025, if a new app includes a privacy-impacting SDK, or an app update adds a new privacy-impacting SDK, the SDK must include a privacy manifest file. Please contact the provider of the SDK that includes this file to get an updated SDK version with a privacy manifest. For more details about this policy, including a list of SDKs that are required to include signatures and manifests, visit: https://developer.apple.com/support/third-party-SDK-requirements.

Code Sample

No response

Logs

...
[+1527 ms] Caching compiled dill
[ +131 ms] Connecting to service protocol: http://127.0.0.1:52...
[ +117 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:52...
[  +44 ms] DDS is listening at http://127.0.0.1:52...
[  +77 ms] Successfully connected to service protocol: http://127.0.0.1:5...
[  +22 ms] DevFS: Creating new filesystem on the device (null)
[  +14 ms] DevFS: Created new filesystem on the device (file:///private/var/mobile/Containers/Data.......
[   +1 ms] Updating assets
[ +680 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
[   +5 ms] Syncing files to device ip14...
[   +2 ms] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[        ] <- recompile package:pp/main.dart 7...
[        ] <- 7...
[   +2 ms] Bundle processing done.
[ +153 ms] Updating files.
[        ] Pending asset builds completed. Writing dirty entries.
[        ] DevFS: Sync finished
[        ] Syncing files to device ip14... (completed in 173ms)
[        ] Synced 0.0MB.
[        ] <- accept
[   +3 ms] Connected to _flutterView/0x1...
[   +1 ms] Flutter run key commands.
[        ] r Hot reload. πŸ”₯πŸ”₯πŸ”₯
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] A Dart VM Service on ip14 is available at: http://127.0.0.1:52...
[        ] The Flutter DevTools debugger and profiler on ip14 is available at: http://127.0.0.1:91...

Flutter Doctor

❯ flutter doctor -v
[βœ“] Flutter (Channel stable, 3.24.5, on macOS 14.5 23F79 darwin-arm64, locale ko-KR)
    β€’ Flutter version 3.24.5 on channel stable at /Users/me/fvm/versions/stable
    β€’ Upstream repository https://github.com/flutter/flutter.git
    β€’ Framework revision dec2ee5c1f (4μ£Ό μ „), 2024-11-13 11:13:06 -0800
    β€’ Engine revision a18df97ca5
    β€’ Dart version 3.5.4
    β€’ DevTools version 2.37.3

[βœ“] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    β€’ Android SDK at /Users/me/Library/Android/sdk
    β€’ Platform android-34, build-tools 34.0.0
    β€’ ANDROID_HOME = /Users/me/Library/Android/sdk
    β€’ Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    β€’ Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    β€’ All Android licenses accepted.

[βœ“] Xcode - develop for iOS and macOS (Xcode 16.1)
    β€’ Xcode at /Applications/Xcode16.1.app/Contents/Developer
    β€’ Build 16B40
    β€’ CocoaPods version 1.16.2

[βœ“] Chrome - develop for the web
    β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[βœ“] Android Studio (version 2024.1)
    β€’ Android Studio at /Applications/Android Studio.app/Contents
    β€’ Flutter plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/9212-flutter
    β€’ Dart plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/6351-dart
    β€’ Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[βœ“] IntelliJ IDEA Ultimate Edition (version 2024.3.1)
    β€’ IntelliJ at /Applications/IntelliJ IDEA.app
    β€’ Flutter plugin version 83.0.4
    β€’ Dart plugin version 243.23177

[βœ“] VS Code (version 1.95.3)
    β€’ VS Code at /Applications/Visual Studio Code.app/Contents
    β€’ Flutter extension can be installed from:
      πŸ”¨ https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[βœ“] Connected device (6 available)
    β€’ macOS (desktop)                 β€’ macos                     β€’ darwin-arm64   β€’ macOS 14.5 23F79 darwin-arm64
    β€’ Mac Designed for iPad (desktop) β€’ mac-designed-for-ipad     β€’ darwin         β€’ macOS 14.5 23F79 darwin-arm64
    β€’ Chrome (web)                    β€’ chrome                    β€’ web-javascript β€’ Google Chrome 131.0.6778.109

[βœ“] Network resources
    β€’ All expected network resources are available.

β€’ No issues found!

Checklist before submitting a bug

  • [X] I searched issues in this repository and couldn't find such bug/problem
  • [X] I Google'd a solution and I couldn't find it
  • [X] I searched on StackOverflow for a solution and I couldn't find it
  • [X] I read the README.md file of the plugin
  • [X] I'm using the latest version of the plugin
  • [X] All dependencies are up to date with flutter pub upgrade
  • [x] I did a flutter clean
  • [X] I tried running the example project

kssce avatar Dec 10 '24 08:12 kssce

We have the manifest added for quite some time and even had a fix recently specifically for MacOS.

Please show your pubspec yaml and lock file content to be sure that you really use the latest version.

vbuberen avatar Dec 10 '24 08:12 vbuberen

Here are pubspec.yaml and pubspec.lock:

pubspec.yaml

dependencies:
  flutter:
    sdk: flutter

  ...
  connectivity_plus: ^6.1.0
  ...

pubspec.lock

packages:
  ...
  connectivity_plus:
    dependency: "direct main"
    description:
      name: connectivity_plus
      sha256: "876849631b0c7dc20f8b471a2a03142841b482438e3b707955464f5ffca3e4c3"
      url: "https://pub.dev"
    source: hosted
    version: "6.1.0"
  connectivity_plus_platform_interface:
    dependency: transitive
    description:
      name: connectivity_plus_platform_interface
      sha256: "42657c1715d48b167930d5f34d00222ac100475f73d10162ddf43e714932f204"
      url: "https://pub.dev"
    source: hosted
    version: "2.0.1"
  ...

kssce avatar Dec 10 '24 08:12 kssce

I think I know what the issue may be, the line of the privacy info refers only to ios:

 s.ios.resource_bundles = {'connectivity_plus_privacy' => ['connectivity_plus/Sources/connectivity_plus/PrivacyInfo.xcprivacy']}

should be duplicated and be as well:

 s.ios.resource_bundles = {'connectivity_plus_privacy' => ['connectivity_plus/Sources/connectivity_plus/PrivacyInfo.xcprivacy']}
 s.osx.resource_bundles = {'connectivity_plus_privacy' => ['connectivity_plus/Sources/connectivity_plus/PrivacyInfo.xcprivacy']}

or remove the ios part:

 s.resource_bundles = {'connectivity_plus_privacy' => ['connectivity_plus/Sources/connectivity_plus/PrivacyInfo.xcprivacy']}

miquelbeltran avatar Dec 10 '24 09:12 miquelbeltran

I will prepare a PR

miquelbeltran avatar Dec 10 '24 09:12 miquelbeltran