iOS Question Google Maps Compile Time Issue

Haris Hafeez

Active Member
Licensed User
Longtime User
Hi All,

Just looking at the Google Maps example from here. I'm using the Google Maps framework zip file from here and have also created the API key over at Google dev console(though I can't get that far anyways).

I am getting a compile time error when building the sample app like shown below. I know it has been reported in the GMaps thread as well but the solution has not been mentioned. Can someone help me resolve this?

Undefined symbols for architecture i386:
"_vImageBoxConvolve_Planar8", referenced from:
(anonymous namespace)::CreateBlurredImage(CGImage*, float, float) in GoogleMaps
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
UPDATE: I just tried it with the latest version of Google Maps framework from this link: https://github.com/CocoaPods/Specs/blob/master/Specs/GoogleMaps/1.11.1/GoogleMaps.podspec.json

This is the official, new version of the framework(1.11.1) but it still generates the above error.

Following are the environment details:
Mac OSX El Capitan 10.11.3
Xcode 7.2.1
Java: JDK 1.8.0_72
B4i Build Server: 2.3
 
Last edited:

moore_it

Well-Known Member
Licensed User
Longtime User
have you tried to put in main

#PlistExtra:<key>NSLocationWhenInUseUsageDescription</key><string>Used to display the current navigation data.</string>
#PlistExtra:<key>NSLocationUsageDescription</key><string>Used to display the current navigation data.</string>

??
 
Upvote 0

Haris Hafeez

Active Member
Licensed User
Longtime User
The answer to both the questions is yes and yes. I've got the PlistExtra defined and the latest library downloaded and deployed to the mac server.
 
Upvote 0

Haris Hafeez

Active Member
Licensed User
Longtime User
Unfortunately, no. I get the same error (similar as with my local mac builder its building x86 for the simulator)

UploadedProjects/<user id>/Payload/GMaps.app/GMaps
ld: warning: object file (../../Libs/libiGoogleMaps.a(B4IGoogleMap.o)) was built for newer iOS version (8.0) than being linked (7.0)
Undefined symbols for architecture armv7:
"_vImageBoxConvolve_Planar8", referenced from:
(anonymous namespace)::CreateBlurredImage(CGImage*, float, float) in GoogleMaps
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **

Edit: Am using B4i v2.3
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Check again that you are using the latest version of this library.

SS-2016-02-04_12.45.45.png


If you are then restart the IDE and try again.
 
Upvote 0

Haris Hafeez

Active Member
Licensed User
Longtime User
Ok this is a bit strange. B4i is showing iGoogleMaps 1.05 whereas when I open the xml file in the libraries folder (where I copied the update to), I can see version 1.1.
upload_2016-2-4_10-50-36.png
 
Upvote 0
Top