ios - 构建 iOS 应用程序时如何解决此代码签名错误?
问题描述
CopySwiftLibs /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app(目标:testtt) cd /Users/admin/Desktop/desktop/projects/testtt 导出 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 builtin-swiftStdLibTool --copy --verbose --sign 24177DC0179155D95B9619ABA2C4EEE5017D157F --scan-executable /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/testtt --扫描文件夹 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks --scan-folder /Users/admin/Library/Developer/Xcode/DerivedData /testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/PlugIns --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/admin/Library /开发人员/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt。app/Frameworks --strip-bitcode --resource-destination /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app --resource-library libswiftRemoteMirror.dylib - -strip-bitcode-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/admin/Library/Developer/Xcode/DerivedData/testtt- crjmujkhpfhokjabtvhimrwqyhod/Build/Intermediates.noindex/testtt.build/Debug-iphoneos/testtt.build/SwiftStdLibToolInputDependencies.depxctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Intermediates.noindex/testtt.build/Debug-iphoneos/testtt.build/SwiftStdLibToolInputDependencies .depxctoolchain/usr/bin/bitcode_strip --emit-dependency-info /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Intermediates.noindex/testtt.build/Debug-iphoneos/testtt.build/SwiftStdLibToolInputDependencies .dep 基于扫描的二进制文件请求的 Swift ABI 版本:6 libswiftCoreGraphics.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreGraphics.dylib 是最新的 libswiftCoreImage.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreImage.dylib 是最新的 libswiftFoundation.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftFoundation.dylib 是最新的 libswiftDarwin.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftDarwin.dylib 是最新的 libswiftUIKit.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftUIKit.dylib 是最新的 libswiftos.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftos.dylib 是最新的 libswiftObjectiveC.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftObjectiveC.dylib 是最新的 libswiftQuartzCore.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftQuartzCore.dylib 是最新的 libswiftCoreFoundation.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreFoundation.dylib 是最新的 libswiftDispatch.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftDispatch.dylib 是最新的 libswiftCore.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCore.dylib 是最新的 libswiftMetal.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftMetal.dylib 是最新的 libswiftRemoteMirror.dylib 在 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/libswiftRemoteMirror.dylib 是最新的 /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreGraphics.dylib 的探测签名 /usr/bin/codesign -r- --display /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreGraphics.dylib /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreGraphics.dylib:代码对象根本没有签名 协同设计/Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreGraphics.dylib /usr/bin/codesign --force --sign 24177DC0179155D95B9619ABA2C4EEE5017D157F --verbose /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreGraphics.dylib /Users/admin/Library/Developer/Xcode/DerivedData/testtt-crjmujkhpfhokjabtvhimrwqyhod/Build/Products/Debug-iphoneos/testtt.app/Frameworks/libswiftCoreGraphics.dylib:errSecInternalComponent 错误:失败,退出代码为 1
解决方案
您必须加入 Apple 的付费开发者计划才能在物理设备上运行应用程序。升级到开发人员许可证并重新加载您的证书。
推荐阅读
- javascript - 在 Flask 和 Javascript 中禁用和启用按钮
- java - 添加字符串时,我在 MediaType OkHttp3 中得到 null
- javascript - 为什么 body.onfocus 触发而不是 body.addEventListener('focus')?
- kotlin - 使用 gradle 从 jar 中排除类
- ruby-on-rails - OneLogin SAML 身份验证后的 Web 重定向
- vue.js - _vm.arr[0] 未定义 Vue.js, Nuxt
- java - 考虑到夏令时,如何获得实时时区偏移?
- wordpress - 如何从 WordPress 帖子图像生成 PDF?
- java - 从 getter setter 传递值
- excel - 如何解决自定义排序运行时错误 1004