App for Mac App Store doesn't run when signed

不打扰是莪最后的温柔 提交于 2019-12-12 17:20:36

问题


I'm new to development for Mac App Store and I'm trying to test my first signed app in development environment (just before get into the mess of receipt validation !).

I went through the following steps:

1) I created 3 certificates

  • a) Mac App
  • b) Mac Installer
  • c) Development (If I don't create this certificate, I can't create the development provisioning profile at next point 4)

2) I created an App ID

3) I registered my systems

4) I created Development Provisioning Profile

5) I installed the profile on my iMac

6) I loaded the profile into Xcode

7) I set the Code Sign Identity of my project to: Mac Developer (corresponding to the Development Certificate created at point 1.c)

8) I set the Code Sign Identity of my target to: Mac Developer (corresponding to the Development Certificate created at point 1.c)

9) I built for running

10) I located the app in finder and clicked on it

11) The icon bounces some times and then the app quits

12) The console shows the following messages

Sep 17 10:07:41 Fabrizio-Bocos-iMac taskgated-helper[3186]: Starting taskgated-helper
Sep 17 10:07:42 Fabrizio-Bocos-iMac sandboxd[3187] ([3186]): taskgated-helper(3186) deny file-read-metadata /private/var/db/DetachedSignatures
Sep 17 10:07:42 Fabrizio-Bocos-iMac sandboxd[3187] ([3186]): taskgated-helper(3186) deny file-read-data /private/var/db/DetachedSignatures
Sep 17 10:07:42 Fabrizio-Bocos-iMac sandboxd[3187] ([3186]): taskgated-helper(3186) deny file-read-data /Library/Keychains/System.keychain
Sep 17 10:07:42: --- last message repeated 1 time ---
Sep 17 10:07:42 Fabrizio-Bocos-iMac sandboxd[3187] ([3186]): taskgated-helper(3186) deny mach-lookup com.apple.ocspd
Sep 17 10:07:42: --- last message repeated 3 times ---
Sep 17 10:07:42 Fabrizio-Bocos-iMac sandboxd[3187] ([3186]): taskgated-helper(3186) deny file-read-data /Library/Keychains/System.keychain
Sep 17 10:07:42: --- last message repeated 3 times ---
Sep 17 10:07:42 Fabrizio-Bocos-iMac com.apple.launchd.peruser.501[218] ([0x0-0xe80e8].fabrizio.boco.circuitlab[3183]): Exited: Killed: 9
Sep 17 10:07:42 Fabrizio-Bocos-iMac sandboxd[3187] ([3186]): taskgated-helper(3186) deny file-read-data /Library/Keychains/System.keychain

I have googled the messages without a definitive answer.

I have tried the same procedure on a different system (both with Lion 10.7.1 and Xcode 4.1) with the same results

I have deleted and recreated the certificates and the development profile, same result.

Can anyone provide any help ?

Thank you very much in advance.


回答1:


Updating to 10.7.2 resolved this issue for me.




回答2:


I have the same issue, but I also have OSX 10.7.2, and XCode 4.2. When I sign the app with the developer profile I created, the app won't launch, though XCode says that it is running the app. Did you by any chance do something else besides updating your OS?

Thanks



来源:https://stackoverflow.com/questions/7453511/app-for-mac-app-store-doesnt-run-when-signed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!