简体   繁体   English

即使配置文件设置为可分发,为什么xcode也会引发此错误?

[英]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.

相关问题 为什么 [[NSError alloc] init]; 在 Xcode 中抛出错误? - Why does [[NSError alloc] init]; in Xcode throw an error? 当我将.repeatsForever() 添加到 animation 时,为什么 Xcode 会引发错误? - Why does Xcode throw an error when I add .repeatsForever() to an animation? 为什么我的 Xcode 编译器告诉我我使用的是值类型,即使我使用的是类? - Why does my Xcode compiler tell me I use a value type even though I use classes? 即使存在密钥,证书和配置文件且标识符匹配,Xcode也会使代码签名失败 - Xcode fails codesigning even though keys, certs and profiles are present and identifiers match up 使用XCode 4.5.1分发时出错 - Error in distribute with XCode 4.5.1 即使XCode,Xamarin Studio也无法识别iOS设备 - Xamarin Studio does not recognize iOS device even though XCode does 即使我在NSDateFormatter上设置了时区,为什么stringFromDate NSString仍然具有GMT时间? - Why does stringFromDate NSString still have GMT time even though I set timezone on the NSDateFormatter? xcodebuild代码签署错误配置配置文件,即使所有配置文件都在正确的文件夹中 - xcodebuild code sign error provisioning profile even though all profiles are in correct folder Xcode 6:“模拟器正在使用”错误显示即使模拟器未使用 - Xcode 6: “Simulator in Use” error shows even though the simulator is NOT in use Xcode 错误:即使设备未被密码锁定,_shouldMakeReadyForDevelopment 检查也失败 - Xcode Error: Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM