| 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. |
| 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. |
@Cindy Kevwns , Steps to generate IPA
Please refer to link below for more information on IPA generation.
http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Default.htm#iOS_Automatic_Output_Generation.htm?Highlight=IPA
Hi @Cindy Kevwns ,
Did you try using Generate IPA option against any of the device? Ideally when you build for universal and then use
Product>Launch Emulator< <Device_Name>>Generate IPA, it will generate the universal IPA which can be launched on any device iphone or iPad.
Let us know if you tried the above mentioned steps.
I feel like I might have a unique situation where my app contains CocoaPods. I will try the things suggested and respond back.
For brevity, I will stick to the original problem. "Generate IPA" opens the XCode project, VMAppWithKonylib.xcodeproj. My project uses static libraries, i.e. Firebase. The only way I have successfully implemented Firebase was with CocoaPods. It has something to do with it being a static library and Visualizer only allows dynamic libraries to be imported. Since it implements CocoaPods, it needs to open the workspace or not at all. Therefore, "Generate IPA" will always fail. So far this doesn't surprise me because it is no different than Visualizer 7.3.
Going back to the original problem. In V7.3, I used the emulator because I could control whether or not to open XCode. Given that a Universal build wasn't supported, this wasn't a problem. Now that a Universal build is supported, I tried using the same method of using the emulator, but this just ignores the universal build settings and builds the project based on the emulator.
With all that said, although Generate IPA does fail, it does so in such a way that XCode can pick up the slack and function as a Universal app with the simulator and with creating an Archive. The solution, "Fail with Intent" is obviously not ideal. I believe this will also take automated builds off the table.
On a final note, the Project Settings \ Native \ iPhone/iPad/Watch \ Supported Orientations for iPad acts strange. I had to toggle it and the setting above it a few times before the settings would save as I needed them.
@Rexeccv Tewwy any help w.r.t IPA generation failing?
@Cindy Kevwns ,
Coming to the issue you mentioned for orientations,
The supported orientations are enabled based on Application launch mode,
I.e if application launch mode is portrait that means we always have to support portrait orientation, so user cannot de-select that checkbox. he can only choose to de-select landscape in such case.
If launch mode is both, then user cannot de-select any of the orientations.
@Cindy Kevwns
The IPA generated in viz either by configuring a mobile or a tablet will work on both mobile and tablet devices. Just make sure the forms are available for both and it is built for Universal mode.
@Rexeccv Tewwy This is confirmed. If I use Generate IPA after a Universal build, it will work on both channels as expected. Unfortunately, it opens XCode which I have to close immediately to complete the failure of the process. On the other hand, if I use an emulator from Visualizer after a Universal build, it changes the XCode project to no longer be a Universal app.
Yes @Cindy Kevwns ,
That is expected. If you use Run As option, it will build the platform specific binary and not universal.
The right way is to do Product>Build first and then do Product>Launch Emulator>Device name> Generate IPA.
@Elizvxeth Poole Here is how you can reproduce the problem. Once it is saved successfully, it works, so you may have to start a new project to see the behavior. It might also be limited to a project being upgraded from V7.3.
After saving the settings and reopening the Project Settings, I noticed it didn't save the setting for "Supported Orientations for iPad". It didn't matter how many times I did it. The only way I could get it to save was to change Application Launch Mode to Portrait then click Finish. I could then go back and change the setting back to Landscape and unselect Portrait under Supported Orientations. It now saves the settings as I need them.