iphone - Automatically Clean a target before building in XCode -


I try to automate my UI testing. I have several goals that are linked to different frameworks. The issue is that I have to clear my goal before making them. If not, it seems that it loads unwanted frameworks (and thus unexpected behavior occurs), so I would like to know that by setting an option using a script, one of the first to clear the target (s) before the building The method is ...

I tried to use

  xcodebuild clean   

but me

Accession failure occurs in / SourceCache / DevToolsBase / DevToolsBase-1763 / pbxcore / Target.subproj

"text ">

You can force the top-level project to remove the build directory and rebuild it from scratch such as RM-RF Build . This can be enough for your needs.

Otherwise, upgrade to the latest version of XCode, and if unsuccessful, submit a bug report.

Comments