[英]Why does xcode throw this error even though the profiles are set to distribute?
So I am submitting my First App. 因此,我正在提交我的第一个应用程序。 I have followed various guides and documents to the letter and managed to upload it to the itunes app store one time.
我遵循了这封信的各种指南和文件,并设法一次将其上载到itunes应用商店。 It came back as invalid binary relating to an icon path.
它以与图标路径有关的无效二进制形式返回。 Fair enough... I applied what I felt was a fix then BANG!
足够公平……我应用了我认为是修复的方法,然后砰! Everytime I tried to upload it since then it comes back with an error, this error to be exact.:
从那时起,每次我尝试上载它时,它都会返回一个错误,确切地说是这个错误。:
warning: Unable to extract codesigning entitlements from your application.
警告:无法从您的应用程序中提取代码签名权利。 Please make sure DoorStop is a valid Mach executable that's properly codesigned.
请确保DoorStop是经过正确代码签名的有效Mach可执行文件。 (-19050) /Users/jackson/Library/Developer/Xcode/DerivedData/DoorStop-gfwhzvdhgmutfhdhfmqznkcnzmak/Build/Intermediates/ArchiveIntermediates/DoorStop/InstallationBuildProductsLocation/Applications/DoorStop.app/DoorStop: invalid signature (code or signature have been modified) - (null)
(-19050)/Users/jackson/Library/Developer/Xcode/DerivedData/DoorStop-gfwhzvdhgmutfhdhfmqznkcnzmak/Build/Intermediates/ArchiveIntermediates/DoorStop/InstallationBuildProductsLocation/Applications/DoorStop.app/DoorStop:已修改签名(代码无效) (空值)
Now I have a feeling I know what your going to say, you need to make sure its signed with a distribution profile, It is. 现在我有一种感觉,我知道您要说的是什么,您需要确保它已与分发配置文件签名。 I created a new one and tried that, i deleted my developer certificate and distribution certificate from the keychain and re-added them....
我创建了一个新的并尝试过,我从钥匙串中删除了我的开发人员证书和发行证书,然后重新添加了它们。
Ok so just thought I would answer this question since I solved the problem. 好的,所以自以为解决问题以来,我以为我会回答这个问题。
On first submission I had done everything correct. 第一次提交时,我所做的一切都正确。 However in an attempt to solve the Icon Path invalid binary I got, I had changed the .plist file.
但是,为了解决我得到的图标路径无效二进制文件,我更改了.plist文件。 Since that point My App would not validate.
从那时起,我的应用将无法验证。
This is due to the fact that for some reason, Xcode had duplicated my .plist file. 这是由于以下事实:Xcode出于某种原因复制了我的.plist文件。 And was creating a new one with the new edits.
并且正在使用新的修改来创建一个新的。 To avoid this I simply removed one one .plist file and made sure that i edited the original from the Info Area of the Target, instead of doing it manually.
为了避免这种情况,我只删除了一个.plist文件,并确保我从Target的Info Area中编辑了原始文件,而不是手动进行编辑。
This avoided Xcode getting confused and the App has been successfully submitted. 这样可以避免Xcode引起混淆,并且App已成功提交。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.