componentkit icon indicating copy to clipboard operation
componentkit copied to clipboard

Support new build system

Open leavez opened this issue 6 years ago • 1 comments

when using the new build system in Xcode, which is default for xcode 10, it has an build error

error: Multiple commands produce '/Users/AAA/Library/Developer/Xcode/DerivedData/CKTableViewTransactionalDataSource-hfnosmzcdvuxuaanjgxnwmxagvqk/Build/Products/Debug-iphonesimulator/ComponentKit/ComponentKit.framework/Info.plist':
1) Target 'ComponentKit' (project 'Pods') has copy command from '/Users/AAA/pp/CKTableViewTransactionalDataSource/Example/Pods/ComponentKit/ComponentKit/Info.plist' to '/Users/AAA/Library/Developer/Xcode/DerivedData/CKTableViewTransactionalDataSource-hfnosmzcdvuxuaanjgxnwmxagvqk/Build/Products/Debug-iphonesimulator/ComponentKit/ComponentKit.framework/Info.plist'
2) Target 'ComponentKit' (project 'Pods') has process command with output '/Users/AAA/Library/Developer/Xcode/DerivedData/CKTableViewTransactionalDataSource-hfnosmzcdvuxuaanjgxnwmxagvqk/Build/Products/Debug-iphonesimulator/ComponentKit/ComponentKit.framework/Info.plist'

It's because the new build system cannot allow the info.plist being into 'Compile Sources'. In the podfile, the following could lead this problem. We should exclude the info.plist form source_files

 s.source_files = 'ComponentKit/**/*', 'ComponentTextKit/**/*'

leavez avatar Oct 22 '18 16:10 leavez

Great! Thanks for submitting this issue! I will take a look at it!

alickbass avatar Oct 23 '18 09:10 alickbass