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

时间:2022-03-19 01:11:12

I recently upgraded to the latest Xcode and after adding a bunch of new code and fixing all my normal compile errors I got the following and I'm not sure how to rectify this error. Any suggestions please.

我最近升级到最新的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

I have tried to clean the project and also have removed Xcode/DerivedData directory for my app.

我试着去清理这个项目,并且已经删除了我的应用程序的Xcode/DerivedData目录。

3 个解决方案

#1


25  

Try restarting your Mac as @ChadPodosky recommends in the comments. Did the trick for me

尝试重新启动你的Mac,正如@ChadPodosky在评论中建议的那样。对我来说有诀窍吗?

I also tried killing my Pods directory and pod install-ing again, but it didn't help.

我也尝试过杀死我的豆荚目录和pod安装,但它没有帮助。

#2


0  

Ok so I wanted to post what I did to get this error to clear out.

所以我想把我所做的事情写出来,以便把这个错误清除出去。

closed Xcode

关闭Xcode

In my project folder I deleted the Pods folder, Podfile.lock and the xcworkspace file.

在我的项目文件夹中,我删除了pod文件夹,Podfile。锁定和xcworkspace文件。

I then reran pod install on my project folders.

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

Once I did this I was able to compile and run.

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

#3


0  

Here are the steps I used to resolve this issue with cocoapods version 1.2.1, Xcode Version 8.3.3 (8E3004b)

下面是我使用cocoapods version 1.2.1, Xcode版本8.3.3 (8E3004b)解决这个问题的步骤。

  1. deleted the data of app in DerivedData folder.

    删除了DerivedData文件夹中的app数据。

  2. deleted the Pods floder,Podfile.lock and xcworkspace file.

    删除Pods河流,Podfile。锁和xcworkspace文件。

  3. restart Mac.

    重启Mac。

  4. pod install again

    豆荚再次安装

Or running the shell in command line.

或者在命令行中运行shell。

killall Xcode

killall Xcode

xcrun -k

xcrun - k

xcodebuild -alltargets clean

xcodebuild -alltargets清洁

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

rm射频" $(getconf DARWIN_USER_CACHE_DIR)/ org.llvm.clang / ModuleCache”

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

rm射频" $(getconf DARWIN_USER_CACHE_DIR)/ org.llvm.clang(whoami)/ ModuleCache美元。”

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

rm射频~ /图书馆/开发/ Xcode / DerivedData / *

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

rm射频~ /图书馆/缓存/ com.apple.dt.Xcode / *

sudo shutdown -r now

sudo关闭- r现在

#1


25  

Try restarting your Mac as @ChadPodosky recommends in the comments. Did the trick for me

尝试重新启动你的Mac,正如@ChadPodosky在评论中建议的那样。对我来说有诀窍吗?

I also tried killing my Pods directory and pod install-ing again, but it didn't help.

我也尝试过杀死我的豆荚目录和pod安装,但它没有帮助。

#2


0  

Ok so I wanted to post what I did to get this error to clear out.

所以我想把我所做的事情写出来,以便把这个错误清除出去。

closed Xcode

关闭Xcode

In my project folder I deleted the Pods folder, Podfile.lock and the xcworkspace file.

在我的项目文件夹中,我删除了pod文件夹,Podfile。锁定和xcworkspace文件。

I then reran pod install on my project folders.

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

Once I did this I was able to compile and run.

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

#3


0  

Here are the steps I used to resolve this issue with cocoapods version 1.2.1, Xcode Version 8.3.3 (8E3004b)

下面是我使用cocoapods version 1.2.1, Xcode版本8.3.3 (8E3004b)解决这个问题的步骤。

  1. deleted the data of app in DerivedData folder.

    删除了DerivedData文件夹中的app数据。

  2. deleted the Pods floder,Podfile.lock and xcworkspace file.

    删除Pods河流,Podfile。锁和xcworkspace文件。

  3. restart Mac.

    重启Mac。

  4. pod install again

    豆荚再次安装

Or running the shell in command line.

或者在命令行中运行shell。

killall Xcode

killall Xcode

xcrun -k

xcrun - k

xcodebuild -alltargets clean

xcodebuild -alltargets清洁

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

rm射频" $(getconf DARWIN_USER_CACHE_DIR)/ org.llvm.clang / ModuleCache”

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

rm射频" $(getconf DARWIN_USER_CACHE_DIR)/ org.llvm.clang(whoami)/ ModuleCache美元。”

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

rm射频~ /图书馆/开发/ Xcode / DerivedData / *

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

rm射频~ /图书馆/缓存/ com.apple.dt.Xcode / *

sudo shutdown -r now

sudo关闭- r现在