Forums

OverviewV-Play 2 Support (Qt 5) › Failed to build game on iOS device

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #14858

    Caeser

    The Device is being recognized but when I click run, it throws an error

    :-1: error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “com.yourcompany.wizardEVP.<wbr />Hello” were found.
    <div></div>
    <div>:-1: error: Xcodebuild failed.</div>
    <div></div>
    <div>My current X-Code is 7.3.1 with OS Ex El Captain.</div>
    <div></div>
    <div>The game can successfully build on the iOS simulator but not on a device</div>
    <div></div>
    <div></div>

    #14859

    Marcin

    Hi,
    You are trying to deploy to an iPhone/iPad, right?
    Are you aware that, even to deploy locally to your device, you need to have apple developer account(100 dollars per year).
    It looks like it fails because it can not find private keys which are bound to the device(deployed to device) and your apple developer account.

    Try with Android device, should work fine without any special developer accounts.

    #14861

    Günther
    V-Play Team

    Hi Caeser!

    As Marcin said, also for local deployment, it is required to set up your Apple developer account and provisioning profiles. This is also mentioned in our docs about iOS Deplyoment. It is a restriction by apple and applies to all iOS apps, so with a bit of research you can find many guides online that explain step-by-step how this works.

    You can also directly use xCode without V-Play/QtCreator until you can successfully deploy an iOS app to your device. If everything is set up correctly so xCode can build and deploy the app, your Qt Creator build will automatically use your Signing Identity and Provisioning Profile and you can also deploy your V-Play apps to the device with Qt Creator.

    Best,
    Günther

     

    #14864

    Caeser

    Hi Gunther,

    “Apple changed its policy regarding permissions required to build and run apps on devices. Until now, Apple required users to pay $99/year to become a member of Apple’s Developer Program in order to run code on physical iPhone and iPads. As part of the new Developer Program, this is no longer required. Apps can be tested on devices, no purchase necessary”

    This is actually true but it seems not to work with directly Qt V-Play.

    I tried directly using Xcode and the game worked on my iPad. although this method takes very long to successfully build the project for the device.  and with this I was able to finally start building using Qt Creator.

    Another Issue I am facing is the game audio does not function on the iOS device.  i get the error

    “QSoundEffect(qaudio): Error decoding source”

     

     

     

     

     

    #14873

    Günther
    V-Play Team

    Glad to hear you can build with Qt Creator now.

    We can have a look at the audio issue, which project are you testing and which device/os version are you using?

    Best,
    Günther

    #14876

    Caeser

    Hi Gunther,

    I noticed my other game’s audio seems to be working fine on the devices.

    I will further look into the matter if I fail will ask for help.

    Thanks

    #14961

    Marcin

    Hi Caeser,
    Could you give my some tips how did you manage to deploy Qt application with XCode (to skip developer account issues with QtCreator)?
    Do I understand it correctly, that by doing this you were able to later deploy the same app from QtCreator itself?
    Any hints are welcome.

    Thanks,
    Marcin

    #14963

    Caeser

    Hi Marcin,

    To deploy Qt application with XCode.

    I am using XCode 7.3.1 on OS Ex El Captain

    Here is the step I usually follow

    Build your game project from Qt Creator using the “iphoneos_clang_Qt_5_7_0_for_iOS-Debug”

    You will receive two issues

    :-1: error: No provisioning profiles found: No non–expired provisioning profiles were found.

    :-1: error: Xcodebuild failed.

    Now Open XCode and try to successfully build one sample project on your iOS device, this is so to confirm that Xcode can fix issues. Normally during this step is when you may get a dialog saying “Failed to code sign “Sample Project”. and it will offer you a suggestion to “fix issues”. For this step please follow

    http://stackoverflow.com/questions/30727099/how-to-run-apps-on-iphone-ipad-using-xcode-7-without-enrolling-to-apples-develo

    http://www.wastedpotential.com/running-xcode-projects-on-a-device-without-a-developer-account-in-xcode-7/

    Once you are done with the step above your sample project should run on your iOS device and the next step is pretty easy.

    Now building the Qt project.

    First identify the build folder it should be something similar to “build-QtGameProject-iphoneos_clang_Qt_5_7_0_for_iOS-Debug”

    Open the folder and you will see a file with the extension  “.xcodeproj”

    Open that file

    It should open in XCode

    Set the active scheme to your iOS device

    Click the Build button

    First time it will pop up a dialog “Failed to code sign”

    Select “fix issue”

    Choose a development team to use for the provisioning, this is actually the one you setup with the sample XCode project.

    Your QtCreator game project should now start running on your iOS device.

     

     

     

     

     

    #14965

    Marcin

    Hi Caeser,
    Thank you for your help.
    I understand now the whole process.
    Deploying works from QtCreator  to iPhone without any issues  and without developer account.
    Great.

    Thanks,
    Marcin

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

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support