美文网首页
可恶的证书 | iOS开发那些坑

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

作者: 农爷 | 来源:发表于2016-04-22 19:27 被阅读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."

    解决:

    相关文章

      网友评论

          本文标题:可恶的证书 | iOS开发那些坑

          本文链接:https://www.haomeiwen.com/subject/vgsxrttx.html