[Interest] Qt iOS and App Extensions
Robert Iakobashvili
coroberti at gmail.com
Sun May 21 12:19:14 CEST 2017
Nuno,
I assumed that this is not an option.
Sorry.
Kind regards,
Robert
On Sun, May 21, 2017 at 1:13 PM, Nuno Santos <nunosantos at imaginando.pt> wrote:
> Robert,
>
> There is clearly a communication problem here. Maybe I’m not using the correct word.
>
> I want to know how to make an App Extension from QtCreator. In summary:
>
> - In order to create an app extension with Qt Creator what should be the qmake flags?
>
> I want to bypass Xcode. Is this possible?
>
> Regards,
>
> Nuno
>
>> On 21 May 2017, at 10:12, Robert Iakobashvili <coroberti at gmail.com> wrote:
>>
>> Yes, you can add frameworks to an extension like to
>> any other project in XCode.
>>
>> So it can look like:
>>
>> Swift GUI <-> Obj-C-Bridging Code <-> C++ business logic using your
>> frameworks/components.
>>
>> But do not forget the memory limit - 30 MB.
>>
>> Take care.
>>
>> Kind regards,
>> Robert
>>
>>
>> On Sun, May 21, 2017 at 12:02 PM, Robert Iakobashvili
>> <coroberti at gmail.com> wrote:
>>> Dear Nuno,
>>> Whatever I did was completely decoupled from Qt.
>>>
>>> Only XCode project - it was an app with its bundle and within an app
>>> it was a sub-app bundle.
>>>
>>> But there are many types of extensions.
>>>
>>> So, starting from an example of your extension and extending
>>> it could be the right path.
>>>
>>> If you find you still have memory up to 30 MB, you can link
>>> QtCore if it helps you.
>>>
>>> Your business logic could be in C++ and Swift interface can talk back
>>> and forth with C++ via an objective-C Bridge - even with debugging
>>> going smoothly between the pieces.
>>>
>>> Sorry for being not too much helpful with a Qt-path.
>>> Kind regards,
>>> Robert
>>>
>>>
>>> On Sun, May 21, 2017 at 11:51 AM, Nuno Santos <nunosantos at imaginando.pt> wrote:
>>>> Robert,
>>>>
>>>> Right now I’m more interested in how to put things together.
>>>>
>>>> Were you able to do it?
>>>>
>>>> Where are you coding the extension? With Qt Creator or Xcode?
>>>>
>>>> How are you setting the project?
>>>>
>>>> Can the app extension be deployed as a plugin? Like a .component? A dynamic
>>>> library packed in a bundle?
>>>>
>>>> Because I have already done a AudioUnit in the past and I can make it with
>>>> Qt using the following flags:
>>>>
>>>> CONFIG += lib_bundle shared
>>>>
>>>> The thing is that QtCreator doesn’t handle the packaging so I have to
>>>> manually do everything.
>>>>
>>>> But as for App Extensions I don’t know exactly what they are. I have a Xcode
>>>> example but with Xcode is always hard to decipher how things were made.
>>>>
>>>> Regards,
>>>>
>>>> Nuno
>>>>
>>>> On 21 May 2017, at 05:20, Robert Iakobashvili <coroberti at gmail.com> wrote:
>>>>
>>>> On Sat, May 20, 2017 at 7:54 PM, Nuno Santos <nunosantos at imaginando.pt>
>>>> wrote:
>>>>
>>>> HI,
>>>>
>>>> I’m trying to develop an app extension for my Qt iOS app but I don’t know
>>>> what kind of target it is.
>>>>
>>>> I always try to use Qt Creator to handle my Qt based projects. In case of
>>>> iOS projects I try to use only Xcode to deployment and debug.
>>>>
>>>> Is an app extension a framework or a executable?
>>>>
>>>> As anyone tried this before?
>>>>
>>>> I want to know how to configure the app extension on Qt Creator .pro
>>>>
>>>> Regards,
>>>>
>>>> Nuno
>>>>
>>>>
>>>> Hi Nuno,
>>>> When doing it recently, it appears that there's a unpublished memory
>>>> limit of up to 30 MB imposed by Apple that an extension is allowed.
>>>>
>>>> Initially, I was planning to use Swift interface with QtCore classes in my
>>>> core logic connected by an Objective-C Bridge.
>>>>
>>>> However, due to the memory limitations, I've migrated from Qt to
>>>> some C-written hash maps, etc containers with less pointers and less
>>>> consumption of memory.
>>>>
>>>> Take care.
>>>>
>>>> Kind regards,
>>>> Robert
>>>>
>>>>
>
More information about the Interest
mailing list