New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS build release fail #49
Comments
Try to clean build project once. pod install |
Same problem, and the proposed solution does not work |
@jackdreilly Thanks for the confirmation. Can you give me some details?
|
Also, there is a workaround to get it to work. Open project in XCode -> File -> Workspace settings -> Build system = select legacy build system Click on done and try to run the app/build with the command. I will keep you updated on this... |
As, well, after making the following change in
`flutter_barcode_scanner.podspec` it also worked:
```
s.source_files = 'Classes/**/*.{swift,h,m}'
```
…On Tue, Nov 12, 2019 at 2:04 PM Amol Gangadhare ***@***.***> wrote:
Also, there is a workaround to get it to work.
Open project in XCode -> File -> Workspace settings -> Build system = select legacy build system
Click on done and try to run the app/build with the command
Will keep updated on this....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@AmolGangadhare I've tried a clean build and the workaround, the error still remains. |
Same problem here, flutter run works, but flutter build ios doesn't. Edit: doing
solved this problem |
This issue has been resolved. It will be available in the new release. |
@AmolGangadhare hope new version would be release soon |
V1.0.0 has been released, this issue has been resolved. Closing this, please feel free to reopen if the issue persists |
Describe the bug
Some error appear when I tried to build release for iOS, below is the error I'm having:
Running Xcode build...
Xcode build done. 1.7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
error: Unexpected duplicate tasks:
1) Target 'flutter_barcode_scanner' (project 'Pods') has copy command from '/Users/jing/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_barcode_scanner-0.1.7/ios/Classes/resource.bundle/ic_flash_off.png' to
'/Users/jing/Documents/All_Flutter_Project/onair_flutter/build/ios/Release-iphoneos/flutter_barcode_scanner/flutter_barcode_scanner.framework/ic_flash_off.png'
2) Target 'flutter_barcode_scanner' (project 'Pods') has copy command from '/Users/jing/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_barcode_scanner-0.1.7/ios/Classes/resource.bundle/ic_flash_off.png' to
'/Users/jing/Documents/All_Flutter_Project/onair_flutter/build/ios/Release-iphoneos/flutter_barcode_scanner/flutter_barcode_scanner.framework/ic_flash_off.png'
error: Unexpected duplicate tasks:
1) Target 'flutter_barcode_scanner' (project 'Pods') has copy command from '/Users/jing/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_barcode_scanner-0.1.7/ios/Classes/resource.bundle/ic_flash_on.png' to
'/Users/jing/Documents/All_Flutter_Project/onair_flutter/build/ios/Release-iphoneos/flutter_barcode_scanner/flutter_barcode_scanner.framework/ic_flash_on.png'
2) Target 'flutter_barcode_scanner' (project 'Pods') has copy command from '/Users/jing/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_barcode_scanner-0.1.7/ios/Classes/resource.bundle/ic_flash_on.png' to
'/Users/jing/Documents/All_Flutter_Project/onair_flutter/build/ios/Release-iphoneos/flutter_barcode_scanner/flutter_barcode_scanner.framework/ic_flash_on.png'
note: Using new build systemnote: Planning buildnote: Constructing build description
Encountered error while building for device.
Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.9.1+hotfix.4, on Mac OS X 10.14.6 18G1012, locale en-MY)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.39.2)
[✓] Connected device (1 available)
• No issues found!
To Reproduce
Steps to reproduce the behaviour:
The text was updated successfully, but these errors were encountered: