可恶的证书 | iOS开发那些坑

2016-04-22  本文已影响0人  农爷

经过了上次实习的洗礼,如今面对各种报错已经心平气和了很多。整理了一下今天下午因为换证书报出的三个错误。

报错一:

Signing Identity:    "iPhone Developer: Justinjing (6ZM8N7CJE9)"

Provisioning Profile: "iOS Team Provisioning Profile: com.Justinjing.*"

(1bea6a7e-8631-486e-889e-4b062337ae5e)

/usr/bin/codesign --force --sign CGDBA25FC97FA851693DEEB23A01AD91B2D00526 --resource-rules=/Users/justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/PAChat.app/ResourceRules.plist --entitlements /Users/leeping/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Intermediates/PAChat.build/Debug-iphoneos/PAChat.build/PAChat.app.xcent /Users/justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/PAChat.app

CGDBA25FC97FA851693DEEB23A01AD91B2D00526: no identity found

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

解决:

查看Xcode下当前用的profile名字,如图:

去到目录 Users ▸ username ▸ Library▸ MobileDevice ▸ Provisioning Profiles

找到改文件并删除,重新编译运行即可成功。

报错二:

解决:

iPhone上已经装了包标识符一样的 App,删掉再运行。

报错三:

"An App ID with Identifier 'com.example.app.extention' is not available. Please enter a different string."

解决:

上一篇 下一篇

猜你喜欢

热点阅读