Xcode 7.0.1与CocaoPods应用程序编译错误退出代码1

时间:2015-10-03 20:48:02

标签: ios xcode compiler-errors cocoapods xcode7

我最近升级到最新的Xcode,在添加了一堆新代码并修复了所有正常的编译错误后,我得到了以下内容,我不知道如何纠正这个错误。请给我任何建议。

PhaseScriptExecution Copy\ Pods\ Resources /Users/dpreston10/Library/Developer/Xcode/DerivedData/Pesto-dxseswuhgbzbluabjffcnlgzjelu/Build/Intermediates/Pesto.build/Debug-iphoneos/Pesto.build/Script-EF1179D6E7811474BD220AEA.sh
cd /Users/dpreston10/Dropbox/Pesto
/bin/sh -c /Users/dpreston10/Library/Developer/Xcode/DerivedData/Pesto-dxseswuhgbzbluabjffcnlgzjelu/Build/Intermediates/Pesto.build/Debug-iphoneos/Pesto.build/Script-EF1179D6E7811474BD220AEA.sh

/Users/dpreston10/Dropbox/Pesto/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/A/Resources/GoogleMaps.bundle
/Users/dpreston10/Dropbox/Pesto/Pods/JSQMessagesViewController/JSQMessagesViewController/Assets/JSQMessagesAssets.bundle
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile /Users/dpreston10/Library/Developer/Xcode/DerivedData/Pesto-dxseswuhgbzbluabjffcnlgzjelu/Build/Products/Debug-iphoneos/Pesto.app/JSQMessagesViewController.nib /Users/dpreston10/Dropbox/Pesto/Pods/JSQMessagesViewController/JSQMessagesViewController/Controllers/JSQMessagesViewController.xib --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk
2015-10-03 16:35:22.011 Interface Builder Cocoa Touch Tool[12168:7780607] CoreUI: CUICatalog: couldn't get 'kMGArtworkGraphicsFeatureSetClass' from MGCopyAnswer got '{
ArtworkDeviceIdiom = pad;
ArtworkDeviceScaleFactor = "-1";
DevicePerformanceMemoryClass = 1;
 }'
 2015-10-03 16:35:22.011 Interface Builder Cocoa Touch Tool[12168:7780607] CoreUI: CUICatalog: couldn't get 'kMGArtworkGraphicsFeatureSetFallbacks' from MGCopyAnswer got '{
ArtworkDeviceIdiom = pad;
ArtworkDeviceScaleFactor = "-1";
DevicePerformanceMemoryClass = 1;
}'
2015-10-03 16:35:22.017 Interface Builder Cocoa Touch Tool[12168:7780607] CoreUI: CUICatalog: couldn't get 'kMGArtworkGraphicsFeatureSetClass' from MGCopyAnswer got '{
ArtworkDeviceIdiom = pad;
ArtworkDeviceScaleFactor = "-1";
DevicePerformanceMemoryClass = 1;
}'2015-10-03 16:35:22.017 Interface Builder Cocoa Touch Tool[12168:7780607] CoreUI: CUICatalog: couldn't get 'kMGArtworkGraphicsFeatureSetFallbacks' from MGCopyAnswer got '{
ArtworkDeviceIdiom = pad;
ArtworkDeviceScaleFactor = "-1";
DevicePerformanceMemoryClass = 1;
}'
2015-10-03 16:35:22.024 Interface Builder Cocoa Touch Tool[12168:7780607] Please stop using -[UIToolbar _setForceTopBarAppearance:]
2015-10-03 16:35:22.024 Interface Builder Cocoa Touch Tool[12168:7780607] Please stop using -[UIToolbar _setForceTopBarAppearance:]
2015-10-03 16:35:22.025 Interface Builder Cocoa Touch Tool[12168:7780607] Error creating notification handler for simulator graphics quality override: 1000000
2015-10-03 16:35:22.035 Interface Builder Cocoa Touch Tool[12168:7780607] Please stop using -[UIToolbar _setForceTopBarAppearance:]
2015-10-03 16:35:22.035 Interface Builder Cocoa Touch Tool[12168:7780607] Please stop using -[UIToolbar _setForceTopBarAppearance:]
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile /Users/dpreston10/Library/Developer/Xcode/DerivedData/Pesto-dxseswuhgbzbluabjffcnlgzjelu/Build/Products/Debug-iphoneos/Pesto.app/JSQMessagesCollectionViewCellIncoming.nib /Users/dpreston10/Dropbox/Pesto/Pods/JSQMessagesViewController/JSQMessagesViewController/Views/JSQMessagesCollectionViewCellIncoming.xib --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer//Users/dpreston10/Dropbox/Pesto/Pods/Target Support Files/Pods/Pods-resources.sh: line 25: echo: write error: Resource temporarily unavailable
Command /bin/sh failed with exit code 1

我已尝试清理该项目,并已删除了我的应用程序的Xcode / DerivedData目录。

3 个答案:

答案 0 :(得分:26)

尝试重新启动Mac ,因为@ChadPodosky建议在评论中使用。我的诀窍

我还尝试杀死我的Pods目录并再次pod install - 但它没有帮助。

答案 1 :(得分:0)

好的,所以我想发布我所做的事情,以便清除这个错误。

关闭Xcode

在我的项目文件夹中,我删除了Pods文件夹,Podfile.lock和xcworkspace文件。

然后我在我的项目文件夹中重新安装pod install。

一旦我这样做,我就能够编译并运行。

答案 2 :(得分:0)

以下是我用cocoapods版本1.2.1,Xcode版本8.3.3(8E3004b)解决此问题的步骤

  1. 删除了DerivedData文件夹中的应用程序数据。

  2. 删除了Pods floder,Podfile.lock和xcworkspace文件。

  3. 重启Mac。

  4. 再次安装pod

  5. 或者在命令行中运行shell。

    killall Xcode

    xcrun -k

    xcodebuild -alltargets clean

    rm -rf" $(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"

    rm -rf" $(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang。$(whoami)/ ModuleCache"

    rm -rf~ / Library / Developer / Xcode / DerivedData / *

    rm -rf~ / Library / Caches / com.apple.dt.Xcode / *

    sudo shutdown -r now