iOS Question [Solved] Problem when compiling

pliroforikos

Active Member
Licensed User
Hello everybody
This is my first try in B4i. I am using B4A for 2 years and its time to make the big step to B4i. So i start converting a project to B4i.
So far so good. I followed the instructions and install the local server in an imac mini and used xcode 13.3.x Everything was ok until today, project compiled without problems.

I tried to compile the project and the message below showed. (This is truncated because it's over 50000 characters)
As i found in forum i thought it was about xcode and downloaded 13.2 and install it.
Simple projects are still compiling without problem but my project is not compiling.
I will be greatful for any help.

B4i Version: 7.80
Parsing code. (0.28s)
Building folders structure. (0.12s)
Running custom action. (0.07s)
Compiling code. (0.71s)
Compiling layouts code. (0.02s)
Compiling debugger engine code. (0.10s)
Building Xcode project. (0.24s)
Preparing project for builder. (0.30s)
Project size: 0.93 MB
Sending data to remote compiler. Error
Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release "PRODUCT_NAME=schooligan New" CONFIGURATION_BUILD_DIR=/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload CODE_SIGNING_REQUIRED=NO -sdk iphonesimulator -arch x86_64

User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
ARCHS = x86_64
CODE_SIGNING_REQUIRED = NO
CONFIGURATION_BUILD_DIR = /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload
PRODUCT_NAME = schooligan New
SDKROOT = iphonesimulator15.2

note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: 137c2b9f7f8a98e43f05dd178fcb1155
Build description path: /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/XCBuildData/137c2b9f7f8a98e43f05dd178fcb1155-desc.xcbuild

note: Build preparation complete
warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
CreateBuildDirectory /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build
cd /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject.xcodeproj
builtin-create-build-directory /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build

CreateBuildDirectory /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload
cd /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject.xcodeproj
builtin-create-build-directory /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload

/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'B4iProject' from project 'B4iProject')
MkDir /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/schooligan\ New.app (in target 'B4iProject' from project 'B4iProject')
cd /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>
/bin/mkdir -p /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/schooligan\ New.app

WriteAuxiliaryFile /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/Entitlements.plist (in target 'B4iProject' from project 'B4iProject')
cd /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>
write-file /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/Entitlements.plist


many same problems here....

/x86_64/b4i_b4xorderedmap.dia -c /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/b4i_b4xorderedmap.m -o /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/b4i_b4xorderedmap.o
CompileC /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_drawermenuitems.o /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/LS_drawermenuitems.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
cd /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios8.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/var/folders/zw/y21f5_45487bnwlwjn5nvmc40000gp/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DB4I_VERSION\=13 -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility\=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version\=2 -fobjc-legacy-dispatch -iquote /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New-generated-files.hmap -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New-own-target-headers.hmap -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New-all-target-headers.hmap -iquote /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New-project-headers.hmap -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/include -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources-normal/x86_64 -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/x86_64 -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_drawermenuitems.d --serialize-diagnostics /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_drawermenuitems.dia -c /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/LS_drawermenuitems.m -o /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_drawermenuitems.o

CompileC /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_drawermenu.o /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/LS_drawermenu.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
cd /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios8.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/var/folders/zw/y21f5_45487bnwlwjn5nvmc40000gp/C/org.llvm.clang/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DB4I_VERSION\=13 -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility\=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version\=2 -fobjc-legacy-dispatch -iquote /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New-generated-files.hmap -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New-own-target-headers.hmap -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New-all-target-headers.hmap -iquote /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New-project-headers.hmap -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/include -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources-normal/x86_64 -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/x86_64 -I/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_drawermenu.d --serialize-diagnostics /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_drawermenu.dia -c /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/B4iProject/LS_drawermenu.m -o /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/LS_drawermenu.o

Ld /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/schooligan\ New.app/schooligan\ New normal (in target 'B4iProject' from project 'B4iProject')
cd /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios8.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -L/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload -L../../Libs -F/Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload -F../../Libs -filelist /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/schooligan\ New.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -object_path_lto -Xlinker /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/schooligan\ New_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/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/schooligan\ New.app-Simulated.xcent -lCore -framework Foundation -framework CoreGraphics -framework UIKit -liHUD -liSQL -liXUI -lxCustomListView -liOkHttpUtils2 -framework AVFoundation -lsqlite3 -liJSON -liRandomAccessFile -liBitmapCreator -liHttp -liStringUtils -liDateUtils -lz -liDebug2 -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/schooligan\ New_dependency_info.dat -o /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/schooligan\ New.app/schooligan\ New
ld: library not found for -liOkHttpUtils2
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
Ld /Users/leon/Downloads/B4iBuildServer/UploadedProjects/<user id>/Payload/schooligan\ New.app/schooligan\ New normal (in target 'B4iProject' from project 'B4iProject')
(1 failure)
 
Solution
This is the relevant error: ld: library not found for -liOkHttpUtils2
Tip: search for "error:" to find it.

My guess is that you have started the builder not from its own folder and it can't find the Libs folder.
Top