Troubleshooting re-signing of the BMC Remedy with Smart IT App

Version 22
    Share This:

    Troubleshooting re-signing of the BMC SmartIT iOS App

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


    PRODUCTSmartIT


    APPLIES TOSmartIT

     

    PROBLEM:

    SmartIT iOS App Resigning Troubleshooting. This topic contains troubleshooting tips for issues you might encounter in SmartIT 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.

     

    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 distribution 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.


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

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

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

     

     

    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.


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

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

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

     

     

    Issue: In resign utility app, after I click “Resign”, there is an error dialog box.

    Causes: There are different errors, possible causes can be

    1. You haven’t specified the correct xcarchive file or the version is not the right one.
    2. Values entered in the entitlements of SmartIT/Watch/WatchExtensions are invalid.
    3. Provisioning profiles does not match with the entitlements. Double check all the values mentioned in the entitlement files are correct and matching with Provisioning profile > entitlements.
    4. Required values from Project Configurations are empty.
    5. The selected distribution certificate is either invalid or you have selected the app store distribution certificate instead of an enterprise distribution certificate.
    6. Your provisioning profiles are not copied correctly to Xcode. Please open the provisioning profiles in Xcode or just drag and drop all provisioning profiles on Xcode and restart the Resigning Utility and try to resign.

     

     

    Issue: Export archive failed

    Provisioning profile "Smart Mobile" doesn't support the iCloud.com.bmc.bsmapps.Galileo iCloud Container etc...

    or

    Provisioning profile "profile name" doesn't support the "X.Y.Z" values..

     

    Solution: Known Issue. Fix available in the latest Resign.dmg

    If you are using a smart reporting app, please get and use the latest smart reporting app from BMC along with this Resigning Utility.

     

    If you are still facing the same issue after using the latest Utility, then please perform below steps on your Mac

    1. Delete the old Resign.dmg and ResigningUtility.app

    2. Restart your Mac

    3. Download latest Resign.dmg

    4. Open Resign.dmg and then ResigningUtility.app

    5. Create new project for SmartIT

    6. Click on Auto Generate button and provide the provisioning Profile path to update Entitlement files and Configurations automatically . Make sure Entitlement files and values present in the Configurations tab are updated correctly.

    7. After that, Drag and Drop all 3 provisioning profiles on Xcode (icon from the Dock)

    8. Then Go to the next screen of the Utility and provide xcarchive/IPA path and select the Distribution Certificate.

    9. Resign and install latest Resigned IPA from Builds folder

     

    Issue: Error: App was signed with invalid entitlements and provisioning profiles

     

    Solution: Identifier are case sensitive so we have to keep the identifier same in both Provisioning Profile and entitlement.

    Download latest Resign.dmg and use new feature(Auto generate) to update the entitlement and configurations automatically.

     

    Issue: When you open Resigning Utility, If you get an error like "Resigning Utility cannot be opened... etc"

     

      1. Open System Preferences.app
      2. Go to Security and Privacy > General
      3. Click on Open anyway button
      4. Then open Resigning Utility and continue with Resigning process.

     

     

     

    Issue: The resigned app can’t be installed or Resigning is successful but the App does not get installed and the app icon turns GREYED OUT.

    or If you see error "The executable was signed with invalid entitlements" in the logs ,

    or If you see below error in the console logs.

    Screen Shot 2020-01-09 at 3.44.26 PM.png

     

    Solution:

     

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

    Note: If you do not enable 'iCloud', 'push notifications' you will need to enable 'iCloud', 'push notifications' and regenerate the provisioning profiles.


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


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



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




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

     

    7.  Bundle Identifiers entered in the Configurations should not contain the prefix team identifier.

     

     

    8.  Please double check the values entered in the Resigning Configurations are correct and valid.

     

    9.  Your device has iOS 10.3 or earlier that does not support smart IT.

     

    10. Double check the bundle identifiers are correct and has the valid prefix for watch and watch extensions bundle IDs.

      1.         iPhone App's Bundle Id : com.domain.yourappname
      2.           Watch App's Bundle Id: com.domain.yourappname.watchkit
      3.           Watchkit's Extension Bundle Id: com.domain.yourappname.watchkit.extension

     

     

    Issue: Signature verification failed

    Solution: Make sure you are running Resigning utility on the supported version of the Mac OS and  Xcode app.

     

    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”.