我有一個App正在提交給Mac App Store。它的代碼標誌,沒有任何問題,產生了pkg文件如預期...Mac App Store已損壞錯誤信息
codesign -s "$app_cert" -f "$app_name.app"
codesign -d -vvvv "$app_name.app"
productbuild --component "$app_name.app" /Applications --sign "$installer_cert" "$app_name.pkg"
...一切似乎很好地工作,沒有錯誤,一切正常確定。然後我測試安裝應用程序使用以下...
sudo installer -store -pkg MyApp.pkg -target/
... everthing似乎行。然後雙擊我的應用程序文件夾中的應用程序,它會要求我輸入我的iTunes帳戶信息。我用我在iTunes Connect設置測試用戶帳戶,然後我得到這個錯誤:
"MyApp" is damaged and can’t be opened. Delete "MyApp" and download it again from the App Store.
什麼是真正奇怪的是,這是一個更新MyApp的。我第一次提交時,一切正常。只是現在我看到了這個問題,但我無法弄清楚什麼是錯的。控制檯日誌中沒有錯誤。
我已經檢查了三倍,並且我的整個驅動器上沒有其他MyApp.app,因爲這已知會導致問題。
任何人都知道發生了什麼事?我已經辭職並將這個應用程序打包了10次,沒有任何改變。我試過從幾個不同的機器安裝,同樣的錯誤。自從發現最初的提交以來,我的構建環境中沒有任何重大變化。