{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6220","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6220/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6220/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6220/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/6220","id":190889638,"number":6220,"title":"Space in .app name results in build failure","user":{"login":"FridaySG","id":15814162,"avatar_url":"https://avatars.githubusercontent.com/u/15814162?v=3","gravatar_id":"","url":"https://api.github.com/users/FridaySG","html_url":"https://github.com/FridaySG","followers_url":"https://api.github.com/users/FridaySG/followers","following_url":"https://api.github.com/users/FridaySG/following{/other_user}","gists_url":"https://api.github.com/users/FridaySG/gists{/gist_id}","starred_url":"https://api.github.com/users/FridaySG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FridaySG/subscriptions","organizations_url":"https://api.github.com/users/FridaySG/orgs","repos_url":"https://api.github.com/users/FridaySG/repos","events_url":"https://api.github.com/users/FridaySG/events{/privacy}","received_events_url":"https://api.github.com/users/FridaySG/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T02:14:01Z","updated_at":"2016-12-10T22:47:01Z","closed_at":"2016-11-22T16:10:40Z","body":"> Before you start, are you using the latest CocoaPods release?\r\n> A lot changes with Xcode releases that are not backwards compatible.\r\n>\r\n> Xcode 8 Status: Only works with CocoaPods 1.1.0+\r\n> Pushing a Swift 2.3 Pod: You need to add a `.swift-version` file or the argument `--swift-version=VERSION`, see the CHANGELOG\r\n> Not an issue about the CocoaPods command line app? Please file an issue in the appropriate repo - https://github.com/CocoaPods\r\n> Issues are for feature requests, and bugs; questions should go to Stack Overflow\r\n> Using CocoaPods <= 0.39: http://blog.cocoapods.org/Sharding/\r\n\r\n* [x] I've read and understood the [*CONTRIBUTING guidelines and have done my best effort to follow](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md).\r\n\r\n# Report\r\n\r\n## What did you do?\r\n\r\nAttempted to build a project with a space in the application name. During the build process, the 'CocoaPods Embed Pods Framework' build script ran.\r\n\r\n## What did you expect to happen?\r\n\r\nI expected it to compensate for the space in the application name and build successfully.\r\n\r\n## What happened instead?\r\n\r\n```\r\n/usr/bin/codesign --force --sign 5DB17C4566C0DD74BE956C562D1C955AB49DCACA  --preserve-metadata=identifier,entitlements /Users/username/Library/Developer/Xcode/DerivedData/Project_Name-apwdjvmtrrrwwlfqeyflohhvxdqc/Build/Products/Debug-iphoneos/Project Name.app/Frameworks/Alamofire.framework\r\n\r\n/Users/username/Library/Developer/Xcode/DerivedData/Project_Name-apwdjvmtrrrwwlfqeyflohhvxdqc/Build/Products/Debug-iphoneos/Project: No such file or directory\r\n```\r\n\r\nAs a troubleshooting measure, I ran this from the terminal (notice the backward facing slash to indicate a space in the destination path):\r\n\r\n`/usr/bin/codesign --force --sign 5DB17C4566C0DD74BE956C562D1C955AB49DCACA  --preserve-metadata=identifier,entitlements /Users/username/Library/Developer/Xcode/DerivedData/Project_Name-apwdjvmtrrrwwlfqeyflohhvxdqc/Build/Products/Debug-iphoneos/Project\\ Name.app/Frameworks/Alamofire.framework`\r\n\r\nWith the backward facing slash in place, it built successfully within terminal. A second test without the added slash returned the same \"No such file...\" error. \r\n\r\nI assume this indicates that the CocoaPods build script does not properly compensate for a space in the destination path. I tried to correct the issue myself, however I failed to understand how CocoaPods generates the path.\r\n\r\n## CocoaPods Environment\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.2.0.beta.1\r\n        Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]\r\n    RubyGems : 2.0.14.1\r\n        Host : Mac OS X 10.11.5 (15F34)\r\n       Xcode : 7.3.1 (7D1014)\r\n         Git : git version 2.7.4 (Apple Git-66)\r\nRuby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib\r\nRepositories : master - https://github.com/CocoaPods/Specs.git @ 14e2b31d3846b22f2c6621c5c0244ab90c993a6f\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /usr/local/bin/pod\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\ncocoapods-deintegrate : 1.0.1\r\ncocoapods-plugins     : 1.0.0\r\ncocoapods-search      : 1.0.0\r\ncocoapods-stats       : 1.0.0\r\ncocoapods-trunk       : 1.1.1\r\ncocoapods-try         : 1.1.0\r\n```\r\n\r\n### Podfile\r\n\r\n```ruby\r\n# Uncomment this line to define a global platform for your project\r\nplatform :ios, '9.0'\r\n# Uncomment this line if you're using Swift\r\nuse_frameworks!\r\n\r\ntarget 'ProjectName' do\r\npod 'MZAppearance'\r\npod 'JSQMessagesViewController', :git => 'https://github.com/jessesquires/JSQMessagesViewController.git', :branch => 'master'\r\npod 'SDWebImage', :git => 'https://github.com/rs/SDWebImage/'\r\npod 'MZFormSheetPresentationController', :git => 'https://github.com/m1entus/MZFormSheetPresentationController.git'\r\npod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'\r\npod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git'\r\npod 'MBProgressHUD'\r\npod 'DownPicker'\r\npod 'MTBBarcodeScanner'\r\npod 'UITextView+Placeholder'\r\npod 'ParseFacebookUtilsV4'\r\npod 'ParseUI'\r\npod 'SWXMLHash', '~> 2.5.1'\r\n#pod 'Box', :head\r\n#pod 'Result', :head\r\nend\r\n```\r\n\r\n\r\n\r\n## Project that demonstrates the issue\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/266245314","html_url":"https://github.com/CocoaPods/CocoaPods/issues/6220#issuecomment-266245314","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6220","id":266245314,"user":{"login":"Gerst20051","id":235372,"avatar_url":"https://avatars.githubusercontent.com/u/235372?v=3","gravatar_id":"","url":"https://api.github.com/users/Gerst20051","html_url":"https://github.com/Gerst20051","followers_url":"https://api.github.com/users/Gerst20051/followers","following_url":"https://api.github.com/users/Gerst20051/following{/other_user}","gists_url":"https://api.github.com/users/Gerst20051/gists{/gist_id}","starred_url":"https://api.github.com/users/Gerst20051/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gerst20051/subscriptions","organizations_url":"https://api.github.com/users/Gerst20051/orgs","repos_url":"https://api.github.com/users/Gerst20051/repos","events_url":"https://api.github.com/users/Gerst20051/events{/privacy}","received_events_url":"https://api.github.com/users/Gerst20051/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T22:47:01Z","updated_at":"2016-12-10T22:47:01Z","body":"@benasher44 when will cocoapods / master get updated with this fix?"}}
{"actor":{"display_login":"Gerst20051"}}