0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Unit Test】Missing required module 'ABC'の対処

Posted at

はじめに

UnitTest内で@testable import (AppName)を宣言したときに、"Missing required module (モジュール名)"が表示された場合の対処方法を備忘録として残します。

解決方法

自分のテストのTarget ▶︎ Build Settings ▶︎ Testing ▶︎ Test Hostへと移動し、

【変更前】
$(BUILT_PRODUCTS_DIR)/MyApp.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/MyApp
【変更後】
$(BUILT_PRODUCTS_DIR)/MyApp.app/MyApp

の通りに値を変更してください。

※別の対処法もあるみたいです。
【Xcode】Missing required module 'XXXXX'を修正する

開発環境

  • Xcode 14.2

参考URL

0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?