{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/301","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/301/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/301/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/301","id":125630158,"number":301,"title":"Cannot archive project with AWSCore when Bitcode is ENABLED","user":{"login":"irlabs","id":622169,"avatar_url":"https://avatars.githubusercontent.com/u/622169?v=3","gravatar_id":"","url":"https://api.github.com/users/irlabs","html_url":"https://github.com/irlabs","followers_url":"https://api.github.com/users/irlabs/followers","following_url":"https://api.github.com/users/irlabs/following{/other_user}","gists_url":"https://api.github.com/users/irlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/irlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irlabs/subscriptions","organizations_url":"https://api.github.com/users/irlabs/orgs","repos_url":"https://api.github.com/users/irlabs/repos","events_url":"https://api.github.com/users/irlabs/events{/privacy}","received_events_url":"https://api.github.com/users/irlabs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-08T15:16:25Z","updated_at":"2016-01-08T19:43:35Z","closed_at":null,"body":"There is a problem with the latest version (2.3.3) of the AWS SDK for iOS and Bitcode.\r\n\r\nWhen I\r\n\r\n1. start a vanilla Xcode iOS swift project (with *Enable Bitcode = YES* by default),\r\n2. add the `AWSCore.framework`,\r\n3. use the `AWSCredentialsProvider` protocol simply like this:\r\n    ```\r\nimport AWSCore\r\n\r\nlet provider = AWSAnonymousCredentialsProvider()\r\nprint(provider)\r\n```\r\n4. and then try to **Archive**,\r\n\r\nXcode fails and gives me this error:\r\n\r\n```\r\nld: bitcode bundle could not be generated because '.../BitcodeBugExample/lib/\r\nAWSCore.framework/AWSCore(AWSCredentialsProvider.o)' was built without full bitcode.\r\nAll object files and libraries for bitcode must be generated from Xcode Archive or\r\nInstall build for architecture arm64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```\r\n\r\n----\r\n\r\nI've put an this vanilla example project (**with the above bug**) on github: [irlabs/AWSSDKBitcodeProblem](https://github.com/irlabs/AWSSDKBitcodeProblem)\r\n\r\n----\r\n\r\nWhen I build the `AWSCore.framework` myself with `OTHER_CFLAGS=\"-fembed-bitcode -Qunused-arguments\"` in `Scripts/SdkPackage.sh` it *does* work.\r\n\r\n\r\nI am Running Xcode 7.2 \r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/comments/170104094","html_url":"https://github.com/aws/aws-sdk-ios/issues/301#issuecomment-170104094","issue_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/301","id":170104094,"user":{"login":"yosuke-matsuda","id":1459206,"avatar_url":"https://avatars.githubusercontent.com/u/1459206?v=3","gravatar_id":"","url":"https://api.github.com/users/yosuke-matsuda","html_url":"https://github.com/yosuke-matsuda","followers_url":"https://api.github.com/users/yosuke-matsuda/followers","following_url":"https://api.github.com/users/yosuke-matsuda/following{/other_user}","gists_url":"https://api.github.com/users/yosuke-matsuda/gists{/gist_id}","starred_url":"https://api.github.com/users/yosuke-matsuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosuke-matsuda/subscriptions","organizations_url":"https://api.github.com/users/yosuke-matsuda/orgs","repos_url":"https://api.github.com/users/yosuke-matsuda/repos","events_url":"https://api.github.com/users/yosuke-matsuda/events{/privacy}","received_events_url":"https://api.github.com/users/yosuke-matsuda/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T19:43:35Z","updated_at":"2016-01-08T19:43:35Z","body":"The frameworks seem to be built using `-fembed-bitcode-marker` instead of `-fembed-bitcode`. Thank you for bringing this issue to our attention. We will fix the build process. Thanks."}}