{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3303","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3303/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3303/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3303/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3303","id":127782151,"number":3303,"title":"_AFURLSessionTaskSwizzling breaks NSBundle localizedStringForKey","user":{"login":"astralbodies","id":373903,"avatar_url":"https://avatars.githubusercontent.com/u/373903?v=3","gravatar_id":"","url":"https://api.github.com/users/astralbodies","html_url":"https://github.com/astralbodies","followers_url":"https://api.github.com/users/astralbodies/followers","following_url":"https://api.github.com/users/astralbodies/following{/other_user}","gists_url":"https://api.github.com/users/astralbodies/gists{/gist_id}","starred_url":"https://api.github.com/users/astralbodies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astralbodies/subscriptions","organizations_url":"https://api.github.com/users/astralbodies/orgs","repos_url":"https://api.github.com/users/astralbodies/repos","events_url":"https://api.github.com/users/astralbodies/events{/privacy}","received_events_url":"https://api.github.com/users/astralbodies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-20T20:57:38Z","updated_at":"2016-01-20T21:11:29Z","closed_at":null,"body":"I'm trying to use the launch argument `-NSDoubleLocalizedStrings YES` to have all localizable strings doubled for assistance with layout. For some reason I couldn't get it to work on the WordPress-iOS project. After some digging I found out that the `_AFURLSessionTaskSwizzling` swizzling method breaks `[NSBundle localizedStringForKey..]`.\r\n\r\nI'm no expert on swizzling but I can provide the steps to reproduce.\r\n\r\n1. Use the iOS Example project straight from GitHub.\r\n2. Change the launch arguments for the iOS scheme and add `-NSDoubleLocalizedStrings YES` as an argument.\r\n3. Launch the app. Notice the title bar doesn't duplicate the text.\r\n\r\nNow, remove the entire interface and implementation of `_AFURLSessionTaskSwizzling` from `AFURLSessionManager.m`. Perform the steps above and notice that the title text duplicates as expected."},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/comments/173360001","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3303#issuecomment-173360001","issue_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3303","id":173360001,"user":{"login":"astralbodies","id":373903,"avatar_url":"https://avatars.githubusercontent.com/u/373903?v=3","gravatar_id":"","url":"https://api.github.com/users/astralbodies","html_url":"https://github.com/astralbodies","followers_url":"https://api.github.com/users/astralbodies/followers","following_url":"https://api.github.com/users/astralbodies/following{/other_user}","gists_url":"https://api.github.com/users/astralbodies/gists{/gist_id}","starred_url":"https://api.github.com/users/astralbodies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astralbodies/subscriptions","organizations_url":"https://api.github.com/users/astralbodies/orgs","repos_url":"https://api.github.com/users/astralbodies/repos","events_url":"https://api.github.com/users/astralbodies/events{/privacy}","received_events_url":"https://api.github.com/users/astralbodies/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T21:11:29Z","updated_at":"2016-01-20T21:11:29Z","body":"So I did more digging - the problem is coming from this single line in the swizzle:\r\n\r\n```\r\n[localDataTask cancel];\r\n```\r\n\r\nComment out that line and the localized strings are duplicated."}}