LoginSignup
1
1

More than 5 years have passed since last update.

Logic Testing Unavailableエラーへの対処

Last updated at Posted at 2016-01-18

実機をビルド対象に指定してXCTestを実行しようとしたら以下のエラーが起きてビルドできませんでした。
null.png

Logic Testing Unavailable

Logic Testing on iOS devices is not supported. You can run logic tests on the Simulator.

そんなわけなかろうと思って調べてみるとこんなページを見つけました。
http://stackoverflow.com/questions/8454935/logic-testing-on-ios-devices-is-not-supported

Host Applicationが怪しいようです。
実際Host Applicationがどうなっているか確かめてみたところ、何も値が設定されていませんでした(Noneになっていました)。ので修正します。
スクリーンショット 2016-01-19 0.41.14.png
<プロジェクト名>Testsのターゲットの
General -> Host Application -> <プロジェクト名>を指定し、その下のAllow testing Host Application APIsにチェックを付けます。

これでエラーが出なくなり、実機でもビルドできるようになります。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1