Xcode archive fails (multiple commands ..

1,039 views
Skip to first unread message

john mcfetridge

unread,
Aug 6, 2019, 11:38:32 PM8/6/19
to Flutter Development (flutter-dev)

need to produce an archive so we can upload to TestFlight so followed instructions in https://flutter.dev/docs/deployment/ios . my flutter runs on both real iPhone and simulator with no problem. so I produce a release version as required then open the resultant Xcode project (runner). I need to do this to produce the Archive!  immediately I see the error

:-1: Multiple commands produce '/Users/jmcfet/Library/Developer/Xcode/DerivedData/Runner-cwxykfeiijpirmgbtrkzktdrahbt/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/Flutter.framework': 1) Target 'Runner' has copy command from '/Users/jmcfet/AndroidStudioProjects/sis/ios/Flutter/Flutter.framework' to '/Users/jmcfet/Library/Developer/Xcode/DerivedData/Runner-cwxykfeiijpirmgbtrkzktdrahbt/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/Flutter.framework' 2) That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”


how can this be as I think that Flutter is correctly building using the same Runner project that I am manually opening. this is a HUGE issue as stopping our development in its tracks after months of work.

 

Olaide Nojeem Ekeolere

unread,
Aug 6, 2019, 11:43:24 PM8/6/19
to john mcfetridge, Flutter Development (flutter-dev)
Hi,
   I think you should run flutter doctor to check everything is okay, have the latest flutter and Xcode and also update your pods then try again. This usually solves the problem for me.
Best regards


--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/5a746601-5587-46df-9fdd-ed8d72ddfb19%40googlegroups.com.

Rabih M. ElBaba (Gmail)

unread,
Aug 7, 2019, 1:18:01 AM8/7/19
to john mcfetridge, Flutter Development (flutter-dev)
Try to install the pods via command first

flutter packages get
sudo gem install cocoapods
flutter build ios

And see is there any errors



--

john mcfetridge

unread,
Aug 7, 2019, 6:45:07 AM8/7/19
to Flutter Development (flutter-dev)

Rabih M. ElBaba (Gmail)

unread,
Aug 7, 2019, 3:42:32 PM8/7/19
to john mcfetridge, Flutter Development (flutter-dev)
My problem solved without any changes in the settings especially the legacy 

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages