iOS Question Error when compiling to simulator

kreativa

Member
Licensed User
Longtime User
Hi,
i'm writing a ios app. When i test it with my iphone everything works.
Now i'm trying to testi it with the simulator and i receive this error

Nb B4ios 4.0 with local compiler updated to 4.3

B4i Version: 4.30
Parsing code. (0.06s)
Compiling code. (0.30s)
Compiling layouts code. (0.01s)
Compiling debugger engine code. (1.67s)
Building Xcode project (0.19s)
Sending data to remote compiler. Error
Out: Build settings from command line:
ARCHS = x86_64
CODE_SIGNING_REQUIRED = NO
CONFIGURATION_BUILD_DIR = /Users/MBluke/Documents/SERVER/UploadedProjects/<user id>/Payload
PRODUCT_NAME = Sos Carro
SDKROOT = iphonesimulator11.1

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

ld: warning: ignoring file ../../Libs/libiGoogleMaps.a, missing required architecture x86_64 in file ../../Libs/libiGoogleMaps.a (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_B4IGoogleMap", referenced from:
objc-class-ref in b4i_content.o
"_OBJC_CLASS_$_B4IMarker", referenced from:
objc-class-ref in b4i_content.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
Ld Payload/Sos\ Carro.app/Sos\ Carro normal x86_64
(1 failure)
 

kreativa

Member
Licensed User
Longtime User
Which version of B4i builder are you running?

It seems like you are using an old version of libiGoogleMaps.a (in the builder Libs folder).

Builder: 4.30


But the strange thing is that on mi iphone works correctly!
 
Last edited:
Upvote 0

kreativa

Member
Licensed User
Longtime User
Compare libiGoogleMaps attributes from this page: http://63.135.170.51:51041/test and your server.

Are they the same?

You can also open a terminal in the Libs folder and run: lipo -i *.a
It should show armv7 x86_64 arm64 for libGoogleMaps.a
No! libiGoogleMaps are not the same. This is my file:
ibiGoogleMaps, size=165408, modified=04/25/2017 05:23:43

the lipo for libs file is:
Architectures in the fat file: libiGoogleMaps.a are: armv7 i386 arm64

Maybe i need to update the file? Where i can find it
 
Upvote 0

kreativa

Member
Licensed User
Longtime User
i386 is no longer relevant. It is the 32 bit simulator binary.

I'm pretty sure that the updated library should be in the Mac builder zip file. Make sure to update the Libs folder.
Ok fixed!

When i've installed the new version of builder i copied the framework of GoogleMaps and i've overvrite the libiGoogleMaps with the older version.
Excuse me!!
 
Upvote 0
Top