Comments (2)
Hi,
I quickly check the code and the teams information retrieved from the Apple Member Center web page is put into a dictionary - the key is the name and the value is the id.
The displayed teams are the keys of this dictionary, and when you are using ruby 1.8, there's no guaranteed order for the elements in the dictionary.
So it means that you're using ruby 1.8.2 - maybe the one installed by default on your mac machine. Could you run the command ruby --version, please ?
If this is the case, you have two ways to solve your problem,
- you can upgrade to ruby 1.9.3 or 2.0
- you can edit the file cupertino/provisioning_portal/helpers.rb and change the method team with the following:
def team
teams_by_name = []
page.form_with(:name => 'saveTeamSelection').radiobuttons.each do |radio|
name = page.search("label[for=\"#{radio.dom_id}\"]").first.text.strip
teams_by_name << [name, radio.value]
end
name = choose "Select a team:", *teams_by_name.map { |e| e[0] }
@team ||= teams_by_name.find { |e| e[0] == name }[1]
end
from cupertino.
Fixed by 7dc549d.
from cupertino.
Related Issues (20)
- Too many connection resets error HOT 22
- Adding of devices doesn't work HOT 2
- WWDC broke my build: UnexpectedContentError with "ios profiles" commands HOT 4
- error when displaying profiles HOT 4
- iOS devices: add get error HOT 30
- Not able to get information from Apple Enterprise account. No errors in Developer account HOT 1
- Trying to add devices to provision is not working apple aborts and timings out HOT 1
- Connection to developer.apple.com refused HOT 3
- Cupertino::ProvisioningPortal::UnexpectedContentError for ios profiles:list HOT 1
- New Developer Portal, New Woes HOT 1
- Adding a device fails with a 415 error HOT 4
- feature request: I would like to automatically update all development and ad hoc profiles in an account to include every certificate and device HOT 4
- Email linked to different Developer accounts HOT 1
- Login Failure
- Apple has changed profile page downloading - unhandled response (Mechanize::ResponseCodeError) HOT 34
- unable to get devices list HOT 3
- ProvisioningPortal::UnexpectedContentError when downloading profiles HOT 2
- error: Cupertino::ProvisioningPortal::UnexpectedContentError. HOT 10
- cupertino not working HOT 6
- How to mirror Cupertino behaviour in Fastlane HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cupertino.