问题
I am wondering if there is a way to exclude your Pods in a Swift 4, Xcode 9 project when performing a Product -> Clean operation.
In rare cases when I try to build I get errors like
file too small for architecture x86_64
Easiest way to fix this is doing a full clean, according to this question.
This works, but when I have a lot of Pods included in my project, cleaning and rebuilding takes forever. Therefore the question if the Pods can be excluded from being cleaned to save some time.
回答1:
Menu: Product->Scheme->Manage Schemas (way at bottom)
Choose your product target and then click the "Edit..." button at the bottom left.
Select "Build" from left section
Then uncheck the "Find Implicit dependencies" checkbox in the top section.
来源:https://stackoverflow.com/questions/48564548/exclude-pods-when-cleaning-xcode-9-project