{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4188","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4188/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4188/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4188/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4188","id":106748634,"number":4188,"title":"'Invalid Swift Support' email from iTunes when submitting with Xcode 7 GM & Cocoapods","user":{"login":"earltedly","id":155424,"avatar_url":"https://avatars.githubusercontent.com/u/155424?v=3","gravatar_id":"","url":"https://api.github.com/users/earltedly","html_url":"https://github.com/earltedly","followers_url":"https://api.github.com/users/earltedly/followers","following_url":"https://api.github.com/users/earltedly/following{/other_user}","gists_url":"https://api.github.com/users/earltedly/gists{/gist_id}","starred_url":"https://api.github.com/users/earltedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earltedly/subscriptions","organizations_url":"https://api.github.com/users/earltedly/orgs","repos_url":"https://api.github.com/users/earltedly/repos","events_url":"https://api.github.com/users/earltedly/events{/privacy}","received_events_url":"https://api.github.com/users/earltedly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-16T10:54:33Z","updated_at":"2015-09-20T04:00:37Z","closed_at":null,"body":"## Problem\r\n\r\nSince building with Xcode 7 GM, I'm getting the following email back from Apple which fails submission:\r\n\r\n> **Invalid Swift Support**\r\n> \r\n> The files libswiftCoreLocation.dylib, libswiftCoreMedia.dylib, libswiftCoreData.dylib, > libswiftAVFoundation.dylib don’t match\r\n> \r\n> /Payload/App.app/Frameworks/libswiftCoreLocation.dylib, /Payload/App.app/Frameworks/libswiftCoreMedia.dylib, /Payload/App.app/Frameworks/libswiftCoreData.dylib, /Payload/App.app/Frameworks/libswiftAVFoundation.dylib\r\n> \r\n> Make sure the files are correct (?), rebuild your app, and resubmit it.\r\n> \r\n> **Don’t apply post-processing to**\r\n> \r\n> /Payload/App.app/Frameworks/libswiftCoreLocation.dylib, /Payload/App.app/Frameworks/libswiftCoreMedia.dylib, /Payload/App.app/Frameworks/libswiftCoreData.dylib, /Payload/App.app/Frameworks/libswiftAVFoundation.dylib.\r\n\r\n## Workaround\r\nThere's a workaround on [Stackoverflow](http://stackoverflow.com/questions/32526526/invalid-swift-support-files-don-t-match) which seems to work:\r\n\r\n1. Archive your app with new build number :(\r\n2. Find the archive (.xcarchive file) in Finder from Organizer “Show in Finder”\r\n3. Open the package and find directories like `Products/Applications/YourApp.ipa/Frameworks/` and `SwiftSupport/iphoneos/`\r\n4. Copy all `libswiftXxx.dylib` files from `SwiftSupport/iphoneos/` into `Products/Applications/YourApp.ipa/Frameworks/` and overwrite\r\n5. Now, Upload to App Store from Organiser\r\n\r\n## Cocoapods relevance\r\nI had a look around in `Pods-frameworks.sh` and found a section commented as:\r\n\r\n> \\# Embed linked Swift runtime libraries\r\n\r\nCommenting the block of code which copies these libraries across (and code signs them) seems to have fixed my submission woes. I've not dived in deeper yet to see if it's just the copying of them which causes the issues or if it's the code-signing. I'm getting a bit out of my depth there."},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/141743378","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4188#issuecomment-141743378","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4188","id":141743378,"user":{"login":"djtarazona","id":337986,"avatar_url":"https://avatars.githubusercontent.com/u/337986?v=3","gravatar_id":"","url":"https://api.github.com/users/djtarazona","html_url":"https://github.com/djtarazona","followers_url":"https://api.github.com/users/djtarazona/followers","following_url":"https://api.github.com/users/djtarazona/following{/other_user}","gists_url":"https://api.github.com/users/djtarazona/gists{/gist_id}","starred_url":"https://api.github.com/users/djtarazona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djtarazona/subscriptions","organizations_url":"https://api.github.com/users/djtarazona/orgs","repos_url":"https://api.github.com/users/djtarazona/repos","events_url":"https://api.github.com/users/djtarazona/events{/privacy}","received_events_url":"https://api.github.com/users/djtarazona/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T04:00:37Z","updated_at":"2015-09-20T04:00:37Z","body":"As @earltedly suggested, commenting out the following lines in `Pods-frameworks.sh` solved all issues for me!  Builds to the simulator from Xcode work, archiving from Xcode works, and builds with [`gym`](https://github.com/fastlane/gym) work.\r\n\r\n```\r\n  # Embed linked Swift runtime libraries\r\n  local basename\r\n  basename=\"$(basename \"$1\" | sed -E s/\\\\..+// && exit ${PIPESTATUS[0]})\"\r\n  local swift_runtime_libs\r\n  swift_runtime_libs=$(xcrun otool -LX \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/${basename}.framework/${basename}\" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u  && exit ${PIPESTATUS[0]})\r\n  for lib in $swift_runtime_libs; do\r\n    echo \"rsync -auv \\\"${SWIFT_STDLIB_PATH}/${lib}\\\" \\\"${destination}\\\"\"\r\n    rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"\r\n    code_sign_if_enabled \"${destination}/${lib}\"\r\n  done\r\n```\r\n\r\nI feel like the fix isn't this simple tho.  Is Xcode 7 taking care of copying the appropriate Swift runtime libraries now?\r\n\r\n@segiddins I'll create a pull request with this solution then."}}