首页 \ 问答 \ 如何更改Xcode 4用于下载组件的Apple ID?(How can I change the Apple ID that Xcode 4 uses to download components?)

如何更改Xcode 4用于下载组件的Apple ID?(How can I change the Apple ID that Xcode 4 uses to download components?)

我在OS X 10.6.8上运行Xcode 4.2。

由于公司政策,我有两个苹果公司的ID。 me@bigcorp.com是我的“工作”ID,这是连接到我的iOS开发者计划会员资格的ID。 我也有me@personalmail.com ,我的“个人”ID,这与我的音乐,愤怒的小鸟下载等相关联。

我正在尝试从Xcode(Xcode - >首选项 - >下载 - >组件)中安装iOS 4.3模拟器。 当我点击该组件旁边的“安装”按钮时,Xcode抱怨说me@personalmail.com不是“注册的Apple开发人员”。 我想让它使用me@bigcorp.com ,但我找不到任何描述如何更改它,在Xcode或其他方式的任何参考。 任何人都可以解释如何击败Xcode提交?


I am running Xcode 4.2 on OS X 10.6.8.

Due to corporate policy, I have two Apple ID's. me@bigcorp.com is my "work" ID, and that's the ID that is connected to my iOS Developer Program membership. I also have me@personalmail.com, my "personal" ID, which is associated with my music, Angry Birds download, and so on.

I'm trying to install the iOS 4.3 Simulator from within Xcode (Xcode -> Preferences -> Downloads -> Components). When I click the "install" button next to that component, Xcode complains that me@personalmail.com is not a "Registered Apple Developer". I'd like to have it use me@bigcorp.com, but I can't find any reference anywhere that describes how to change it, within Xcode or otherwise. Can anyone explain how to beat Xcode into submission?


原文:https://stackoverflow.com/questions/7997317
更新时间:2023-01-09 21:01

最满意答案

除非是一个流程,否则我不会在一个场景中这样做。 我不会去xyz.com,我也不会点击,因为那不是'行为。 页面对象将帮助您。

Scenario: Register a new account
Given I do not have an account
When I register a new account
Then I can use those credentials to access the site

然后我会创建适当的步骤

Given(/^I do not have an account%/) do
  @credentials = get_unique_credentials
  @browser = Watir::Browser.new :firefox
end

When(/^I register a new account$/) do
  visit RegistrationPage do |page|
    page.name = @credentials[0]
    page.password = @credentials[1]
    page.register
  end
end

Then(/^I can use those credentials to access the site$/) do
  visit LoginPage do |page|
    page.name = @credentials[0]
    page.password = @credentials[1]
    page.login
  end
  on HomePage do |page|
    expect(page.something).to exist
  end
end

I would not do that in one scenario unless it is one flow. And I wouldn't go to xyz.com, and I wouldn't click on things because that isn't 'behavior. Page objects will help you.

Scenario: Register a new account
Given I do not have an account
When I register a new account
Then I can use those credentials to access the site

Then I'd create appropriate steps

Given(/^I do not have an account%/) do
  @credentials = get_unique_credentials
  @browser = Watir::Browser.new :firefox
end

When(/^I register a new account$/) do
  visit RegistrationPage do |page|
    page.name = @credentials[0]
    page.password = @credentials[1]
    page.register
  end
end

Then(/^I can use those credentials to access the site$/) do
  visit LoginPage do |page|
    page.name = @credentials[0]
    page.password = @credentials[1]
    page.login
  end
  on HomePage do |page|
    expect(page.something).to exist
  end
end

相关问答

更多
  • 除非是一个流程,否则我不会在一个场景中这样做。 我不会去xyz.com,我也不会点击,因为那不是'行为。 页面对象将帮助您。 Scenario: Register a new account Given I do not have an account When I register a new account Then I can use those credentials to access the site 然后我会创建适当的步骤 Given(/^I do not have an account%/ ...
  • 当然,唯一的方法是通过JavaScript,你会这样做: window.onload = function() { document.getElementsByTagName('body')[0].onkeyup = function(e) { var ev = e || event; if(ev.keyCode == 70) {//&& ev.ctrlKey) { //do something... } } }; 要找到所需的特定密钥代 ...
  • 避免使用ID,而是列出组永远不会更改的名称。 So I found out an easy way to test associations. If I say that a I have only one group in scenario, when I am on that step I can create the group with the specific id like this g = Group.create(:name => "Group 1", :id => 1) Then I j ...
  • 我建议通过http://www.pragmaticprogrammer.com/titles/idgtr获取本书,使用Ruby进行脚本GUI测试。 基本上你需要一些方法来驱动你的操作系统在Windows上你可以使用win32ole驱动Wscript例如 s = WIN32OLE.new 'Wscript.Shell' s.Exec 'notepad' 你没有提到什么操作系统等... I would suggest getting the book, Scripted GUI Testing With Ru ...
  • 将env.rb的内容更改为此,现在可以正常工作。 Before('@omniauth_test') do OmniAuth.config.test_mode = true Capybara.default_host = 'http://example.com' OmniAuth.config.add_mock(:twitter, { :uid => '12345', :info => { :name => 'twitteruser', } }) O ...
  • 如果将Cucumber设置为使用Webrat,则可以将Webrat设置为默认使用Mechanize 。 Mechanize本质上是一个无头浏览器。 这是我的env.rb文件的样子: # RSpec require 'rspec/expectations' # Webrat require 'webrat' require 'test/unit/assertions' World(Test::Unit::Assertions) Webrat.configure do |config| config. ...
  • Scenario: Test my stuff Given first var combinations is @var_a_combos Given second var combinations is @var_b_combos When I run every combination Then good stuff should happen @var_a_combos和@var_b_combos是一个Enumerable,它包含该类型的所有可能性。 When I run every combina ...
  • 我从来没有在测试框架中编写大量测试,而是直接跳入工厂女孩和RSpec使用Cucumber,我非常满意。 我觉得很容易描述我想在黄瓜工作的功能。 我一直很难让自己先写单元测试。 所以从我个人的经历来看,我可以鼓励你跳进有趣的东西! I never wrote a lot of tests with the build in testing framework, but jumped right in to use Cucumber with factory girl and RSpec and am VERY ...
  • 您可以使用%x(command)来获取%x(command)的标准输出。 然后,您可以使用Time.parse将"Sat Nov 5 12:04:18 CET 2016"为2016-11-05 12:04:18 +0100作为Time对象,并将其与Time.now进行比较: require 'time' time_from_abc_script = Time.parse(%x(bash abc_qa.sh 1)) puts (Time.now-time_from_abc_script).abs < 5 # ...
  • 这不是在JAX-RS服务中访问服务上下文的正确方法, WebServiceContext类被注入到JAX-WS Web服务中。 在JAX-RS服务类中,您可以使用@Context注释来注入HttpServletRequest请求对象并向其询问标头。 例如: @GET @Path("/login") @Produces(MediaType.APPLICATION_JSON) public String login(@Context HttpServletRequest request); 您可以查看此链接以 ...

相关文章

更多

最新问答

更多
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • Java中的不可变类(Immutable class in Java)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • EXCEL VBA 基础教程下载
  • RoR - 邮件中的动态主体(部分)(RoR - Dynamic body (part) in mailer)
  • 无法在Google Script中返回2D数组?(Can not return 2D Array in Google Script?)
  • JAVA环境变量的设置和对path , classpth ,java_home设置作用和目的?
  • mysql 关于分组查询、时间条件查询
  • 如何使用PowerShell匹配运算符(How to use the PowerShell match operator)
  • Effective C ++,第三版:重载const函数(Effective C++, Third edition: Overloading const function)
  • 如何用DELPHI动态建立MYSQL的数据库和表? 请示出源代码。谢谢!
  • 带有简单redis应用程序的Node.js抛出“未处理的错误”(Node.js with simple redis application throwing 'unhandled error')
  • 使用前端框架带来哪些好处,相对于使用jquery
  • Ruby将字符串($ 100.99)转换为float或BigDecimal(Ruby convert string ($100.99) to float or BigDecimal)
  • 高考完可以去做些什么?注意什么?
  • 如何声明放在main之后的类模板?(How do I declare a class template that is placed after the main?)
  • 如何使用XSLT基于兄弟姐妹对元素进行分组(How to group elements based on their siblings using XSLT)
  • 在wordpress中的所有页面的标志(Logo in all pages in wordpress)
  • R:使用rollapply对列组进行求和的问题(R: Problems using rollapply to sum groups of columns)
  • Allauth不会保存其他字段(Allauth will not save additional fields)
  • python中使用sys模块中sys.exit()好像不能退出?
  • 将Int拆分为3个字节并返回C语言(Splitting an Int to 3 bytes and back in C)
  • 在SD / MMC中启用DDR会导致问题吗?(Enabling DDR in SD/MMC causes problems? CMD 11 gives a response but the voltage switch wont complete)
  • sed没有按预期工作,从字符串中间删除特殊字符(sed not working as expected, removing special character from middle of string)
  • 如何将字符串转换为Elixir中的函数(how to convert a string to a function in Elixir)