SWIFT:失败,退出代码为1(为什么?)

时间:2019-06-27 21:03:04

标签: swift compiler-errors

我的应用程序已经愉快地编译了几个月,然后突然我得到了可怕的“失败,退出代码1”。我不知道我有什么改变。 CMD-SHIFT-Ks等似乎没有帮助。有什么想法吗?

错误消息显示为:(此帮助吗?)

CopySwiftLibs /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app (in target: Solar123)
    cd /Users/edward/Desktop/Solar123
    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.2.sdk
    builtin-swiftStdLibTool --copy --verbose --sign 3C33BF10C9109D7712B3EDFF83ED8164121F3378 --scan-executable /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Solar123 --scan-folder /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks --scan-folder /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/PlugIns --scan-folder /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/CoreMotion.framework --scan-folder /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/CoreLocation.framework --scan-folder /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/MapKit.framework --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks --strip-bitcode --resource-destination /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app --resource-library libswiftRemoteMirror.dylib --strip-bitcode-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Intermediates.noindex/Solar123.build/Debug-iphoneos/Solar123.build/SwiftStdLibToolInputDependencies.dep

Requested Swift ABI version based on scanned binaries: unstable(7)
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftCore.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCore.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreFoundation.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftCoreFoundation.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCoreFoundation.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftos.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftos.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftos.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftObjectiveC.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftObjectiveC.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftObjectiveC.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreImage.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftCoreImage.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCoreImage.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftUIKit.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftUIKit.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftFoundation.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftFoundation.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreGraphics.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftCoreGraphics.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCoreGraphics.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftSwiftOnoneSupport.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftSwiftOnoneSupport.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftSwiftOnoneSupport.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDispatch.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftDispatch.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftDispatch.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftQuartzCore.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftQuartzCore.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftQuartzCore.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDarwin.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftDarwin.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftDarwin.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreLocation.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCoreLocation.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreLocation.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCoreLocation.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftMetal.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/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/iphoneos/libswiftMetal.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftMetal.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftMapKit.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftMapKit.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftMapKit.dylib -r -o /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftMapKit.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftRemoteMirror.dylib to /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/libswiftRemoteMirror.dylib
Probing signature of /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCore.dylib
/usr/bin/codesign -r- --display /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCore.dylib
/Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCore.dylib: code object is not signed at all

Codesigning /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCore.dylib
/usr/bin/codesign --force --sign 3C33BF10C9109D7712B3EDFF83ED8164121F3378 --verbose /Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCore.dylib
/Users/edward/Desktop/Solar123/DerivedData/Solar123/Build/Products/Debug-iphoneos/Solar123.app/Frameworks/libswiftCore.dylib: errSecInternalComponent

error: Failed with exit code 1

0 个答案:

没有答案