{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/684","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/684/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/684/events","html_url":"https://github.com/fastlane/fastlane/issues/684","id":110785460,"number":684,"title":"how can I change the new PRODUCT_BUNDLE_IDENTIFIER in Xcode7","user":{"login":"everettjf","id":1665109,"avatar_url":"https://avatars.githubusercontent.com/u/1665109?v=3","gravatar_id":"","url":"https://api.github.com/users/everettjf","html_url":"https://github.com/everettjf","followers_url":"https://api.github.com/users/everettjf/followers","following_url":"https://api.github.com/users/everettjf/following{/other_user}","gists_url":"https://api.github.com/users/everettjf/gists{/gist_id}","starred_url":"https://api.github.com/users/everettjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everettjf/subscriptions","organizations_url":"https://api.github.com/users/everettjf/orgs","repos_url":"https://api.github.com/users/everettjf/repos","events_url":"https://api.github.com/users/everettjf/events{/privacy}","received_events_url":"https://api.github.com/users/everettjf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":41,"created_at":"2015-10-10T10:10:43Z","updated_at":"2016-03-22T19:57:43Z","closed_at":"2015-12-03T04:11:39Z","body":"Apple says in the Xcode 7 release notes that PRODUCT_BUNDLE_IDENTIFIER is now \"the recommended place to set the Bundle Identifier for a target.\" So if you're using BUNDLE_IDENTIFIER anyplace else in your project, you have to change it to PRODUCT_BUNDLE_IDENTIFIER to keep things in sync.\r\n\r\nhttp://stackoverflow.com/questions/32510153/installation-failed-invalid-argument-after-moving-to-xcode-7\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/199991370","html_url":"https://github.com/fastlane/fastlane/issues/684#issuecomment-199991370","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/684","id":199991370,"user":{"login":"fisch0920","id":552829,"avatar_url":"https://avatars.githubusercontent.com/u/552829?v=3","gravatar_id":"","url":"https://api.github.com/users/fisch0920","html_url":"https://github.com/fisch0920","followers_url":"https://api.github.com/users/fisch0920/followers","following_url":"https://api.github.com/users/fisch0920/following{/other_user}","gists_url":"https://api.github.com/users/fisch0920/gists{/gist_id}","starred_url":"https://api.github.com/users/fisch0920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fisch0920/subscriptions","organizations_url":"https://api.github.com/users/fisch0920/orgs","repos_url":"https://api.github.com/users/fisch0920/repos","events_url":"https://api.github.com/users/fisch0920/events{/privacy}","received_events_url":"https://api.github.com/users/fisch0920/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T19:57:43Z","updated_at":"2016-03-22T19:57:43Z","body":"Thanks @Sega-Zero.  I'm currently using this stand-in for `get_app_identifier`:\r\n\r\n```ruby\r\n  require 'xcodeproj'\r\n\r\n  def get_app_identifier(params)\r\n    info_plist_key = 'INFOPLIST_FILE'\r\n    identifier_key = 'PRODUCT_BUNDLE_IDENTIFIER'\r\n\r\n    app_id = get_info_plist_value(key: 'CFBundleIdentifier', path: params[:plist_path])\r\n\r\n    if app_id == \"$(#{identifier_key})\" then\r\n      path = File.expand_path(File.join(ENV['PWD'], params[:xcodeproj]))\r\n      puts 'get_app_identifier'.blue\r\n      puts path\r\n      project = Xcodeproj::Project.open(path)\r\n\r\n      # Fetch the build configuration objects\r\n      configs = project.objects.select { |obj| obj.isa == 'XCBuildConfiguration' && !obj.build_settings[identifier_key].nil? }\r\n      raise \"Info plist uses $(#{identifier_key}), but xcodeproj does not\".red unless configs.count > 0\r\n\r\n      configs = configs.select { |obj| obj.build_settings[info_plist_key] == params[:plist_path] }\r\n      raise \"Xcodeproj doesn't have configuration with info plist #{params[:plist_path]}.\".red unless configs.count > 0\r\n\r\n      configs.each do |c|\r\n        return c.build_settings[identifier_key]\r\n      end\r\n    end\r\n\r\n    return app_id\r\n  end\r\n```"}}