2

Forgive me if this is a newbie question. I am trying to build the AWS iOS SDK and the build is failing. I am using XCode 10.1 Beta.

I have cloned the AWS iOS SDK and have opened the xcode project file. After opening the project, I attempted to clean, test, and build the project.

  • Clean works
  • Test fails
  • Build fails.

Build Errors

Build Error

Multiple commands produce '/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSCognitoAuthUnitTests.xctest/Info.plist':

  1. Target 'AWSCognitoAuthUnitTests' (project 'AWSiOSSDKv2') has copy command from '/Users/user/Documents/NewTouch/aws-sdk-ios/AWSCognitoAuthUnitTests/Info.plist' to '/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSCognitoAuthUnitTests.xctest/Info.plist'

  2. Target 'AWSCognitoAuthUnitTests' (project 'AWSiOSSDKv2') has process command with output '/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSCognitoAuthUnitTests.xctest/Info.plist'

Multiple commands produce '/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSAllTestsHost.app/PlugIns/AWSCognitoAuthTests.xctest/Info.plist':

  1. Target 'AWSCognitoAuthTests' (project 'AWSiOSSDKv2') has copy command from '/Users/user/Documents/NewTouch/aws-sdk-ios/AWSCognitoAuthTests/Info.plist' to '/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSAllTestsHost.app/PlugIns/AWSCognitoAuthTests.xctest/Info.plist'
  2. Target 'AWSCognitoAuthTests' (project 'AWSiOSSDKv2') has process command with output '/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSAllTestsHost.app/PlugIns/AWSCognitoAuthTests.xctest/Info.plist'
Samuel Liew
  • 76,741
  • 107
  • 159
  • 260
Victor 'Chris' Cabral
  • 2,135
  • 1
  • 16
  • 33
  • 1
    Please do not invalidate existing answers with edits/updates to the question. If you have a new question, ask it separately. – Samuel Liew Oct 31 '18 at 01:27

1 Answers1

1

One common reason:

Go remove those Info.plist files from your Build Phases > Copy Bundle Resources. Whoever added them to the project accidentally checked a target checkbox.

Samuel Liew
  • 76,741
  • 107
  • 159
  • 260
Smartcat
  • 2,834
  • 1
  • 13
  • 25