XCode UnitTest Error : Multiple commands produce …

Symptom

  1. Create a project.
  2. Add a new target with Swifter by pod install
  3. run a unit test, then Multiple commands produce … error comes up.

Cause

Error Message is as follows.

Multiple commands produce …..
1) Target ‘appname’ has … /appname.app’
2) Target ‘appname_Twitter (iOS)’ has…./appname.app’

It means, there are two files with appname.app for two different targets.

Solution

Rename one of the product name, and clean rebuild.
In my case, I renamed my app with Swifter from TARGETS >> Build Settings “Product Name” from appname to appname2.

投稿者: admin

Free Software Engineer

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です