我正在尝试根据 Apple 的“应用程序分发指南”存档我的应用程序,应用程序在模拟器和 iPhone 上运行良好,未发现任何错误。但是当我点击Archive时,总是会发生两个错误:
有人说: Swift 编译器警告:模块“Alamofire”的 Umbrella header 不包含 header “Pods-Alamofire-umbrella.h”。
第二个说: /Users/applejwo/Library/Developer/Xcode/DerivedData/Cloud-eixkwmelyvsoqvabyduxipaohojy/Build/Intermediates/ArchiveIntermediates/Cloud/IntermediateBuildFilesPath/UninstalledProducts/Alamofire.framework: 没有这样的文件或目录 命令/usr/bin/codesign 失败,退出代码为 1
第二个错误有时会消失,我也不知道为什么?
我已经尝试了“command/usr/bin/codesign failed with exit code 1- code sign error”中所述的所有可能的解决方案,但错误仍然存在。
我的开发环境是:simulator 8.4, iPhone 5s iOS 8.4, Xcode 6.4 (6E35b), swift, Alamofire 1.2.3, cocoa pods 0.37.2
非常感谢!
最佳答案
这是一个愚蠢的错误,但以防其他人同样愚蠢:Alamofire 框架有两个版本,一个用于 iOS,一个用于 OSX。来自Alamofire doc :
Select the top Alamofire.framework for iOS and the bottom one for OS X.
选择错误将使项目在模拟器上正确构建,但会在尝试存档时产生exit code 1错误。
关于ios - Alamofire 错误 : Command/usr/bin/codesign failed with exit code 1 No such file or directory & umbrella header for Pods-Alamofire-umbrella. h,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31423445/