Skip to content
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

Closed
JinG312 opened this issue Nov 6, 2019 · 10 comments
Closed

iOS build release fail #49

JinG312 opened this issue Nov 6, 2019 · 10 comments
Labels
bug Something isn't working iOS The issue persist in iOS only resolved The issue has been addressed in latest release.
Milestone

Comments

@JinG312
Copy link

JinG312 commented Nov 6, 2019

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:

  1. run "flutter build ios --release -t lib/yourmain.dart" in terminal
@AmolGangadhare
Copy link
Owner

Try to clean build project once.

pod install
open project using .xcworkspace

@AmolGangadhare AmolGangadhare added the awaiting-response Waiting for user response label Nov 11, 2019
@jackdreilly
Copy link

jackdreilly commented Nov 12, 2019

Same problem, and the proposed solution does not work

@AmolGangadhare AmolGangadhare removed the awaiting-response Waiting for user response label Nov 12, 2019
@AmolGangadhare
Copy link
Owner

@jackdreilly Thanks for the confirmation.

Can you give me some details?

  1. Are you trying to run the example in the same plugin?
  2. Have you followed all the steps given in README to use it in project?

@AmolGangadhare
Copy link
Owner

AmolGangadhare commented Nov 12, 2019

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...

@jackdreilly
Copy link

jackdreilly commented Nov 12, 2019 via email

@JinG312
Copy link
Author

JinG312 commented Nov 13, 2019

@AmolGangadhare I've tried a clean build and the workaround, the error still remains.

@renan002
Copy link

renan002 commented Nov 26, 2019

Same problem here, flutter run works, but flutter build ios doesn't.

Edit: doing

s.source_files = 'Classes/**/*.{swift,h,m}'

solved this problem

@AmolGangadhare AmolGangadhare added bug Something isn't working iOS The issue persist in iOS only labels Nov 27, 2019
@AmolGangadhare AmolGangadhare added this to In development in Barcode Scanner Dashboard Nov 27, 2019
@AmolGangadhare AmolGangadhare moved this from In development to Done in Barcode Scanner Dashboard Nov 27, 2019
@AmolGangadhare AmolGangadhare added the resolved The issue has been addressed in latest release. label Dec 24, 2019
@AmolGangadhare
Copy link
Owner

This issue has been resolved. It will be available in the new release.

@fyeeme
Copy link

fyeeme commented Dec 26, 2019

@AmolGangadhare hope new version would be release soon

@AmolGangadhare
Copy link
Owner

V1.0.0 has been released,

this issue has been resolved.

Closing this, please feel free to reopen if the issue persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS The issue persist in iOS only resolved The issue has been addressed in latest release.
Projects
Development

No branches or pull requests

5 participants