How to generate XCode project with Visualizer?

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi everyone,

I understand we can get the Xcode project when running the App in the iOs emulator - but if my App is for both iPhone and iPad the generated code, when running the emulator, will only create the project for iPhone or iPad, not universal. Is their a way to create the project and open it for both iPad and iPhone ?

Regards,

Hi @Svwvh Wvtson​ ,

For iOS and Android platforms, we can build an application in universal binary format, allowing the application to run on both mobile and tablet channels.

For more information, Please refer the below doc link

https://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/BuildUniversalApp.htm

Hi, by building the application the way is mentioned in the documentation link you sent, where do I find the XCode generated project?

Regards,

I think this post should help you.

https://basecamp.kony.com/s/question/0D56A00000ErornSAB/after-building-a-universal-app-using-the-latest-visualizer-8-how-do-i-create-an-ipa-that-will-choose-the-correct-mobile-or-tablet-forms-based-on-the-device-choosing-ipad-simulator-in-xcode-shows-iphone-forms

It has a detailed description as to how to open your XCODE automatically while generating IPA.

You can also refer the following documentation link for how to configure your Visualizer to generate IPA automatically.

http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Default.htm#iOS_Automatic_Output_Generation.htm#Prerequi

From your question, I understood that want to create a single application which runs for both iPhone and iPad instead Universal app.

Below are the answers/technical limitations for your questions.

1) We can run iPhone app in both iPhone and iPad, but UI of iPhone app in iPad will be bit enlarged.

2) We cannot run iPad app into iPhone application.

So create a iPhone application to serve your purpose , to create a single app and run it on both iPhone and iPad, but UI is the only consideration, it means that we wont get full pledged UI as expected for iPad, UI will be a challenge.

If we want UI also to be good to look as it as a iPad and iPhone app, then we should have separate forms to create for separate targets.

Hope i have answered all your quires, reply back if any further quires.

Hi @Bwivn Gweene​ thank you for your message - I have separate forms for Ipad and for Iphone, this is not my challenge.

Hi @Luke Mvwtin​ thank you for your message - I will try this now.

Regards,

Hi @Luke Mvwtin​ , by:

  1. Product > Build Universal
  2. Product > Launch Emulator > "Device Name" > Native
  3. Then Open the Project in Xcode

Building/Run the project in Xcode will install the App in iPhone with the iPhone forms and will install the App in iPad with iPad forms.

Thank you all for your help!

Regards,