image_pickers icon indicating copy to clipboard operation
image_pickers copied to clipboard

release build throws `duplicate tasks` errors

Open zeusbaba opened this issue 4 years ago • 4 comments

When I try to build a release via flutter build ios --release --no-codesign
I get many errors related to image_pickers-1.0.8+4 saying error: Unexpected duplicate tasks
See example error

Xcode's output:
↳
    error: Unexpected duplicate tasks:
    1) Target 'image_pickers' (project 'Pods') has copy command from
    '/Users/zeus/MyMatrix/ProgsDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.8+4/ios/Classes/PhotoBrowser/resource/ZLPhotoBro
    wser.bundle/[email protected]' to
    '/Users/zeus/MyMatrix/ZeusBaba_code/fabulam/fabulam_app/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/zl_btn_original_cir
    [email protected]'
    2) Target 'image_pickers' (project 'Pods') has copy command from
    '/Users/zeus/MyMatrix/ProgsDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.8+4/ios/Classes/PhotoBrowser/resource/ZLPhotoBro
    wser.bundle/[email protected]' to
    '/Users/zeus/MyMatrix/ZeusBaba_code/fabulam/fabulam_app/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/zl_btn_original_cir
    [email protected]'
error: Unexpected duplicate tasks:
    1) Target 'image_pickers' (project 'Pods') has copy command from
    '/Users/zeus/MyMatrix/ProgsDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.8+4/ios/Classes/PhotoBrowser/resource/ZLPhotoBro
    wser.bundle/[email protected]' to
    '/Users/zeus/MyMatrix/ZeusBaba_code/fabulam/fabulam_app/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/zl_btn_unselected@2
    x.png'
    2) Target 'image_pickers' (project 'Pods') has copy command from
    '/Users/zeus/MyMatrix/ProgsDev/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.8+4/ios/Classes/PhotoBrowser/resource/ZLPhotoBro
    wser.bundle/[email protected]' to
    '/Users/zeus/MyMatrix/ZeusBaba_code/fabulam/fabulam_app/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/zl_btn_unselected@2
    x.png'
...

there are many of such errors....

zeusbaba avatar Oct 20 '20 16:10 zeusbaba

i have the same error when run command: flutter build ios @cuixiaocun @lisen87

fcloud89 avatar Oct 21 '20 03:10 fcloud89

any update on this issue?

zeusbaba avatar Oct 25 '20 12:10 zeusbaba

The problem is already being dealt with and will be updated tomorrow.

lisen87 avatar Oct 25 '20 13:10 lisen87

@zeusbaba @fcloud89

lisen87 avatar Oct 25 '20 13:10 lisen87