首页 > 解决方案 > 如何构建 AWSiOSSDKv2?

问题描述

如果这是一个新手问题,请原谅我。我正在尝试构建 AWS iOS 开发工具包,但构建失败。我正在使用 XCode 10.1 Beta。

我已经克隆了AWS iOS SDK并打开了xcode 项目文件。打开项目后,我尝试清理、测试和构建项目。

构建错误

构建错误

多个命令产生'/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSCognitoAuthUnitTests.xctest/Info.plist':

  1. 目标“AWSCognitoAuthUnitTests”(项目“AWSiOSSDKv2”)具有从“/Users/user/Documents/NewTouch/aws-sdk-ios/AWSCognitoAuthUnitTests/Info.plist”到“/Users/user/Library/Developer/Xcode/DerivedData”的复制命令/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSCognitoAuthUnitTests.xctest/Info.plist'

  2. 目标“AWSCognitoAuthUnitTests”(项目“AWSiOSSDKv2”)具有输出“/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSCognitoAuthUnitTests.xctest/Info.plist”的流程命令

多个命令产生'/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSAllTestsHost.app/PlugIns/AWSCognitoAuthTests.xctest/Info.plist':

  1. 目标“AWSCognitoAuthTests”(项目“AWSiOSSDKv2”)具有从“/Users/user/Documents/NewTouch/aws-sdk-ios/AWSCognitoAuthTests/Info.plist”到“/Users/user/Library/Developer/Xcode/DerivedData”的复制命令/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSAllTestsHost.app/PlugIns/AWSCognitoAuthTests.xctest/Info.plist'
  2. 目标“AWSCognitoAuthTests”(项目“AWSiOSSDKv2”)具有输出“/Users/user/Library/Developer/Xcode/DerivedData/AWSiOSSDKv2-gfzlqdkwlorytgcialiewupaumtw/Build/Products/Debug-iphonesimulator/AWSAllTestsHost.app/PlugIns/AWSCognitoAuthTests.xctest”的流程命令/信息.plist'

标签: xcodeaws-sdkaws-sdk-ios

解决方案


一个常见的原因:

从 Build Phases > Copy Bundle Resources 中删除那些 Info.plist 文件。将它们添加到项目中的人不小心选中了目标复选框。


推荐阅读