{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4178","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4178/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4178/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4178/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4178","id":106345372,"number":4178,"title":"Xcode archive can not be uploaded to app store if cocoa pods links watchOS 2 libraries","user":{"login":"michaelochs","id":1901926,"avatar_url":"https://avatars.githubusercontent.com/u/1901926?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelochs","html_url":"https://github.com/michaelochs","followers_url":"https://api.github.com/users/michaelochs/followers","following_url":"https://api.github.com/users/michaelochs/following{/other_user}","gists_url":"https://api.github.com/users/michaelochs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelochs/subscriptions","organizations_url":"https://api.github.com/users/michaelochs/orgs","repos_url":"https://api.github.com/users/michaelochs/repos","events_url":"https://api.github.com/users/michaelochs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelochs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-09-14T13:52:38Z","updated_at":"2015-09-22T20:18:28Z","closed_at":null,"body":"Summary:\r\nWhen using cocoapods inside a watchOS 2 target, Xcode builds a corrupted archive file that itself no longer identifies as iOS app but instead as 'Generic Xcode Archive'.\r\n\r\nSteps to Reproduce:\r\n0. Open the example project and run archive\r\n-- or --\r\n1. Create an iOS project containing a watchOS 2 target\r\n2. Create a 'Podfile' in the main directory\r\n3. Add e.g. pod 'AFNetworking' to both, the iOS and the watchOS target\r\n4. Run 'pod install' from the command line\r\n5. Open the .xcworkspace file\r\n6. Click Products > Archive\r\n7. Open the organiser and select the resulting archive\r\n\r\nExpected Results:\r\nThe 'Upload to App Store' button is blue and can be used for submitting.\r\n\r\nActual Results:\r\nThe 'Upload to App Store' button is greyed out and can not be touched. The archive's Info.plist is missing the product specific informations.\r\n\r\nVersion:\r\nXcode 7 GM, (El Capitan GM or OS X Yosemite)\r\n\r\nNotes:\r\nAdding the following into the archive's Info.plist produces a valid Xcode archive that can be uploaded to the App Store without any problems:\r\n\r\n````\r\n<key>ApplicationProperties</key>\r\n<dict>\r\n    <key>ApplicationPath</key>\r\n    <string>Applications/<<APP_NAME>>.app</string>\r\n    <key>CFBundleIdentifier</key>\r\n    <string><<BUNDLE_IDENTIFIER>></string>\r\n    <key>CFBundleShortVersionString</key>\r\n    <string>6.1.0</string>\r\n    <key>CFBundleVersion</key>\r\n    <string>9328</string>\r\n    <key>SigningIdentity</key>\r\n    <string>iPhone Distribution: <<CERTIFICATE_NAME>> (<<CERTIFICATE_ID>>)</string>\r\n</dict>\r\n````\r\n\r\nNotes:\r\nI also filed the same bug to Apple as rdar://22682898 as I don't know who is responsible for the issue, but I guess a cocoa pods fix could be made available much faster as a new Xcode release."},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/142406620","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4178#issuecomment-142406620","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4178","id":142406620,"user":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T20:18:28Z","updated_at":"2015-09-22T20:18:28Z","body":"Seems like this is actually a race condition inside Xcode when having script build phases :tada: \r\n\r\nI was able to reproduce even with a \"Copy Pods Resources\" build phase that is an empty shell script and was able to \"solve\" it by turning off \"Parallelize Builds\" in the schemes.\r\n\r\nCould y'all try if just turning off that makes a difference when you archive your apps?"}}