Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

iOS Code Signing Error?



  • Hi,
    I'm doing a mobile app. I've tested on Android, it's deploying ok, now I need to test on iOS.
    I've set up a VM with MacOS, installed USB network Gateway and my iPhone is recognized.
    I've the latest xCode (11.6) and the latest iOS on my iPhone SE (iOS 13.6).
    I've managed to send an Hello World test app from xCode to the iPhone.
    I'm now trying to send my QML app from QtCreator.
    I've added this in the pro file:

    ios {
        QMAKE_XCODE_CODE_SIGN_IDENTITY = "iPhone Developer"
        MY_DEVELOPMENT_TEAM.name = "Matthieu Bruel"
        MY_DEVELOPMENT_TEAM.value = MyValueFromXCode
        QMAKE_MAC_XCODE_SETTINGS += MY_DEVELOPMENT_TEAM
    }
    

    I'm getting this signing Error:

    Check dependencies
    Code Signing Error: No profiles for 'Perso.bbLondon1' were found:  Xcode couldn't find any iOS App Development provisioning profiles matching 'Perso.bbLondon1'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.6'
    

    I've tried to create an app in XCode with the same name than my Qt app: (bbLondon1).
    Basically it's another Hello World.
    I send this app to the iPhone.
    Another profile is created in ~/Library/MobileDevice/Provisioning Profiles
    I tried to add the profile id in the pro file:

    ios {
        ...
        QMAKE_PROVISIONING_PROFILE = a1b76d12-e2a4-5c22-1234-a2ff12345678
    }
    

    Now I'm getting this error with or without the QMAKE_PROVISIONING_PROFILE:

    Check dependencies
    Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: Perso.bbLondon1" is Xcode managed, but signing settings require a manually managed profile.
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.6'
    

    Help please, what's the procedure to deploy on an iPhone?
    Another question, I need openssl in the app as I'll access some https APIs. How can I include openssl?
    is there something to add in the pro file like for Android? android: include(/home/bruel/android/android_openssl/openssl.pri)

    Thanks in advance, I'm struggling since 2 days...


  • Lifetime Qt Champion

    Hi,

    Sorry I can't help you with your signing issue but on the OpenSSL side, you do not need it. Qt uses the SecureTransport framework for the Apple OSs. Unless you specifically need OpenSSL in which case you'll have to build Qt yourself.



  • Hi, about the code signing, in your Qt Creator's build settings for your mobile app, is this check box ticked?
    Screenshot 2020-08-11 at 21.04.57.png



  • Cool thanks it is building now :)
    indeed, no need of openssl, an https call is working well from QML. I suppose it will be the same in C++.
    Cheers


Log in to reply