Troubleshooting re-signing of the BMC Digital Workplace iOS App

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    MyIT Digital Workplace


    APPLIES TO:

    DWP 19.02



    PROBLEM:

    DWP 19.02 iOS App Resigning Troubleshooting.This topic contains troubleshooting tips for issues you might encounter in DWP iOS App Resigning.


    SOLUTION:

    Issue:   In resign utility app, after I click the root folder of the project and then can’t find General/Configurations/Rebranding tabs.

    Solution:  This issue may due to the fact that some of the files are copied from other folder and the project file is messed up.  You can choose “File>New” from the main menu to create a new resign project.

    Screen shot

    Issue: In resign utility app, after I click “Resign”, the “Select a signing certificate” dropdown is empty, I can’t pick up any item.
     
    Cause: You haven’t downloaded/installed the apple production certificate or the certificate is invalid.

    Solution:
    Generate a certificate signing request (CSR) by using the Certificate Assistant.

    Follow the instructions that Apple provides on the CSR screen.

    Screen shot

    • Upload the CSR to the iOS Provisioning Portal and download the distribution certificate.

    • Double click the certificate and open it with the Key Chain Access application.

    • Make sure your certificate has private key, otherwise it’s invalid.

    Screen shot

    Issue:  In resign utility app, after I click “Resign”, the app is frozen and hang.

    Cause:  Your certificate is invalid.

    Solution:
    • Generate a certificate signing request (CSR) by using the Certificate Assistant.
    Follow the instructions that Apple provides on the CSR screen.

    Screen shot

    • Upload the CSR to the iOS Provisioning Portal, and download the distribution certificate.

    • Double click the certificate, and open it with the Key Chain Access application.

    • Make sure your certificate has private key, otherwise it’s invalid.

    Screen shot

    Issue: In resign utility app, after I click “Resign”, there is an error dialog box.
     
    Cause: There are different errors, one possible cause is that you haven’t specify the correct xcarchive file or the version is not the right one.

    Issue: The resigned app can’t be installed.

    Solution:
     
    1. Is the app for enterprise distribution or app store? If it’s for app store, then it can’t be installed until you publish it.

    2. Check your app ID in your apple developer portal, make sure it has ‘iCloud’, ‘Push notification’ enabled.

    Screen shot

    3. Double check your certificate, make sure it’s not expired and installed in your Mac

    Screen shot

    4. Check your provisioning profile, which should contains your app ID in #2.

    Screen shot

    5. Please check the entitlement file, make sure the app ID is your app ID in #2.

    Screen shot
    6. When you resign the app, please make sure the certificate is the one you download in #3.

    7. When you resign the app, please make sure the provisioning profile is the one you download in #4.

    Issue: The application uploader show error:  duplicate version.
     
    Solution:  In resign utility app,  click “Resign”, choose “App store deployment”,  and then you can change “Appstore version”.

    Screen shot

    Issue: The application uploader show error:  Missing info.plist value. A value for the info.plist key ‘CFBundleIconName’ is missing.

    Solution: Your resign-utility or xcarchive file needs update.

     Make sure you are using the latest resign-utility and latest xcarchive file to resign.  




    Issue: Resign the DWP IOS app, Install the IOS app on your iPhone, launch the app, click on any SRD, try to add an attachment by clicking on Attach button, the IOS app crashes.
    (Applies for DWP 18.02 as well)


    Solution: You need to include iCloud in your entitlement file.

    Screen shot

    OR


    1)When you create a new project using Resign.dmg file, it creates MyIT.entitlement file as below

    +++++++++++
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>application-identifier</key>
        <string>ABCDE-ID.com.bmc.bsmapps.MyIT</string>
        <key>aps-environment</key>
        <string>production</string>
        <key>get-task-allow</key>
        <false/>
        <key>keychain-access-groups</key>
        <array>
            <string>ABCDE-ID.com.bmc.bsmapps.MyIT</string>
        </array>
    </dict>
    </plist>
    ++++++++++++

    2)Update the MyIT.entitlement file and add the below parameters of iCloud (marked in red).

    +++++++++++
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>application-identifier</key>
        <string><ID>.com.bmc.bsmapps.MyIT</string>
        <key>aps-environment</key>
        <string>production</string>
        <key>com.apple.developer.icloud-container-identifiers</key>
        <array>
            <string>iCloud.com.bmc.bsmapps.MyIT</string>
        </array>
        <key>com.apple.developer.icloud-services</key>
        <array>
            <string>CloudDocuments</string>
        </array>
        <key>com.apple.developer.ubiquity-container-identifiers</key>
        <array>
            <string>iCloud.com.bmc.bsmapps.MyIT</string>
        </array>

        <key>get-task-allow</key>
        <false/>
        <key>keychain-access-groups</key>
        <array>
            <string><ID>.com.bmc.bsmapps.MyIT</string>
        </array>
    </dict>
    </plist>

    ++++++++++++

    3)Resign the DWP IPA again
    4)Validate the issue






     


    Article Number:

    000166163


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles