iOS Question Build Failed in Local Mac Builder

Similar threads

B4i Question Merging OBJC code
B4i Question XCode 11 error
B4i Question TableView Local Mac Error
B4i Question Firebase error
B4i Question Compile Fails
B4i Question [Solved]Problems with iGoogle Maps

Steve Kwok

Licensed User
Hi, everyone,

my B4i project found build failed in my local mac builder since it contains iMapList Library.

I had downloaded 3 files:
  • iMapList.h
  • iMapList.xml
  • libiMapList.a
from iMapList - combining a Map and a List
and put the them to Macbook under /B4iBuildServer/Libs/

The error message shown as:


The last few lines shown as:
local mac build error:
Ld /Users/support/B4iBuildServer2/UploadedProjects/<user id>/Payload/hk\ B4i\\ B4i\ Example normal x86_64 (in target: B4iProject)
    cd /Users/support/B4iBuildServer2/UploadedProjects/<user id>
    /Applications/ -arch x86_64 -isysroot /Applications/ -L/Users/support/B4iBuildServer2/UploadedProjects/<user id>/Payload -L../../Libs -F/Users/support/B4iBuildServer2/UploadedProjects/<user id>/Payload -F../../Libs -filelist /Users/support/B4iBuildServer2/UploadedProjects/<user id>/build/\ B4i\ Example.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.0 -Xlinker -object_path_lto -Xlinker /Users/support/B4iBuildServer2/UploadedProjects/<user id>/build/\ B4i\ Example_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/support/B4iBuildServer2/UploadedProjects/<user id>/build/\ B4i\ -lCore -framework Foundation -framework CoreGraphics -framework UIKit -liMapList -framework AVFoundation -Xlinker -dependency_info -Xlinker /Users/support/B4iBuildServer2/UploadedProjects/<user id>/build/\ B4i\ Example_dependency_info.dat -o /Users/support/B4iBuildServer2/UploadedProjects/<user id>/Payload/hk\ B4i\\ B4i\ Example
ld: warning: ignoring file ../../Libs/libiMapList.a, missing required architecture x86_64 in file ../../Libs/libiMapList.a (3 slices)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_b4i_maplist", referenced from:
      objc-class-ref in b4i_main.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 /Users/support/B4iBuildServer2/UploadedProjects/<user id>/Payload/hk\ B4i\\ B4i\ Example normal x86_64
(1 failure)
The B4i Code is for testing iMaplist use:
test iMaplist library:
Private Sub Application_Start (Nav As NavigationController)
    'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
    NavControl = Nav
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    Msgbox("B4i Hello World!!!", "Say Hi")
    Dim iLst As MapList
    iLst.Add("1", "Apple")
End Sub
It seems the build error comes from iMapList library files but I have no idea how to solve this problem.



Staff member
Licensed User

Steve Kwok

Licensed User
Dear Erel,

Thank you for your promptly reply.

My workaround is:
  1. replacing iMapList (Version: 2.01) library by B4XCollections (Version: 1.05) library.
  2. declare custom Type called typField(storeid as String, trx As Double) and declare a list lstStore as collector.
  3. make use of lstStore.SortType("storeid", <True/False>) and lstStore.SortType("trx", <True/False>) to sort by field(s).
As I expected, my app can be successfully built by local mac build server.
Last edited: