0

iPhoneアプリをsshからコンパイルしようとしています。これは、別のマシンで実行されるビルド ツール用です。

ベース 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 プロジェクトの問題のようです。次の行を参照してください。

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

次のことを示します。

  • 「BestSeller」ターゲットで「Build Active Architecture Only」チェックボックスを有効にしました。
  • アクティブなアーキテクチャとして「armv6」しかありませんが、有効なアーキテクチャは「i386」のみです。

これらのオプションが XCode で正しく定義されていることを確認することをお勧めします。次に、次の方法で移動できます。

  • XCode GUI でビルドを実行します。
  • コマンドラインでビルドを実行します。
  • ローカル マシンで ssh を使用して接続し、コマンド ラインでビルドを実行します。
  • リモート マシンで ssh を使用して接続し、コマンド ラインでビルドを実行します。

試行ごとに、出力を保存して比較します。アーキテクチャの問題だけではないかもしれませんが、段階的に行うことで問題を見つけやすくなります。

于 2010-05-15T08:28:45.743 に答える
0

同じマシンの Xcode とターミナルで正常に動作する場合は、おそらく ssh のユーザーの権限の問題です。

于 2010-05-11T14:35:41.550 に答える