lisen87 / image_pickers

图片多选并压缩,保存图片到相册,视频多选,预览图片和视频
Apache License 2.0
90 stars 59 forks source link

Issue Xcode 11 while create release build #10

Closed sumeet85 closed 4 years ago

sumeet85 commented 4 years ago

error: Unexpected duplicate tasks: 1) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/left_arrow.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/left_arrow.png' 2) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/left_arrow.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/left_arrow.png' error: Unexpected duplicate tasks: 1) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/error.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/error.png' 2) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/error.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/error.png' error: Unexpected duplicate tasks: 1) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/right_arrow@2x.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/right_arrow@2x.png' 2) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/right_arrow@2x.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/right_arrow@2x.png' error: Unexpected duplicate tasks: 1) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/left_arrow@2x.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/left_arrow@2x.png' 2) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/left_arrow@2x.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/left_arrow@2x.png' error: Unexpected duplicate tasks: 1) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/right_arrow.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/right_arrow.png' 2) Target 'image_pickers' (project 'Pods') has copy command from '/Users/mituser/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_pickers-1.0.7/ios/Classes/AKGallery/img/right_arrow.png' to '/Users/mituser/Documents/Soft/SF/Sanapp/build/ios/Release-iphoneos/image_pickers/image_pickers.framework/right_arrow.png' note: Using new build system note: Planning build note: Constructing build description

cuixiaocun commented 4 years ago

File -> workspace settings,choose “Legacy Build System"--->build

sumeet85 commented 4 years ago

Not worked

After File -> workspace settings,choose “Legacy Build System"--->build

BUILD FAILED **

Xcode's output: ↳ === BUILD TARGET ZLPhotoBrowser OF PROJECT Pods WITH CONFIGURATION Release === /Users/mituser/Downloads/image_pickers-master 2/example/ios/Pods/ZLPhotoBrowser/ZLPhotoBrowser/PhotoBrowser/ZLPhotoActionSheet.m:557:124: warning: values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Wformat] [self.btnCancel setTitle:[NSString stringWithFormat:@"%@(%ld)", GetLocalLanguageTextValue(ZLPhotoBrowserDoneText), self.arrSelectedModels.count] forState:UIControlStateNormal];


                                                                     %lu                                                       (unsigned long)
    1 warning generated.
    /Users/mituser/Downloads/image_pickers-master 2/example/ios/Pods/Z
sumeet85 commented 4 years ago

any one please help

cuixiaocun commented 4 years ago

any one please help

Please send me the whole project code you have made a mistake 。 1597828092@qq.com

sumeet85 commented 4 years ago

I Fixed the issue removed ios Extension target

OMOBruce commented 4 years ago

I Fixed the issue removed ios Extension target

how to removed ios Extension target?

harloom commented 4 years ago

I Fixed the issue removed ios Extension target

how removed iOS extension target?

Faisalkc4u commented 4 years ago

how to remove the iOS extension target?

Faisalkc4u commented 4 years ago

It's about New Build System, change your ios workspace to Legacy Build System

Screen Shot 2020-03-04 at 10 44 41 AM

xubillde commented 4 years ago

how to removed ios Extension target?

xubillde commented 4 years ago

@sumeet85

xubillde commented 4 years ago

@OMOBruce ok?

OMOBruce commented 4 years ago

@OMOBruce ok?

我直接把AKGallery库的资源文件删了。更换xcode的编译模式似乎是没有用的。

xubillde commented 4 years ago

确实是资源图片的问题,这个我修正了

gityan commented 4 years ago

@OMOBruce ok?

我直接把AKGallery库的资源文件删了。更换xcode的编译模式似乎是没有用的。

直接删除img文件夹么,但是还是会报错,找不到文件啊,Build input file cannot be found.

gityan commented 4 years ago

确实是资源图片的问题,这个我修正了

具体是怎么解决的呢?