google / EarlGrey

:tea: iOS UI Automation Test Framework
http://google.github.io/EarlGrey/
Apache License 2.0
5.61k stars 740 forks source link

New build system Errors - Earl Grey #740

Open badrinathvm opened 6 years ago

badrinathvm commented 6 years ago

Hello,

I have three targets which copies the Earl Grey as part of Copy phase , On building this on new build system , Xcode 10 beta 5 throws below error.

Should we remove copy phase from remaining two of them ?

Showing All Messages :-1: Multiple commands produce '/Users/bvenkatnarayansetty/Library/Developer/Xcode/DerivedData/Lightning-bqwglibfxszbzcbfqlsqwrftorbm/Build/Products/Debug-iphonesimulator/Evernote.app/EarlGrey.framework':

1) Target 'XXXUITests' has copy command from '/Users/bvenkatnarayansetty/Library/Developer/Xcode/DerivedData/Lightning-bqwglibfxszbzcbfqlsqwrftorbm/Build/Products/Debug-iphonesimulator/EarlGrey.framework' to '/Users/bvenkatnarayansetty/Library/Developer/Xcode/DerivedData/Lightning-bqwglibfxszbzcbfqlsqwrftorbm/Build/Products/Debug-iphonesimulator/XXX.app/EarlGrey.framework' 2) Target 'XXXUIFLETests' has copy command from '/Users/bvenkatnarayansetty/Library/Developer/Xcode/DerivedData/Lightning-bqwglibfxszbzcbfqlsqwrftorbm/Build/Products/Debug-iphonesimulator/EarlGrey.framework' to '/Users/bvenkatnarayansetty/Library/Developer/Xcode/DerivedData/Lightning-bqwglibfxszbzcbfqlsqwrftorbm/Build/Products/Debug-iphonesimulator/XXX.app/EarlGrey.framework' 3) Target 'XXXUIEditorTests' has copy command from '/Users/bvenkatnarayansetty/Library/Developer/Xcode/DerivedData/Lightning-bqwglibfxszbzcbfqlsqwrftorbm/Build/Products/Debug-iphonesimulator/EarlGrey.framework' to

'/Users/bvenkatnarayansetty/Library/Developer/Xcode/DerivedData/Lightning-bqwglibfxszbzcbfqlsqwrftorbm/Build/Products/Debug-iphonesimulator/XXX.app/EarlGrey.framework'

tirodkar commented 6 years ago

Yeah, we use the Copy Files Build Phase to embed EarlGrey into the app under test. Can you tell me how this is done with the new build system and we could check this?

badrinathvm commented 6 years ago

We have three schemes x1Tests.scheme X2EditorTests.scheme X3FLETests.scheme

Each of these schemes has copy phase which will work perfectly in Legacy Build

However with New build system this is kind of duplication and xcode doesn't allow this, so should we remove from this from other two targets ??? On removing will it work as expected ??

tirodkar commented 6 years ago

Copy Phases are related to your Target's Build Phases and not necessarily to the schemes. Is there any new change for embedding frameworks that has been added to the Build system? I'll have to take a look in a bit.

badrinathvm commented 6 years ago

what i think is we just need to add it once, so that respective targets will pick up. I am also investigating where to add it.

tirodkar commented 5 years ago

@badrinathvm were there any updates here?