xcodebuild + iPhone在ssh下失败,无法加载插件'com.apple.Xcode.iPhoneSupport'

时间:2010-04-27 21:29:53

标签: iphone-sdk-3.0 xcodebuild

我正在试图从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 **

2 个答案:

答案 0 :(得分:0)

如果它在Xcode和终端在同一台机器上运行正常,那么它可能是ssh中用户的权限问题。

答案 1 :(得分: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连接并在命令行上执行构建。

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