fluttercandies / flutter_photo_manager

A Flutter plugin that provides images, videos, and audio abstraction management APIs without interface integration, available on Android, iOS, macOS and OpenHarmony.
https://pub.dev/packages/photo_manager
Apache License 2.0
651 stars 299 forks source link

[Bug report] Semantic Issue (Xcode): Use of undeclared identifier 'PHAssetResourceTypePhotoProxy' #1151

Open tarunkhatri opened 4 days ago

tarunkhatri commented 4 days ago

Version

3.2.0

Platforms

iOS

Device Model

iPhone 14 Pro

flutter info

[✓] Flutter (Channel stable, 3.22.2, on macOS 13.0.1 22A400 darwin-x64, locale en-GB)
    • Flutter version 3.22.2 on channel stable at /Users/tarun/Desktop/FlutterSdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (3 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/tarun/Library/Android/sdk
    • Platform android-34, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    ! Flutter recommends a minimum Xcode version of 15.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • 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.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.90.2)
    • 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 (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554                        • android-x64    • Android 12 (API 32) (emulator)
    • iPhone 14 Pro (mobile)       • 1D26C776-E90E-4272-84D7-41F8AD4FB2E2 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-1 (simulator)
    • macOS (desktop)              • macos                                • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)                 • chrome                               • web-javascript • Google Chrome 126.0.6478.114

[✓] Network resources
    • All expected network resources are available.

How to reproduce?

i am using stream_chat_flutter which is using this library and after upgrading flutter, running ios its showing this error

Logs

Semantic Issue (Xcode): Use of undeclared identifier 'PHAssetResourceTypePhotoProxy'; did you mean 'PHAssetResourceTypePhoto'?
/Users/tarun/.pub-cache/hosted/pub.dev/photo_manager-3.2.0/ios/Classes/core/PHAssetResource+PM_COMMON.m:42:48

Example code (optional)

No response

Contact

No response

pratamarama commented 3 days ago

same here