当我在模拟器上运行应用程序时,其运行正常。但是,当我尝试在物理设备上运行该应用程序时,显示错误:failed with exit code 1
。
这是日志:
CopySwiftLibs /用户/ alivenow /库/开发人员/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app (目标:WAStickersThirdParty) cd /用户/ alivenow /台式机/ IOS \ app / stickers-master / iOS 导出CODESIGN_ALLOCATE = / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / codesign_allocate 导出DEVELOPER_DIR = / Applications / Xcode.app / Contents / Developer 导出SDKROOT = / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS12.1.sdk 内置swtStdLibTool-复制-详细-签名D8D25B2EC12AA1D3D7CD0A6B9B9BFA88ABAC300D-扫描可执行 /用户/ alivenow /库/开发人员/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/WAStickersThirdParty --scan-folder /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks --scan-folder /用户/ alivenow /库/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/PlugIns --scan-folder /Users/alivenow/Desktop/stickers-master/iOS/WebP.framework --platform iphoneos-工具链 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks --strip-bitcode --resource-destination /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app --resource-library libswiftRemoteMirror.dylib --strip-bitcode-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Intermediates.noindex/WAStickersThirdParty.build/Debug-iphoneos/WAStickersThirdPart.Build
根据扫描的二进制文件请求的Swift ABI版本:6 libswiftDispatch.dylib是最新的 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftDispatch.dylib libswiftMetal.dylib是最新的 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftMetal.dylib libswiftCoreImage.dylib是最新的 /用户/ alivenow /库/开发人员/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftCoreImage.dylib libswiftDarwin.dylib是最新的 /用户/ alivenow /库/开发人员/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftDarwin.dylib libswiftSwiftOnoneSupport.dylib是最新的 /用户/ alivenow /库/开发人员/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftSwiftOnoneSupport.dylib libswiftCoreGraphics.dylib是最新的 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftCoreGraphics.dylib libswiftos.dylib是最新的 /用户/ alivenow /库/开发人员/ Xcode / DerivedData / WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid / Build /产品/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftos.dylib libswiftFoundation.dylib是最新的 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftFoundation.dylib是libswiftCoredy库。 /用户/ alivenow /库/开发人员/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftCore.dylib libswiftCoreFoundation.dylib是最新的 /用户/ alivenow /库/开发人员/ Xcode / DerivedData / WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid / Build /产品/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftCoreFoundation.dylib libswiftObjectiveC.dylib是最新的 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftObjectiveC.dylib是libswiftUI的更新日期。 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftUIKit.dylib libswiftQuartzCore.dylib是最新的 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftQuartzCore.dylib是libswiftRemote上的日期。 /用户/ alivenow /库/开发人员/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/libswiftRemoteMirror.dylib 探查签名 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftDispatch.dylib / usr / bin / codesign -r- --display /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftDispatch.dylib /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftDispatch.dylib: 代码对象根本没有签名
协同设计 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftDispatch.dylib / usr / bin / codesign --force --sign D8D25B2EC12AA1D3D7CD0A6B9B9BFA88ABAC300D-详细 /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftDispatch.dylib /Users/alivenow/Library/Developer/Xcode/DerivedData/WAStickersThirdParty-awzqfhzesbnkweesytfblnqvcnid/Build/Products/Debug-iphoneos/WAStickersThirdParty.app/Frameworks/libswiftDispatch.dylib: errSecInternalComponent
错误:失败,退出代码为1
答案 0 :(得分:2)
您是否尝试过使用Clean build文件夹进行清理?
组合键是:
ALT + SHIFT + COMMAND + K
OR
您的问题与开发者帐户有关
答案 1 :(得分:1)
清除DerivedData
路径:-库/开发人员/ Xcode / DerivedData
答案 2 :(得分:0)
不确定是否是这种情况,但是Xcode似乎在对您的应用程序签名后立即退出,可能与它有关。 在物理设备上构建应用程序时,您需要像在Apple Developer帐户中一样正确设置应用程序包标识符。大概可以检查一下。对于扩展名,对于贴纸也是如此。
答案 3 :(得分:0)
似乎您的代码签名配置有问题。
检查情况是否简单的一种方法是启用自动签名并从项目检查器中选择开发团队。
如果项目随后正确构建并在您的物理设备上运行。您知道这是一个代码签名配置问题,您将能够进一步调试