Hi,

I use CMake but I link against CoreLocation framework and libQt5Position and 
also against the plugins like libqtposition_cl and the second plugin.

The libs are all in the link line 

I also enabled the privacy location keys in the info plist file.

The function still returns NULL

Regards
Roman

> Am 20.03.2019 um 12:55 schrieb Alex Blasche <alexander.blas...@qt.io>:
> 
> Hi,
> 
> Here are a few hints what you might want to check upon.
> 
> Do you use cmake or qmake? cmake does not work with static libs. You must use 
> qmake as it works out what dependencies have to be build into binary.
> 
> I suggest you go through your binaries and first verify that you have the 
> relevant qtposition plugin in your set of binaries. It would be under
> Qt/5.12.0/ios/plugins/position/libqtposition_cl.a. As second step ensure that 
> this plugin is part of your applications link line. Last but not least ensure 
> that your application's project file specifically mentions positioning as 
> dependency.
> 
> --
> Alex
> 
> ________________________________________
> From: Roman Wüger <roman.wue...@gmx.at>
> Sent: Wednesday, 20 March 2019 10:07:52 AM
> To: Alex Blasche
> Cc: Qt Project MailingList
> Subject: Re: [Interest] Problems getting QGeoPositionInfoSource working under 
> iOS
> 
> Hello Alex,
> 
> I use the prebuilt binaries from the online Installer.
> 
> Regards
> Roman
> 
>> Am 20.03.2019 um 08:51 schrieb Alex Blasche <alexander.blas...@qt.io>:
>> 
>> Hi,
>> 
>>> From: Interest <interest-boun...@qt-project.org> on behalf of Roman Wüger 
>>> <roman.wue...@gmx.at>
>> 
>>> I try to get QGeoPositionInfoSource::createDefaultSource(this); working 
>>> under iOS 12.1.2 with Qt 5.11.x.
>>> But the function returns always a null pointer.
>> 
>> In general this should work out of the box unless there is a bug...
>> 
>> How did you obtain the binaries? Did you build them by yourself or did you 
>> use binaries obtained via the installer. If you build by yourself please 
>> ensure that
>> 
>> https://code.qt.io/cgit/qt/qtlocation.git/tree/src/plugins/position/corelocation
>> 
>> is built into your binaries.
>> 
>> --
>> Alex
>> _______________________________________________
>> Interest mailing list
>> Interest@qt-project.org
>> https://lists.qt-project.org/listinfo/interest
> 

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to