我目前正在向 Apple 商店提交我的第一个应用程序。 我已经完成了以下流程
当我构建应用程序时,它可以在应用程序模拟器和实际 ipad 上完美运行,但是当我在 iOS 设备上将应用程序切换到 Archive
时,我遇到了一个重大的代码符号错误附在下面。
codesign /Users/Gaby/Library/Developer/Xcode/DerivedData/RoyalAppInspection-dthvtpxadkslqmhkwdpaqkyujscg/Build/Products/Debug-iphoneos/RoyalAppInspection.app
cd /Users/Gaby/Desktop/RoyalAppInspection
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
/usr/bin/codesign --force --sign 79640A11C8D22589BD337496ABB8443581513846 --entitlements /Users/Gaby/Library/Developer/Xcode/DerivedData/RoyalAppInspection-dthvtpxadkslqmhkwdpaqkyujscg/Build/Intermediates/RoyalAppInspection.build/Debug-iphoneos/RoyalAppInspection.build/RoyalAppInspection.app.xcent /Users/Gaby/Library/Developer/Xcode/DerivedData/RoyalAppInspection-dthvtpxadkslqmhkwdpaqkyujscg/Build/Products/Debug-iphoneos/RoyalAppInspection.app
79640A11C8D22589BD337496ABB8443581513846: no identity found Command /usr/bin/codesign failed with exit code 1
我不知道该怎么做才能解决这个问题,因为我已尝试确保该过程的所有其他方面都已正确完成。
我确实担心的一个问题是,当我单击配置文件时它不会打开并且不会弹出“添加到库”(由于某种原因我无法访问 iphone 配置实用程序。)我手动添加了 .mobileprovision 文件到我的 xcode 项目,但我认为这也可能是我的错误的根源。
有人,可以帮忙吗?
最佳答案
以下步骤为我解决了这个问题。我遇到的问题是它没有为设备编译或存档,在模拟器上工作正常。
完成上述步骤后进行清理和构建,现在一切正常。
https://stackoverflow.com/questions/29242485/