简体   繁体   English

XCode存档phonegap铛错误254

[英]XCode archive phonegap clang error 254

I am developing phonegap app for ios. 我正在为iOS开发phonegap应用。 So far I've been successfuly archiving app inside XCode but today when I press archive I got compile error and this error message: 到目前为止,我一直在XCode内成功归档应用程序,但是今天当我按存档时,出现编译错误和以下错误消息:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/vg/zd7k0cs933774p44qtb7vmy00000gn/T/CDVViewController-a16940.m
clang: note: diagnostic msg: /var/folders/vg/zd7k0cs933774p44qtb7vmy00000gn/T/CDVViewController-a16940.sh
clang: note: diagnostic msg:

************
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254

I can't build revision that I build day before so there should be problem in source code. 我无法建立前一天创建的修订,因此源代码中应该有问题。

  • Product -> Run (simulator) : WORKS 产品->运行(模拟器):作品
  • Product -> Build For -> Testing : WORKS 产品->构建->测试:作品
  • Product -> Build For -> Running : WORKS 产品->构建->运行中:工作
  • Product -> Build For -> Profiling : ERROR 产品->构建->分析:错误
  • Product -> Archive : ERROR 产品->存档:错误

XCode 5.1.1 Phonegap 3.5.0-0.21.14 Cordova 3.5.0-0.2.7 XCode 5.1.1 Phonegap 3.5.0-0.21.14 Cordova 3.5.0-0.2.7

try to use this steps 尝试使用此步骤

  1. Select your Project icon. 选择您的项目图标。

  2. Choose Build Settings. 选择构建设置。

  3. For “Architectures”, select $ARCHS_STANDARD – Standard architectures (armv7, armv7s, arm64) 对于“架构”,选择$ ARCHS_STANDARD –标准架构(armv7,armv7s,arm64)

  4. For “Valid Architectures”, add “arm64″ 对于“有效架构”,添加“ arm64”

  5. Select your CordovaLib.xcodeproj icon 选择您的CordovaLib.xcodeproj图标

  6. In the Build Settings for the Project (not Target), delete all the conditional architecture settings (hover to see the minus sign). 在项目的“构建设置”(不是“目标”)中,删除所有条件体系结构设置(将鼠标悬停以查看减号)。 This is what is recommended by Apple in their Xcode 5.1 Release Notes. 这是Apple在其Xcode 5.1发行说明中建议的。

  7. For “Architectures”, select $ARCHS_STANDARD – Standard architectures (armv7, armv7s, arm64) 对于“架构”,选择$ ARCHS_STANDARD –标准架构(armv7,armv7s,arm64)

  8. For “Valid Architectures”, Find Valid Architectures in it. 对于“有效架构”,在其中找到有效架构。

    Just double click on that and remove armv64 from that. 只需双击并从中删除armv64。

    Make sure there is armv7 and armv7s only. 确保仅存在armv7和armv7s。

    In my case this worked for me. 就我而言,这对我有用。

  9. now do it for “Target“ 现在针对“目标”

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

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