简体   繁体   English

Xcode 5存档错误

[英]Xcode 5 archive error

I am trying to use xcode 5 to archive an ios app so i can release it to the app store. 我正在尝试使用xcode 5存档ios应用程序,以便可以将其发布到应用程序商店。 I have the provisioning profiles and certificates to do so but when I go to archive my app, I receive the following error: 我有提供配置文件和证书的方法,但是当我存档应用程序时,出现以下错误:
Command/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 Command / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / clang失败,退出代码为1
When I pushed the drop down xcode gives me a lot of info about the error that mentions the archive and the architectures (armv7 for example) and the error ends with .pch 当我按下下拉菜单时,xcode为我提供了有关该错误的大量信息,其中提到了存档和体系结构(例如armv7),并且该错误以.pch结尾
Does anyone know how to fix this? 有谁知道如何解决这一问题? I looked at it on another form and that told me to delete armv7s so I did that and that deleted two errors but on remains. 我以另一种形式查看了它,并告诉我删除armv7s,所以我这样做了,并删除了两个错误,但仍然存在。 Any help would be grealy appreciated. 任何帮助将不胜感激。 This is my first app and I am an objective-c, xcode and ios beginner. 这是我的第一个应用程序,我是Objective-c,xcode和ios的初学者。 Thanks for your help. 谢谢你的帮助。 I really appreciate it. 我真的很感激。

在标题搜索路径中添加“ $(BUILT_PRODUCTS_DIR)”,这有望解决您的问题。

I had to fix this by setting "build active only architectures" to "no". 我必须通过将“仅构建活动架构”设置为“否”来解决此问题。 I set architectures to "Standard Architectures". 我将架构设置为“标准架构”。 I downloaded a distribution provisioning profile from the ios developer center and then set all of the bundle id's and app id's to match each other. 我从ios开发人员中心下载了发行设置配置文件,然后将所有捆绑软件ID和应用程序ID设置为相互匹配。 I made sure I had no missing files. 我确保我没有丢失的文件。 I then archived the app (make sure the run option is set to "ios device") and added icons (must be .png) and validated it. 然后,我存档了该应用程序(确保将运行选项设置为“ ios设备”),并添加了图标(必须为.png)并对其进行了验证。 I then distributed it to the app store. 然后,我将其分发到应用商店。 This avoids this problem and any other problem that you may encounter during the distribution process. 这样可以避免此问题以及分发过程中可能遇到的任何其他问题。 I'm sincerly grateful for all of your help. 衷心感谢您的帮助。 Thank you. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM