加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – XCode代码siging错误XCTest

发布时间:2020-12-14 17:43:06 所属栏目:百科 来源:网络整理
导读:当我尝试在模拟器上运行我的应用程序时,一切正常.但是当我尝试构建它以在真实设备上测试它时,我收到以下错误: CodeSign /Users/fvoordeckers/Library/Developer/Xcode/DerivedData/MyProject-##########/Build/Products/Debug-iphoneos/MyProject.xctestcd
当我尝试在模拟器上运行我的应用程序时,一切正常.但是当我尝试构建它以在真实设备上测试它时,我收到以下错误:

CodeSign /Users/fvoordeckers/Library/Developer/Xcode/DerivedData/MyProject-##########/Build/Products/Debug-iphoneos/MyProject.xctest
cd /Users/fvoordeckers/Documents/Projecten/MyProject/iOS
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer: Frederik (########)"

/usr/bin/codesign --force --sign ##################/Users/fvoordeckers/Library/Developer/Xcode/DerivedData/MyProject-##########/Build/Products/Debug-iphoneos/MyProject.xctest

/Users/fvoordeckers/Library/Developer/Xcode/DerivedData/MyProject-##########/Build/Products/Debug-iphoneos/MyProject.xctest: bundle format unrecognized,invalid,or unsuitable

Command /usr/bin/codesign failed with exit code 1

我用#更改了ID.我创建了一个配置文件,其中包括我正在使用的设备以及所需的证书.它似乎没有应用程序的问题,但使用xctest …我也尝试在签名配置中添加’–deep’标志,但它没有帮助…

解决方法

转到xcode中的Edit Scheme – >在Build Target中 – >完全删除MyProject.xctest或取消选中MyProject.xctest Analyze,Test等的所有框.

清理项目,然后在设备上运行.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读