New Build System fails to build a project that builds with the old system

Originator:david.w.hart
Number:rdar://33597752 Date Originated:28-Jul-2017 10:55 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Version 9.0 beta 4 (9M189t)
Classification:Serious Bug Reproducible:Always
 
Summary:
The attached project, created using a CocoaPods template, builds successfully with the old build system but fails at the CopySwiftLibs phase with the new build system.

Steps to Reproduce:
1. Download the attached project
2. Open the Workspace in the Example folder
3. Build with the old Build System
4. Build with the new Build System

Expected Results:
The new build system should build the project successfully as the old system builds it fine.

Actual Results:
The build process fails on the CopySwiftLibs command with the following output:

note: Requested Swift ABI version based on scanned binaries: 5
note: libswiftCoreGraphics.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreGraphics.dylib
note: libswiftos.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftos.dylib
note: libswiftUIKit.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftUIKit.dylib
note: libswiftCoreImage.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreImage.dylib
note: libswiftDispatch.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftDispatch.dylib
note: libswiftDarwin.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftDarwin.dylib
note: libswiftCore.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCore.dylib
note: libswiftQuartzCore.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftQuartzCore.dylib
note: libswiftCoreFoundation.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreFoundation.dylib
note: libswiftObjectiveC.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftObjectiveC.dylib
note: libswiftFoundation.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftFoundation.dylib
note: libswiftRemoteMirror.dylib is up to date at /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/libswiftRemoteMirror.dylib
note: Probing signature of /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreGraphics.dylib
note: /usr/bin/codesign -r- --display /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreGraphics.dylib
note: Codesigning /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreGraphics.dylib
note: /usr/bin/codesign --force --sign - --verbose /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreGraphics.dylib
note: /Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreGraphics.dylib: replacing existing signature
/Users/david/Library/Developer/Xcode/DerivedData/Fiber-dgohgreczbroawfizezwgivtdujm/Build/Products/Debug-iphonesimulator/Fiber_Example.app/Frameworks/libswiftCoreGraphics.dylib: cannot find code object on disk

error: Failed with exit code 1

Version:
Version 9.0 beta 4 (9M189t)

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!