Mac OS X app crash with Code Signature Invalid error

蓝咒 提交于 2019-11-30 08:20:39

You may not have a problem at all. Read: Technical Q&A QA1884 Testing Distribution Builds of Mac Apps

According to this you are not supposed to be able to create installer packages on your own. You are to make a package and check it via the terminal but it WILL NOT WORK.

By the way there is an error in this tech report. You may have to include the path to the app in the sudo installer -store -pkg Sample.pkg -target / it should be: sudo installer -store -pkg /user/yourname/desktop/Sample.pkg -target

this example assumes your installer.pkg is on the desktop

If you get all passes then you are good.

Drove me crazy too as the last app I uploaded in June the pkg just installed without a problem and the app it installed worked.

Do you build this as a beta version which can only run on certain devices? I encountered this exact error when I got a new Mac and forgot to install my beta tester certificates.

I also had some trouble when configuring my profiles. When I found the configuration that worked, I created this screenshot, so that I won’t forget. Maybe it helps:

Edit: Also make sure to codesign all frameworks that you are compiling yourself. Each framework has to be signed seperately.

I had this problem but luckily I had two apps -- one that worked and one that didn't. Eventually, this one single change fixed it for me:

BAD:

Provisioning Profile: MacTeam Provisioning Profile: <the app's bundle id>

GOOD:

Provisioning Profile: Automatic

I guess the profile is not valid when sending the app to people directly. Automatic works fine for sending to people and for sending to app store though.

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