Search code examples
xcodeaws-sdkaws-sdk-ios

How to build AWSiOSSDKv2?


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'

Solution

  • 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.