Hi, everyone,
my B4i project found build failed in my local mac builder since it contains iMapList Library.
I had downloaded 3 files:
and put the them to Macbook under /B4iBuildServer/Libs/
The error message shown as:
The last few lines shown as:
The B4i Code is for testing iMaplist use:
It seems the build error comes from iMapList library files but I have no idea how to solve this problem.
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
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\ Example.app/hk\ B4i\ Example normal x86_64 (in target: B4iProject)
cd /Users/support/B4iBuildServer2/UploadedProjects/<user id>
export IPHONEOS_DEPLOYMENT_TARGET=8.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk -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/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/hk\ 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/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/hk\ 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/B4iProject.build/Release-iphonesimulator/B4iProject.build/hk\ B4i\ Example.app-Simulated.xcent -lCore -framework Foundation -framework CoreGraphics -framework UIKit -liMapList -framework AVFoundation -Xlinker -dependency_info -Xlinker /Users/support/B4iBuildServer2/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/hk\ B4i\ Example_dependency_info.dat -o /Users/support/B4iBuildServer2/UploadedProjects/<user id>/Payload/hk\ B4i\ Example.app/hk\ 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\ Example.app/hk\ 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.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
'Page1.RootPanel.LoadLayout("main.bil")
NavControl.ShowPage(Page1)
Msgbox("B4i Hello World!!!", "Say Hi")
Dim iLst As MapList
iLst.Initialize
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.