近几天打包公司的项目,上传出现ERROR ITMS-90035错误,因为前两天都上传更新过一次,这次小改动,xcode也没有更新,怎么突然出现这个问题,顿时懵逼.
具体报错如下:
ERROR ITMS-90035: "Invalid Signature. Code object is not signed at all. The file at path [**************.app/Frameworks/RevealServer.framework/Scripts/copy_and_codesign_revealserver.sh] is not properly signed.
Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate.
确保您已经用分发证书签署了您的应用程序,而不是一个临时证书或开发证书。
Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level).
验证Xcode中的代码签名设置在目标级别是正确的(在项目级别覆盖任何值)
Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target.
另外,确保您正在上传的包是在Xcode中使用发布目标构建的,而不是模拟器目标。
If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target.
如果您确定您的代码签名设置是正确的,请在Xcode中选择“Clean All”,删除Finder中的“build”目录,并重新构建您的发布目标。
按照官方的提示,检查了证书以及打包都没问题,多次尝试删除后重新构建仍是如此.没有办法,只有找度娘去.
果不其然,有此遭遇的确有很多.
很多都是需要工程目录中的".sh"文件,满怀期待进入[**************.app/Frameworks/RevealServer.framework/Scripts/copy_and_codesign_revealserver.sh]中删掉.sh文件,运行,直接崩了,这个行不通.
当时我的工程目录是这样的:
.sh文件就在ReveralServer.framework文件中(这个项目前期是外包给私人的,文件目录乱七八糟的,一直在慢慢整理),网上有提示这个项目目录乱七八糟,要将一些非编译文件移到非根目录下,试了一下,将这几个framework移至thirdProject中,然后在Build Phases的Link Binary With Libraries中重新添加下.运行没有问题,然后打包验证上传都没有问题.困扰多天的问题就这样解决了,mmp.
网友评论