YoussefKababe / pinch_zoom_image

A widget that makes picture pinch zoom, then return back to initial size and position when released.
https://pub.dartlang.org/packages/pinch_zoom_image
ISC License
52 stars 53 forks source link

pinch_zoom_image_updated does not work on iOS #22

Open macmatrix opened 4 years ago

macmatrix commented 4 years ago

pinch_zoom_image_updated work fine in android but the plugin does not work for iOS. Here is the error I get if I try to run in iOS

[!] No podspec found for pinch_zoom_image_updated in .symlinks/plugins/pinch_zoom_image_updated/ios

any solution?

M6268 commented 4 years ago
  1. open in finder "flutter_project/ios/.symlinks/plugins/pinch_zoom_image_updated-{version}/ios/"
  2. rename "pinch_zoom_image.podspec" to "pinch_zoom_image_updated.podspec"
  3. edit the renamed file and replace "pinch_zoom_image" with "pinch_zoom_image_updated"
  4. goto "flutter_project/ios/"
  5. pod install
  6. flutter run

Please reply whether it worked for u or not.

macmatrix commented 4 years ago

Hello the issue is now that it cannot find the swift.h file

/Users/xxxx/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/pinch_zoom_image_updated-0.2.6/ios/Classes/PinchZoomImagePlugin.m:2:9: fatal error: 'pinch_zoom_image/pinch_zoom_image-Swift.h' file not found
    #import <pinch_zoom_image/pinch_zoom_image-Swift.h>

How can I fix?

rlee1990 commented 4 years ago

Why not update the package so this would work?

leszekkrol commented 4 years ago

Any update?

furkankurt commented 4 years ago

I created new repo. Owner of this project don't accept pull requests. You can use mine. https://pub.dartlang.org/packages/pinch_zoom_image_last If there is an issue, you can open an issue of my github repo.

MATTYGILO commented 3 years ago

Doesn't have a pod spec