我想使用Xcode 8.2.1打开一个Swift 2项目。删除从Xcode生成命令
我已经改变了一些东西,为了让它工作,即为Alamofire添加豆荚。
我现在能够成功地使用
import Alamofire
而且它检查的罚款。
然而,在试图构建一个可怕的错误:
PBXCp /Users/billybob/Library/Developer/Xcode/DerivedData/MyApp-cydfykckqtyklyfbipzafsqlmxxv/Build/Products/Debug-iphonesimulator/Alamofire.framework /Users/billybob/Library/Developer/Xcode/DerivedData/MyApp-cydfykckqtyklyfbipzafsqlmxxv/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks/Alamofire.framework
cd /Users/billybob/dev/viablelabs-MyApp-ios-e26ff0e163b3
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -resolve-src-symlinks /Users/billybob/Library/Developer/Xcode/DerivedData/MyApp-cydfykckqtyklyfbipzafsqlmxxv/Build/Products/Debug-iphonesimulator/Alamofire.framework /Users/billybob/Library/Developer/Xcode/DerivedData/MyApp-cydfykckqtyklyfbipzafsqlmxxv/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks
error: /Users/billybob/Library/Developer/Xcode/DerivedData/MyApp-cydfykckqtyklyfbipzafsqlmxxv/Build/Products/Debug-iphonesimulator/Alamofire.framework: No such file or directory
其他的建议,删除这些文件夹,重新打开Xcode和清洁/建造,我已经尝试了许多次。
相反,我认为这个错误是来自以前的开发人员试图让Alamofire工作。
我在哪里可以找到这个命令,这样我就可以删除它并获得免费的构建。
路径是存在的 - “/用户/ billybob /库/开发/的Xcode/DerivedData“ – Krunal
错误是,它试图找到AlamoFire.framework,并没有找到它。删除DerivedData文件夹绝对是一个开始的好地方(/ Users/billybob/Library/Developer/Xcode/DerivedData)。假设不起作用,找到AlamoFire.framework并将其拖入您的项目,清理并构建。 – drewster
出于某种原因,框架实际上是在构建/产品/调试-iphonesimulator/Alamofire/Alamofire.framework 我会尝试拖动到第一个项目。 –