Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › QtCreator generates invalid Entitlements -Felgo or Qt issue?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18924

    Marcin

    Hi Felgo,
    Need help or I will go crazy.

    I have enrolled in Apple developer program, tested example apps created in Xcode.
    Had no issues in development and app publishing.
    But I can’t say the same for Felgo apps.
    Can develop but I am not able to publish anything.

    First, quick question.
    Could you please create the first template for games(no extra plugins) and try to publish that app on iOS?
    I am not able.
    This is what is happening.
    https://ibb.co/ekkKRc

    The applicaiton-identifier in Entitlements is invalid.
    Wanted to change the invalid values myself but can’t find the right file to do it.
    Apple docs says it is no longer needed in Xcode so even removing it could help.

    What happens in more details.
    Few assumption:  AppleId is 55555, name of ios dev team: “awesome team”, bundle ID: “com.awesometeam.app”, for testing purposes.
    I will replace few values below but will try to keep it relevant and useful.
    What QtCreator makes:

    Entitlements:
    
    {
        "application-identifier" = "55555.awesome team.SimpleAppDemo";
        "com.apple.developer.team-identifier" = 55555;
        "get-task-allow" = 1;
        "keychain-access-groups" =     (
            "55555.awesome team.SimpleAppDemo"
        );
    }

    Obviously applicaiton-identifier is invalid.
    Should be the same as bundleID so: com.awesometeam.app .
    I am not sure about keychain-acccess-groups, looks like here the values could be also invalid and QtCreator uses wrongly my development team name and no bundle id, not sure.
    Definitely Xcode publishing fails on application-identifier.
    I compared the values with app created by Xcode and it uses bundle id everywhere, this is just wrong.
    I am not sure if this is QtCreator issues or maybe some custom changes made by Felgo.

    Any help is appreciated.
    I spend 2 days on trying to fix it.
    I am on the edge of giving up on Qt all together, just so much hassle sometimes.
    This can be my issues just don’t see where.

    Is there a way where I can edit this manually so when Xcode launches the project it has valid values?

    PS. Xcode: 9.3, Mac OS: Sierra: 10.12.16.
    Please tell me if you can replicate the issue, if not maybe I am doing something wrong.
    I tried both automatic signing and manual, the same issue.
    Help.

     

     

    #18926

    Alex
    Felgo Team

    Hi Marcin,

    Can you try adding the following lines to your Qt project file (.pro), run a qmake and let us know if the bundle identifier is still invalid?

    ios {
        Q_PRODUCT_BUNDLE_IDENTIFIER.name = PRODUCT_BUNDLE_IDENTIFIER
        Q_PRODUCT_BUNDLE_IDENTIFIER.value = com.awesometeam.app
        QMAKE_MAC_XCODE_SETTINGS += Q_PRODUCT_BUNDLE_IDENTIFIER
    }

    This should explicitely override any bundle id lines within the generated project file.

    Thanks,

    Alex from Felgo

    #18927

    Marcin

    Hi Alex,
    Thank you for extremely fast answer.
    Yes, that solves the issue.

    Everything is properly overridden and it matches perfectly iTunesConnect settings.
    Upload successful.
    Will probably read more about the pro file configuration possible.
    Not sure if I should report an issue on Qt part or not.

    Anyway, thank you again and have a good weekend.
    Don’t work 🙂

    #19061

    Bas

    Hi,

    where did this come from?

    what causes this? was it xcode?

     

    #19062

    Günther
    Felgo Team

    Qt uses qmake to create the Xcode project when you build for iOS. Afaik, Xcode now seems to rely more on the configured project bundle identifier setting, which is filled with a default value by qmake, when it generates the XCode project.

    This mismatch can then cause issues when archiving with xCode – which hasn’t been a problem for previous versions of Qt / xCode / Felgo. The above lines for the pro file configuration explicitly configure the bundle identifier setting for xCode to avoid a mismatch.

     

    #19063

    Bas

    ok thanx for the answer Gunther.

Viewing 6 posts - 1 through 6 (of 6 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded