I have some code that is about a year old that used to work. I can no longer build the project. I am using Xcode 10.
The error appears in the block
"copying swift standard libraries"
It says: libswiftMetal.dylib: code object is not signed at all
I am using automatic code signing.
Here is the output:
CopySwiftLibs /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app (in target: IsPrime)
cd /Users/betten/DEV.18/iOS/ANTON/IsPrime
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk
builtin-swiftStdLibTool --copy --verbose --sign 83F30FCA689D3636D925B74C4EF7FD6E98864CAA --scan-executable /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/IsPrime --scan-folder /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks --scan-folder /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/PlugIns --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks --strip-bitcode --resource-destination /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app --resource-library libswiftRemoteMirror.dylib --strip-bitcode-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Intermediates.noindex/IsPrime.build/Debug-iphoneos/IsPrime.build/SwiftStdLibToolInputDependencies.dep
Requested Swift ABI version based on scanned binaries: 6
libswiftMetal.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftMetal.dylib
libswiftQuartzCore.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftQuartzCore.dylib
libswiftUIKit.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftUIKit.dylib
libswiftCoreFoundation.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftCoreFoundation.dylib
libswiftCoreImage.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftCoreImage.dylib
libswiftFoundation.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftFoundation.dylib
libswiftDispatch.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftDispatch.dylib
libswiftObjectiveC.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftObjectiveC.dylib
libswiftDarwin.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftDarwin.dylib
libswiftCore.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftCore.dylib
libswiftSwiftOnoneSupport.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftSwiftOnoneSupport.dylib
libswiftos.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftos.dylib
libswiftCoreGraphics.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftCoreGraphics.dylib
libswiftRemoteMirror.dylib is up to date at /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/libswiftRemoteMirror.dylib
Probing signature of /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftMetal.dylib
/usr/bin/codesign -r- --display /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftMetal.dylib
/Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftMetal.dylib: code object is not signed at all
Codesigning /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftMetal.dylib
/usr/bin/codesign --force --sign 83F30FCA689D3636D925B74C4EF7FD6E98864CAA --verbose /Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftMetal.dylib
/Users/betten/Library/Developer/Xcode/DerivedData/IsPrime-coukjhqgswmqsbbmmsadqdscuugp/Build/Products/Debug-iphoneos/IsPrime.app/Frameworks/libswiftMetal.dylib: errSecInternalComponent
error: Failed with exit code 1