大约10个月前,我创建了一个简单的游戏,只是停止了工作,但当时我可以在iPhone上构建和运行它。现在我回到它,我可以使用模拟器来构建和运行它,但是当我将iPhone连接到笔记本电脑并尝试在设备上构建和运行时,构建失败。
我也有与我的Apple ID相关的开发者许可证
iOS 12.1.4上的手机
版本10.1上的Xcode
构建失败时出现的错误如下:Screenshot of messages located right above the error code pasted below
CopySwiftLibs /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission\ Objective.app (in target: Mission Objective)
cd /Users/user/Documents/Mission\ Objective
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.1.sdk
builtin-swiftStdLibTool --copy --verbose --sign 9638951FC180A2C69D96322E2A5AB695F1F00070 --scan-executable /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission\ Objective.app/Mission\ Objective --scan-folder /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission\ Objective.app/Frameworks --scan-folder /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission\ Objective.app/PlugIns --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission\ Objective.app/Frameworks --strip-bitcode --resource-destination /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission\ Objective.app --resource-library libswiftRemoteMirror.dylib --strip-bitcode-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Intermediates.noindex/Mission\ Objective.build/Debug-iphoneos/Mission\ Objective.build/SwiftStdLibToolInputDependencies.dep
Requested Swift ABI version based on scanned binaries: 6
libswiftCoreAudio.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreAudio.dylib
libswiftCoreFoundation.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreFoundation.dylib
libswiftGameplayKit.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftGameplayKit.dylib
libswiftModelIO.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftModelIO.dylib
libswiftAVFoundation.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftAVFoundation.dylib
libswiftUIKit.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftUIKit.dylib
libswiftSceneKit.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftSceneKit.dylib
libswiftDispatch.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftDispatch.dylib
libswiftMetal.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftMetal.dylib
libswiftGLKit.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftGLKit.dylib
libswiftSpriteKit.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftSpriteKit.dylib
libswiftDarwin.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftDarwin.dylib
libswiftos.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftos.dylib
libswiftCoreImage.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreImage.dylib
libswiftCore.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCore.dylib
libswiftObjectiveC.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftObjectiveC.dylib
libswiftCoreMedia.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreMedia.dylib
libswiftsimd.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftsimd.dylib
libswiftFoundation.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftFoundation.dylib
libswiftCoreGraphics.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreGraphics.dylib
libswiftSwiftOnoneSupport.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftSwiftOnoneSupport.dylib
libswiftQuartzCore.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftQuartzCore.dylib
libswiftRemoteMirror.dylib is up to date at /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/libswiftRemoteMirror.dylib
Probing signature of /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreAudio.dylib
/usr/bin/codesign -r- --display /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreAudio.dylib
/Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreAudio.dylib: code object is not signed at all
Codesigning /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreAudio.dylib
/usr/bin/codesign --force --sign 9638951FC180A2C69D96322E2A5AB695F1F00070 --verbose /Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreAudio.dylib
/Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreAudio.dylib: errSecInternalComponent
error: Failed with exit code 1
这真是令人难以置信,我不确定如何诊断这个问题。如果有人以前见过此事,或者可以指出正确的方向,我将不胜感激。我很乐意提供您可能需要帮助的其他信息。
答案 0 :(得分:0)
似乎无法对您的代码签名。
/Users/user/Library/Developer/Xcode/DerivedData/Mission_Objective-hiufpyxwvsqqucfybrbffprxvtju/Build/Products/Debug-iphoneos/Mission Objective.app/Frameworks/libswiftCoreAudio.dylib: code object is not signed at all
检查您是否在“签名”下的项目设置中设置了团队。
答案 1 :(得分:0)
您是否尝试过在建造前进行清洁?
产品->清洁 产品->构建