0

我正在尝试从 ssh 编译我的 iPhone 应用程序。这适用于我在另一台机器上运行的构建工具。

基础 sdk 是 iPhone Device 3.0。

错误是:“无法加载插件'com.apple.Xcode.iPhoneSupport'”

但是,从常规终端运行正常。也直接来自xcode。

这是日志:

[trtrrtrtr@mac-pro-de-trtrr-trtr ~/mamcx/projects/JhonSell/iPhone]$ xcodebuild -target BestSeller -configuration Debug=== BUILDING NATIVE TARGET Three20 OF PROJECT Three20 WITH CONFIGURATION Debug ===

Checking Dependencies...
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386).
2010-04-27 16:16:50.369 xcodebuild[1168:4b1b] Error loading /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneRemoteDevice.xcodeplugin/Contents/MacOS/iPhoneRemoteDevice:  dlopen(/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneRemoteDevice.xcodeplugin/Contents/MacOS/iPhoneRemoteDevice, 265): no suitable image found.  Did find:
 /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneRemoteDevice.xcodeplugin/Contents/MacOS/iPhoneRemoteDevice: GC capability mismatch
2010-04-27 16:16:50.371 xcodebuild[1168:4b1b] Exception caught: Couldn't load plug-in 'com.apple.Xcode.iPhoneSupport'
2010-04-27 16:16:50.373 xcodebuild[1168:4b1b] Error loading /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneRemoteDevice.xcodeplugin/Contents/MacOS/iPhoneRemoteDevice:  dlopen(/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneRemoteDevice.xcodeplugin/Contents/MacOS/iPhoneRemoteDevice, 265): no suitable image found.  Did find:
 /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneRemoteDevice.xcodeplugin/Contents/MacOS/iPhoneRemoteDevice: GC capability mismatch
2010-04-27 16:16:50.373 xcodebuild[1168:4b1b] Exception caught: Couldn't load plug-in 'com.apple.Xcode.iPhoneSupport'
** BUILD FAILED **
4

2 回答 2

0

如果它在同一台机器上的 Xcode 和终端下运行良好,则可能是 ssh 用户的权限问题。

于 2010-05-11T14:35:41.550 回答
0

这似乎是 XCode 项目中的一个问题。请参阅以下行:

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386).

它表明:

  • 您在“BestSeller”目标中启用了“仅构建活动架构”复选框。
  • 您只有“armv6”作为活动架构,而唯一有效的架构是“i386”。

我建议您检查这些选项在 XCode 下是否正确定义。然后,您可以通过以下方式:

  • 在 XCode GUI 下执行构建。
  • 在命令行上执行构建。
  • 在本地机器上,使用 ssh 连接并在命令行上执行构建。
  • 在远程机器上,使用 ssh 连接并在命令行上执行构建。

对于每次尝试,保存输出并进行比较。也许架构问题不是唯一的问题,但通过逐步解决问题,会更容易发现问题。

于 2010-05-15T08:28:45.743 回答