As of 2016/03, the scraping of Apple Developer site is broken.
I don't intend to maintain those scripts as I've migrated our infrastructure to Fastlane. You might want to use sigh, match or a custom solution using spaceship.
DEPRECATED - use fastlane - Ruby lib and scripts to manage Apple development (provisioning profiles, certificates, pbxproject, etc). Former iOSProvisioningProfiles.
License: MIT License
After I've updated ruby to 1.9.3, apple-dev started to fail with such errors:
./apple_dev_center.rb:102:in rescue in main': uninitialized constant OptionParser (NameError) from ./apple_dev_center.rb:100:in
main'
from ./apple_dev_center.rb:113:in `
This was fixed by adding "require 'optparse'"
And next it failed with:
./apple_dev_center.rb:16:in parse_config': uninitialized constant YAML (NameError) from ./apple_dev_center.rb:79:in
parse_command_line'
from ./apple_dev_center.rb:102:in main' from ./apple_dev_center.rb:114:in
This was fixed by adding "require 'yaml'"
Please add this requires into apple-dev-center.rb
Thanks.
Hi i am new to ruby kind of things, So please let me to know how can i use this repository?
I have mac laptop and installed the ruby in my terminal, so please guide me.
Please check main function. It contains some typos with "end" involved.
It's possibly should look like:
def main()
options = parse_command_line(ARGV)
pp = Apple::Dev::ProvisioningProfile.new(options[:profile], options[:certificate])
if options[:verbose]
pp.dump
end # <-- this "end" missed!!!
if (options[:dump])
dumpProfile(pp, options)
elsif (options[:type])
dumpProfileType(pp, options)
end
end
The apple developer portal changed today which has broken all functionality of this script.
Hello,
I'm getting an SSL error while fetching the device list - any idea whats wrong here?
Best regards,
Thomas
~ ~
Fetching devices
/opt/local/lib/ruby2.0/2.0.0/net/http.rb:918:in connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) from /opt/local/lib/ruby2.0/2.0.0/net/http.rb:918:in
block in connect'
from /opt/local/lib/ruby2.0/2.0.0/timeout.rb:52:in timeout' from /opt/local/lib/ruby2.0/2.0.0/net/http.rb:918:in
connect'
from /opt/local/lib/ruby2.0/2.0.0/net/http.rb:862:in do_start' from /opt/local/lib/ruby2.0/2.0.0/net/http.rb:857:in
start'
from /opt/local/lib/ruby2.0/gems/2.0.0/gems/net-http-persistent-2.9/lib/net/http/persistent.rb:691:in start' from /opt/local/lib/ruby2.0/gems/2.0.0/gems/net-http-persistent-2.9/lib/net/http/persistent.rb:631:in
connection_for'
from /opt/local/lib/ruby2.0/gems/2.0.0/gems/net-http-persistent-2.9/lib/net/http/persistent.rb:981:in request' from /opt/local/lib/ruby2.0/gems/2.0.0/gems/mechanize-2.7.2/lib/mechanize/http/agent.rb:257:in
fetch'
from /opt/local/lib/ruby2.0/gems/2.0.0/gems/mechanize-2.7.2/lib/mechanize.rb:432:in get' from /Users/xonion/apple-dev/lib/apple-dev.rb:90:in
load_page_or_login'
from /Users/xonion/apple-dev/lib/apple-dev.rb:262:in read_devices' from /Users/xonion/apple-dev/lib/apple-dev.rb:288:in
fetch_site_data'
from ./bin/apple_dev_center.rb:96:in dumpSite' from ./bin/apple_dev_center.rb:111:in
main'
from ./bin/apple_dev_center.rb:115:in `
From the README:
Extract out the password storage functionality into an reusable encrypted password store for use by ruby scripts (in CI environments).
You could use the fastlane credential manager which uses the Mac OS X Keychain to store and retrieve passwords. It supports multiple Apple IDs.
Hi Jerome,
I'm having problems running the new code on my build server. Using ruby 1.8.7 I get this error message when it tries to verify the provisioning profiles.
Any ideas?
/private/var/root/.jenkins/jobs/iOS Enterprise Provisioning Profiles/workspace/lib/apple-dev.rb:284:in verify': PKCS7 wasn't initialized. (RuntimeError) from /private/var/root/.jenkins/jobs/iOS Enterprise Provisioning Profiles/workspace/lib/apple-dev.rb:284:in
initialize'
from /private/var/root/.jenkins/jobs/iOS Enterprise Provisioning Profiles/workspace/lib/apple-dev.rb:244:in new' from /private/var/root/.jenkins/jobs/iOS Enterprise Provisioning Profiles/workspace/lib/apple-dev.rb:244:in
pp_uuid'
from /private/var/root/.jenkins/jobs/iOS Enterprise Provisioning Profiles/workspace/lib/apple-dev.rb:252:in download_profiles' from /private/var/root/.jenkins/jobs/iOS Enterprise Provisioning Profiles/workspace/lib/apple-dev.rb:248:in
each'
from /private/var/root/.jenkins/jobs/iOS Enterprise Provisioning Profiles/workspace/lib/apple-dev.rb:248:in download_profiles' from /private/var/root/.jenkins/jobs/iOS Enterprise Provisioning Profiles/workspace/lib/apple-dev.rb:236:in
fetch_site_data'
from ./bin/apple_dev_center.rb:94:in dumpSite' from ./bin/apple_dev_center.rb:109:in
main'
from ./bin/apple_dev_center.rb:113
Please update the README file with the latest stuff to get the project going.
apple-dev / bin / apple_dev_center.rb: 50
opts.on( '-n', '--name', 'Use the profile name instead of its UUID as basename when saving them') do
options[:profileFileName] = :name
apple-dev / lib / apple-dev.rb: 254
if profileFileName == :uuid
basename = p.uuid
else
basename = p.name
end
It seams to me, that profileFileName will only ever get the value :name and never :uuid.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.