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做了清理,重新安裝、運行,真機調試恢復正常


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM