Provison Profile管理及存放路径
今天更新了一下Provision Profile中的设备列表,重新下载、安装,在真机调试时报出一个Command /usr/bin/codesign failed with exit code 1的错误。
CodeSign /Users/Justinjing/Library/Developer/Xcode/DerivedData/PAChat-gmruiapdstkomzhdovxaqijjeyrt/Build/Products/Debug-iphoneos/GodTVPlay.app cd /Users/Justinjing/Desktop/project/PAChat 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: 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
从"CGDBA25FC97FA851693DEEB23A01AD91B2D00526: no identity found"来看是因为Provision Profile未找到,可能是重新安装Provision Profile出了啥问题
找到Xcode->Preferences->Accounts->Apple IDs->View Details,企图刷新Provision Profiles列表,奈何网络太慢只能放弃
之后通过访问路径"~/Library/MobileDevice/Provisioning Profiles",把所有Provision Profiles做了清理,重新安装、运行,真机调试恢复正常