2016-07-20 67 views
0

我開發了一個使用objective-c的iOS應用程序,該應用程序使用文本文件將其轉換爲zip。我最初嘗試使用SSZipArchive並將SSZipArchive添加到項目目錄。後來,我改爲客觀拉鍊,它完美的作品。我也從目錄中刪除了SSZipArchive文件夾。但是當我嘗試構建應用程序時,出現錯誤'error:/ Users/maneesh-3919/Documents/git1/mdmiosapp/support/SSZipArchive:沒有這樣的文件或目錄'..我嘗試搜索「SSZipArchive」項目,但沒有發現一次發生。正在拋出的精確錯誤是SSZiparchive沒有從項目中刪除

CpResource support/SSZipArchive /Users/maneesh-3919/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/mdmiosagent.app/SSZipArchive 
cd /Users/maneesh-3919/Documents/git1/mdmiosapp 
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 -resolve-src-symlinks /Users/maneesh-3919/Documents/git1/mdmiosapp/support/SSZipArchive /Users/maneesh-3919/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/mdmiosagent.app 

error: /Users/maneesh-3919/Documents/git1/mdmiosapp/support/SSZipArchive: No such file or directory 

所以請幫助我完全刪除SSZipArchive。先謝謝你。

+1

嘗試在** Build Phases> Copy Bundle Resources **中搜索「SSZipArchive」。如果有,請將其移除。 – Nishant

+0

瞧!那就是訣竅。請發佈這個答案。我會接受。 –

+0

清理生成文件夾和派生數據文件夾。 –

回答

1

請嘗試以下步驟:

1. Click on your project in Xcode. 
2. For your target, open the build phases tab. 
3. Open "Copy Bundle Resources" 
4. Look for any resources listed in red (SSZipArchive) 
5. Remove. 

建議:你應該更喜歡使用的CocoaPods依賴關係。它處理一切。

+0

我現在使用了cocoapods .. –