Swift compiling problem. High Sierra - Xcode 10.1

Hi all,

I've recently installed a fresh copy of High Sierra on a Mac Pro(black cylinder) @ work.

Updated to 10.13.6. Downloaded XCode 10.1 from my Developer account. Installed.

To check everything, I've setup a very small testapp, one button with one action performing a console print of one lined text.

I've tried to compile and 2 issues came out. Failed with exit code 1 & A Module Directory Service error has occurred

I've read many forums and advices on the internet: Lock and unlock keychain, delete certificates from keychain, xattr on the project path before clean and rebuild. I've also removed my developer account from preferences and tried to compile without. Even simple clean, reboot and rebuild but nothing changed.

If I'm remembering right, without developer account, it gives only 1 error: Failed with exit code 1

I'm stumped and unable to start coding.

I try to upload the console log if someone will be so kind to guide me in figuring out what is wrong.


Thanks in advance for any help


That's the console log:


CopySwiftLibs /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app (in target: loljj)

cd /Users/artoodeetoo/Desktop/loljj

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/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk

builtin-swiftStdLibTool --copy --verbose --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --scan-executable /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/MacOS/loljj --scan-folder /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks --scan-folder /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/PlugIns --platform macosx --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks --strip-bitcode --resource-destination /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Resources --resource-library libswiftRemoteMirror.dylib --strip-bitcode-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Intermediates.noindex/loljj.build/Debug/loljj.build/SwiftStdLibToolInputDependencies.dep


Requested Swift ABI version based on scanned binaries: 6

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftSwiftOnoneSupport.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftSwiftOnoneSupport.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftSwiftOnoneSupport.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftSwiftOnoneSupport.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftObjectiveC.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftObjectiveC.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftObjectiveC.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftObjectiveC.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftDarwin.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDarwin.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftDarwin.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDarwin.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftDispatch.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDispatch.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftDispatch.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDispatch.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftAppKit.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftAppKit.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftAppKit.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftAppKit.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftMetal.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftMetal.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftMetal.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftMetal.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCoreImage.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreImage.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCoreImage.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreImage.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftIOKit.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftIOKit.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftIOKit.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftIOKit.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftXPC.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftXPC.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftXPC.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftXPC.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCoreGraphics.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreGraphics.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCoreGraphics.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreGraphics.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCoreFoundation.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreFoundation.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCoreFoundation.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreFoundation.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCoreData.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreData.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCoreData.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreData.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftos.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftos.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftos.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftos.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCore.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCore.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftQuartzCore.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftQuartzCore.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftQuartzCore.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftQuartzCore.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftFoundation.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftFoundation.dylib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftFoundation.dylib -r -o /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftFoundation.dylib

Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftRemoteMirror.dylib to /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Resources/libswiftRemoteMirror.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftSwiftOnoneSupport.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftSwiftOnoneSupport.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftSwiftOnoneSupport.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftSwiftOnoneSupport.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftSwiftOnoneSupport.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftSwiftOnoneSupport.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftObjectiveC.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDarwin.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftAppKit.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDispatch.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreImage.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftMetal.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftIOKit.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftXPC.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreGraphics.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftObjectiveC.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreFoundation.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftos.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreData.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDarwin.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftAppKit.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDispatch.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreImage.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftMetal.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftIOKit.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftXPC.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreGraphics.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreFoundation.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftos.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreData.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftObjectiveC.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftObjectiveC.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreData.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreData.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreFoundation.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreFoundation.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftos.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftos.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDarwin.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDarwin.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftIOKit.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreGraphics.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftIOKit.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftXPC.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreGraphics.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftXPC.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftMetal.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDispatch.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftAppKit.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftMetal.dylib

Codesigning /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreImage.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDispatch.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftAppKit.dylib

/usr/bin/codesign --force --sign 3D80D9436F6C18820A00D4FBED49AA53C798979F --verbose /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreImage.dylib

error: A Module Directory Service error has occurred.


error: A Module Directory Service error has occurred.


error: A Module Directory Service error has occurred.


error: A Module Directory Service error has occurred.


Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftObjectiveC.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftObjectiveC.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDarwin.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDarwin.dylib

error: A Module Directory Service error has occurred.


Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreGraphics.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreGraphics.dylib

error: A Module Directory Service error has occurred.


error: A Module Directory Service error has occurred.


Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDispatch.dylib

Probing signature of /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreImage.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftDispatch.dylib

/usr/bin/codesign -r- --display /Users/artoodeetoo/Library/Developer/Xcode/DerivedData/loljj-bplaqeqfwvqlcrcfveuuunpmzsqv/Build/Products/Debug/loljj.app/Contents/Frameworks/libswiftCoreImage.dylib

error: Failed with exit code 1

Accepted Reply

This thread has been deleted

I've tried almost anything without success so I've decided to wipe the disk and start again.

This time I've installed High Sierra, update to latest version and immediately install Xcode. This time version 9.4.1.

It worked.

One thing i've done differently is that I've used my work Apple ID to install and update and then disabled it before installing Xcode.

Then I've used my Personal Developer Apple ID to login inside of Xcode and generate the necessary keys.

Until now, after installing all the other softwares, all seems to work just fine.

Thanks to KMT and Claude31 for the help

Replies

With such a simple project, error is to look to the installed software.


OSX 10.13.6 is already a bit old. When you say "install a fresh copy", how did you perform the install ? From Appstore ?

Did you consider upgrading to Mojave (10.14.6) ?


You could also consider upgrading to XCode 11.1.

Thanks for the answer.

I cannot install mojave due to incompatibility with other software I need. I think that I cannot install 11.1 unless install Mojave, is it right?

High Sierra installed from the downloaded Apple Store copy via createinstallmedia on a USB HD. Clean install no update. No error during installation. No warez/pirated software.

XCode 10.1 downloaded from download page of my Developer account. Double click on the .xip file and copy in the Application folder.

Double click to open, create the file and that's it.

Is there any way to reset everything without reformat and install again?

The following are errors in console after build:


default13:57:21.844786 +0200codesignCSSM Exception: -2147409622 CSSMERR_TP_NOT_TRUSTED
default13:57:21.846750 +0200codesignCSSM Exception: -2147409622 CSSMERR_TP_NOT_TRUSTED
default13:57:21.848536 +0200codesign
default13:57:21.850140 +0200codesignCSSM Exception: -2147409622 CSSMERR_TP_NOT_TRUSTED
default13:57:21.851989 +0200codesignCSSM Exception: -2147409622 CSSMERR_TP_NOT_TRUSTED
default13:57:21.853564 +0200codesign
default13:57:21.916412 +0200codesignCSSM Exception: -2147415780 CSSMERR_CSP_INVALID_KEYATTR_MASK
default13:57:21.945478 +0200codesignMacOS error: -67061

Are you working with macOS on a VM?


Did you install Xcode to /Applications?


Did you rename Xcode?


How much free space on your main drive?


How many versions Xcode are installed?


Is that project configured for legacy or new build system? Did you try both, after performing a clean build folder?


Do you have a paid and current Developer Program account or are you attempting to work with Xcode's 'free provisioning'?


Also, in the future, please do not include an entire crash dump in your comment unless requested, the first couple dozen lines are often sufficient, thanks. If you can edit your original comment that would be great. Use the 'Action' button top right.