即使配置文件设置为分发,为什么 xcode 仍会抛出此错误? [英] Why does xcode throw this error even though the profiles are set to distribute?

查看:32
本文介绍了即使配置文件设置为分发,为什么 xcode 仍会抛出此错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我要提交我的第一个应用程序.我遵循了这封信的各种指南和文档,并设法将其上传到 iTunes 应用商店一次.它作为与图标路径相关的无效二进制文件返回.很公平......我应用了我觉得是修复然后BANG!从那以后每次我尝试上传它都会返回一个错误,确切地说是这个错误.:

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. 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.:

警告:无法从您的应用.请确保 DoorStop 是有效的 Mach 可执行文件这是正确的代码设计.(-19050)/Users/jackson/Library/Developer/Xcode/DerivedData/DoorStop-gfwhzvdhgmutfhdhfmqznkcnzmak/Build/Intermediates/ArchiveIntermediates/DoorStop/InstallationBuildProductsLocation/Applications/DoorStop.app/DoorStop:无效签名(代码或签名已被修改)- (空)

warning: Unable to extract codesigning entitlements from your application. Please make sure DoorStop is a valid Mach executable that's properly codesigned. (-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)

现在我有一种感觉,我知道你要说什么,你需要确保它带有分发配置文件,它是.我创建了一个新的并尝试过,我从钥匙串中删除了我的开发者证书和分发证书并重新添加了它们....

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.

在第一次提交时,我所做的一切都是正确的.但是,为了解决我得到的 Icon Path invalid binary,我更改了 .plist 文件.从那时起,我的应用程序将无法验证.

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. Since that point My App would not validate.

这是由于某种原因,Xcode 复制了我的 .plist 文件.并且正在使用新的编辑创建一个新的.为了避免这种情况,我简单地删除了一个 .plist 文件,并确保我从目标的信息区域编辑了原始文件,而不是手动进行.

This is due to the fact that for some reason, Xcode had duplicated my .plist file. 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.

这样就避免了 Xcode 混淆,App 已经成功提交.:)

This avoided Xcode getting confused and the App has been successfully submitted. :)

这篇关于即使配置文件设置为分发,为什么 xcode 仍会抛出此错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆