简体   繁体   English

trigger.io错误device-ios.app/Forge格式错误的对象

[英]trigger.io error device-ios.app/Forge malformed object

I am trying to run this weather tutorial app on an actual iPhone (I've got it working on the emulator so far). 我正在尝试在实际的iPhone上运行此天气教程应用程序(到目前为止,它已在模拟器上运行)。

[ERROR] Failed when running /usr/bin/codesign: codesign_allocate: object: /Users/cdplMBP17/Documents/AppDev/trigger/development/ios/device-ios.app/Forge malformed object (unknown load command 43) /Users/cdplMBP17/Documents/AppDev/trigger/development/ios/device-ios.app: object file format unrecognized, invalid, or unsuitable [错误]运行/ usr / bin / codesign时失败:codesign_allocate:对象:/Users/cdplMBP17/Documents/AppDev/trigger/development/ios/device-ios.app/伪造格式错误的对象(未知加载命令43)/ Users / cdplMBP17 / Documents / AppDev / trigger / development / ios / device-ios.app:目标文件格式无法识别,无效或不合适

Thanks in advance. 提前致谢。

This can happen if you have an older version of Xcode or if the Xcode command line tools have got into a bad state. 如果您使用的是旧版本的Xcode或Xcode命令行工具进入了不良状态,则可能会发生这种情况。

I recommend trying the following 我建议尝试以下

1) Make sure the latest Xcode is installed from the app store. 1)确保从应用程序商店安装了最新的Xcode。

2) Make sure the command line tools are installed and Xcode is aware they are installed. 2)确保已安装命令行工具,并且Xcode知道已安装它们。 To install the command line tools, open the Xcode preferences and go to Downloads, there should be an install button next to Command Line Tools (see the image below). 要安装命令行工具,请打开Xcode首选项并转到“下载”,“命令行工具”旁边应该有一个安装按钮(请参见下图)。

Xcode首选项

If this doesn't help then your version of OS X and the full log output from the failed run on a device would be helpful. 如果这没有帮助,那么您的OS X版本和设备上失败运行的完整日志输出将很有帮助。

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

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