{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4464","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4464/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4464/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4464/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4464","id":114077354,"number":4464,"title":"Embed Pods Frameworks spawns endless xcodebuild processes","user":{"login":"petaren","id":3486895,"avatar_url":"https://avatars.githubusercontent.com/u/3486895?v=3","gravatar_id":"","url":"https://api.github.com/users/petaren","html_url":"https://github.com/petaren","followers_url":"https://api.github.com/users/petaren/followers","following_url":"https://api.github.com/users/petaren/following{/other_user}","gists_url":"https://api.github.com/users/petaren/gists{/gist_id}","starred_url":"https://api.github.com/users/petaren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petaren/subscriptions","organizations_url":"https://api.github.com/users/petaren/orgs","repos_url":"https://api.github.com/users/petaren/repos","events_url":"https://api.github.com/users/petaren/events{/privacy}","received_events_url":"https://api.github.com/users/petaren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-29T15:36:53Z","updated_at":"2015-11-02T12:26:51Z","closed_at":null,"body":"I'm running OS X 10.11.1, Xcode 7.1 and Cocoapods 0.39.0. \r\n\r\nSuddenly today I noticed while trying to build my project that something would spawn endless amounts of xcodebuild processes. So many that it crashes my activity monitor on my mac. I have managed to pinpoint the problem to the file `Pods/Target Support Files/Pods/Pods-resources.sh`. The issue occurs when xcode reports that it is running custom scripts. If I empty this file, the problem disappears. So it is most definitely this file.\r\n\r\nI have tried to reinstall Xcode, reinstall cocoa pods, remove my `Pods` folder from my project and reinstall my pods with `pod install`. The problem still persists. \r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/153002371","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4464#issuecomment-153002371","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4464","id":153002371,"user":{"login":"petaren","id":3486895,"avatar_url":"https://avatars.githubusercontent.com/u/3486895?v=3","gravatar_id":"","url":"https://api.github.com/users/petaren","html_url":"https://github.com/petaren","followers_url":"https://api.github.com/users/petaren/followers","following_url":"https://api.github.com/users/petaren/following{/other_user}","gists_url":"https://api.github.com/users/petaren/gists{/gist_id}","starred_url":"https://api.github.com/users/petaren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petaren/subscriptions","organizations_url":"https://api.github.com/users/petaren/orgs","repos_url":"https://api.github.com/users/petaren/repos","events_url":"https://api.github.com/users/petaren/events{/privacy}","received_events_url":"https://api.github.com/users/petaren/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T12:26:51Z","updated_at":"2015-11-02T12:26:51Z","body":"Okey, I'm here again now. Seems like the previous message was wrong too. \r\nHere I am with some more research now. The problem has started to reoccur now and only on projects that are using cocoa pods. I have managed to isolate the problem to the `Pods-resources.sh` file located in `Pods/Target Support Files/Pods`. The problem happens on this line:\r\n```shell\r\nif [[ -n \"${WRAPPER_EXTENSION}\" ]] && [ \"`xcrun --find actool`\" ] && [ -n \"$XCASSET_FILES\" ]\r\n```\r\nMore specifically when the command `\"`xcrun --find actual`\"` is being executed. What is interesting is that when executing this command in the terminal by my self I get the proper output: `/Applications/Xcode.app/Contents/Developer/usr/bin/actool`. But when run from Xcode during a build, be it in the cocoa pods scripts or in a custom one just containing that row it spawns an infinite amount of `xcorebuild` processes. "}}