2017-10-06 11 views
0

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を動作させようとしたことによるものだと思います。

どこでこのコマンドを見つけることができるので、私はそれを削除して無料のビルドを手に入れることができます。

+0

パスがあります - "/ユーザ/ billybob /ライブラリ/開発/ Xcodeの/ DerivedData " – Krunal

+0

エラーは、AlamoFire.frameworkを検索しようとしていて、見つからないということです。 DerivedDataフォルダを削除することは間違いなく(/ Users/billybob/Library/Developer/Xcode/DerivedData)良い場所です。それがうまくいかないとすれば、AlamoFire.frameworkを見つけてプロジェクトにドラッグし、きれいにしてビルドします。 – drewster

+0

何らかの理由でフレームワークが実際にビルド/プロダクト/デバッグ - iphonesimulator/Alamofire/Alamofire.frameworkにあります 私は最初にプロジェクトにドラッグしようとします。 –

答えて

0

Alamofireを削除して、あなただけの端末で実行する必要があるデータを削除するには迅速な3

+0

このプロジェクトはSwift 2を使用しています –

+0

Xcode 8.2ですみませんSwift 3が動作するので、Alamofire for Swift 3 – Zee

0

ためAlamofireを再インストールします。

rm -rf ~/Library/Developer/Xcode/DerivedData/* 
関連する問題