【发布时间】:2015-03-24 20:42:30
【问题描述】:
我目前正在向 Apple 商店提交我的第一个应用程序。 我已经完成了以下流程
- 获得开发者帐号
- 登录会员中心创建App ID
- 使用钥匙串访问请求和接收分发证书
- 使用我的 ID 和证书获得了配置文件
当我构建应用程序时,它可以在应用程序模拟器和实际 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 项目,但我认为这也可能是我的错误的根源。
有人,可以帮忙吗?
【问题讨论】:
-
您是否已将帐户添加到
Xcode->Preferences->Accounts? -
@DatDaoVan 在尝试解决了整整两天之后,这最终使它对我有用。谢谢!
标签: ios objective-c xcode codesign xcode-archive