Code Monkey home page Code Monkey logo

iosprovisioningprofiles's Introduction

iosprovisioningprofiles's People

Contributors

lacostej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

iosprovisioningprofiles's Issues

Error in mobileprovisioning find name

Hi Jerome,

Using the latest version of the mobileprovisioning.rb I'm getting an error when trying to find the Name of the profile. Output from Jenkins below

  • ./mobileprovisioning.rb /Volumes/Jenkins/ProvisioningProfiles/Standard/06D09458-CFCC-4B1D-B7DB-777B5973B621.mobileprovision -d Name
    /Library/Ruby/Gems/1.8/gems/plist-3.1.0/lib/plist/parser.rb:66:in exists?': can't convert nil into String (TypeError) from /Library/Ruby/Gems/1.8/gems/plist-3.1.0/lib/plist/parser.rb:66:ininitialize'
    from /Library/Ruby/Gems/1.8/gems/plist-3.1.0/lib/plist/parser.rb:28:in new' from /Library/Ruby/Gems/1.8/gems/plist-3.1.0/lib/plist/parser.rb:28:inparse_xml'
    from ./mobileprovisioning.rb:56:in dumpProfile' from ./mobileprovisioning.rb:115:inmain'
    from ./mobileprovisioning.rb:121

Dev center script fails with no profiles

Hi,

  1. Thank you so much for this script, it's a lifesaver.
  2. If I've got a license that I use exclusively for distribution, not development, I get an error when running the job.
    Stack trace:
    • ruby ./apple_dev_center.rb -C CONFIGLOCATION.config -u USERNAME -d -O adc/site.json
      ./apple_dev_center.rb:139:in read_profiles': undefined methodtext' for nil:NilClass (NoMethodError)
      from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239:in each' from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:inupto'
      from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in each' from ./apple_dev_center.rb:135:inread_profiles'
      from ./apple_dev_center.rb:153:in read_all_profiles' from ./apple_dev_center.rb:150:ineach'
      from ./apple_dev_center.rb:150:in read_all_profiles' from ./apple_dev_center.rb:176:infetch_site_data'
      from ./apple_dev_center.rb:208:in dumpSite' from ./apple_dev_center.rb:223:inmain'
      from ./apple_dev_center.rb:228
      Fetching devices
      Fetching development profiles
      Fetching distribution profiles
      Build step 'Execute shell' marked build as failure

Tracing it back it looks like it's just failing on an empty row. Can an extra check be added?

Nil error on fetching certificates for enterprise profile

Hi,
I'm getting an error when downloading certificates using the latest script. Stack trace below:

./apple_dev_center.rb:185:in read_certificates_distribution': undefined methodat_xpath' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239:in each' from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:inupto'
from /Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in each' from ./apple_dev_center.rb:183:inread_certificates_distribution'
from ./apple_dev_center.rb:230:in read_all_certificates' from ./apple_dev_center.rb:253:infetch_site_data'
from ./apple_dev_center.rb:295:in dumpSite' from ./apple_dev_center.rb:310:inmain'
from ./apple_dev_center.rb:31

new iOS portal breaks the download

Apple has upgraded the look of the provisioning portal, which I suspect broke this nice app. Can you please make it work again?

Thanks!

xcode: support no preselected profile

Today we can only update a profile instead of automatically one it it isn't properly selected. It should be possible to select a profile automatically instead.

There are a few problems to solve:

  1. I ve failed to implement a working command line pbxproj editor properly using plistBuddy and I am currently using sed
        echo "INFO Replacing ${current_pp_uuid} with ${new_pp_uuid} in $file"
        # this doesn't work as it converts the file into XML and we lose the comments
        # echo ./pbxproj_pp_uuid.sh $file "$configuration" set $new_pp_uuid
        sed "s/${current_pp_uuid}/${new_pp_uuid}/"  ${file} > ${file}.new

This should have called something like

        $plistBuddy $file -c "Set objects:${buildConfigurationObjId}:buildSettings:PROVISIONING_PROFILE[sdk=iphoneos*] ${new_uuid}" 2>/dev/null

but didn't work in my tests. At least, it converted the file to XML and I wanted to keep the original format in order to ensure the config wasn't changed elsewhere.

You can test this using something like

./pbxproj_pp_uuid.sh project.pbxproj 'Ad Hoc' set 9274AB2A-6F96-4BFF-B320-------------

Now XCode may still be able to read XML so this is perhaps not such a big problem.

But for the selection to work, one needs to modify more than just the value of the PROVISIONING_PROFILE.

These are the changes in the project file when I manually go from the default selection to a particular PP:

--- ../project.pbxproj  2012-02-23 10:48:51.000000000 +0100
+++ /Users/lacostej/Code/WWTK/DE.git/target/DragonBox_IOS/Unity-iPhone.xcodeproj/project.pbxproj    2012-02-23 10:57:53.000000000 +0100
@@ -535,7 +535,7 @@
                    armv6,
                    armv7,
                );
-               "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+               "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: We Want To Know SARL";
                GCC_C_LANGUAGE_STANDARD = c99;
                GCC_ENABLE_CPP_EXCEPTIONS = NO;
                GCC_ENABLE_CPP_RTTI = NO;
@@ -547,7 +547,7 @@
                GCC_WARN_UNUSED_VARIABLE = YES;
                OTHER_LDFLAGS = "-Wl,-S,-x";
                PREBINDING = NO;
-               "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
+               "PROVISIONING_PROFILE[sdk=iphoneos*]" = "9274AB2A-6F96-4BFF-B320-------------";
                SDKROOT = iphoneos4.2;
            };
            name = "Ad Hoc";

So we would also need to modify the CODE_SIGN_IDENTITY. This isn't hard in itself, but today I am not managing certificate at all in neither the apple_dev_center.rb script nor the xcode related ruby & bash scripts.

https://github.com/quadion/iOSValidation is an interesting thing to look at for certificate management

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.