2012年4月5日 星期四

iOS app validate Error

App 在開發的最後階段就是要用 Distribute Provision 來將 App 編譯成可以發佈的二進位碼。但在過程當中遇到了一個難解的問題。

error: Codesign check fails : /var/folders/7v/g9yf0z9w8vl5l1f_dn8f6_gc0000gn/T/jK3H6qVC8k/Payload/Immuno.app: valid on disk
/var/folders/7v/g9yf0z9w8vl5l1f_dn8f6_gc0000gn/T/jK3H6qVC8k/Payload/Immuno.app: satisfies its Designated Requirement
test-requirement: code failed to satisfy specified code requirement(s)



在編譯的過程中一切順利,但這個訊息一直出現在要用 Organizer 檢查 App 的合法性時一直出現。


後來在 Apple 的 Developer Forum 上找到了 解法


原來是在開發的過程當中使用了許多的 Provision 跟 憑證。而 Xcode 會自動的將他們記下來。只不過Xcode 記錯了。所以就是要將原先的憑證 及 provision 都清理乾淨。才能夠  Build 出可以正確認證的 Binary Code.