iOS Question B4I Build Server in local MAC

Sberla

Active Member
Licensed User
Longtime User
Hello,
I am trying to set up the Buildserver and try to build a test project in b4i , but the compiler show me the following error and doesn't compile.

Can anyone help me ?

B4X:
Parsing code.    (0.00s)
Compiling code.    (0.03s)
Compiling layouts code.    (0.00s)
Compiling debugger engine code.    (0.56s)
Building Xcode project    (0.04s)
Sending data to remote compiler.    Error
Out: Build settings from command line:
    ARCHS = i386
    CODE_SIGNING_REQUIRED = NO
    CONFIGURATION_BUILD_DIR = /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/Payload
    PRODUCT_NAME = B4i Example
    SDKROOT = iphonesimulator9.0

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

Check dependencies
warning: Capabilities that require entitlements from "B4i.entitlements" may not function in the Simulator because the target "B4iProject" doesn't have a valid Code Signing Identity for iOS.

Create product structure
/bin/mkdir -p /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/Payload/B4i\ Example.app

ProcessInfoPlistFile Payload/B4i\ Example.app/Info.plist B4iProject/B4iProject-Info.plist
    cd /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-infoPlistUtility /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/B4iProject-Info.plist -genpkginfo /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/Payload/B4i\ Example.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/Payload/B4i\ Example.app/Info.plist

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o B4iProject/b4i_main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -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/5g/4xx7vtmj0mg57h5vn99szy340000gn/C/org.llvm.clang/ModuleCache/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 -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 -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/Payload/include -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.d --serialize-diagnostics /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.dia -c /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m -o /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:12:23: error: use of undeclared identifier 'B4IShellBI'
        shared.bi = [[B4IShellBI alloc] init:shared];
                      ^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:23:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentModule=@"main";
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:24:6: error: use of undeclared identifier 'B4IDebug'
if ([B4IDebug shouldDelegate: @"application_background"])
     ^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:25:23: error: use of undeclared identifier 'B4IDebug'
        return ((NSString*) [B4IDebug delegate:self.bi :@"application_background" :nil]);
                             ^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:26:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=196608;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:28:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=196610;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:33:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentModule=@"main";
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:34:6: error: use of undeclared identifier 'B4IDebug'
if ([B4IDebug shouldDelegate: @"application_start"])
     ^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:35:23: error: use of undeclared identifier 'B4IDebug'
        return ((NSString*) [B4IDebug delegate:self.bi :@"application_start:" :@[_nav]]);
                             ^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:36:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=65536;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:38:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=65537;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:41:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=65538;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:44:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=65539;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:47:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=65540;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:50:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=65541;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:53:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentLine=65542;
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:58:2: error: use of undeclared identifier 'B4IRDebugUtils'
[B4IRDebugUtils shared].currentModule=@"main";
^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:59:6: error: use of undeclared identifier 'B4IDebug'
if ([B4IDebug shouldDelegate: @"page1_resize"])
     ^
/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/b4i_main.m:60:23: error: use of undeclared identifier 'B4IDebug'
        return ((NSString*) [B4IDebug delegate:self.bi :@"page1_resize::" :@[@(_width),@(_height)]]);
                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o B4iProject/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -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/5g/4xx7vtmj0mg57h5vn99szy340000gn/C/org.llvm.clang/ModuleCache/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 -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 -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/Payload/include -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.dia -c /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/B4iProject/main.m -o /Users/denis/Downloads/enisb4i/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o


Error: ** BUILD FAILED **


The following build commands failed:
    CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o B4iProject/b4i_main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
 

Sberla

Active Member
Licensed User
Longtime User
this is the version of the build server in my local MAC OS
but the compiler show the same error when I go to Tools > Build Server >Build B4i-Bridge App

B4i version: 3.60
Parsing code. (0.00s)
Compiling code. (0.02s)
Building designer app. (0.01s)
Building Xcode project (0.05s)
Sending data to remote compiler. Error
cer file not found.


B4X:
Build server version: 3.61
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-09-04 12:32:38.202:INFO::main: Logging initialized @23548ms
Loading default configuration file.
AppPath=/Users/denis/Downloads/enisb4i
Mac version: 10.10.5
Forcing ip address to: 192.168.0.163
2017-09-04 12:32:41.221:INFO:oejs.Server:main: jetty-9.3.z-SNAPSHOT
2017-09-04 12:32:41.957:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@7c75222b{/,file:///Users/denis/Downloads/enisb4i/www,AVAILABLE}
2017-09-04 12:32:41.999:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/denis/Downloads/enisb4i/logs/b4j-2017_09_04.request.log
2017-09-04 12:32:44.258:INFO:oejs.ServerConnector:main: Started ServerConnector@17f6480{HTTP/1.1,[http/1.1]}{0.0.0.0:51041}
2017-09-04 12:32:48.335:INFO:oejus.SslContextFactory:main: x509=X509@67b64c45(rootca,h=[],w=[]) for SslContextFactory@4411d970(file:///Users/denis/Downloads/enisb4i/key/key.jks,null)
2017-09-04 12:32:48.336:INFO:oejus.SslContextFactory:main: x509=X509@6442b0a6(jetty,h=[192.168.0.163],w=[]) for SslContextFactory@4411d970(file:///Users/denis/Downloads/enisb4i/key/key.jks,null)
2017-09-04 12:32:54.295:INFO:oejs.ServerConnector:main: Started ServerConnector@2e3fc542{SSL,[ssl, http/1.1]}{0.0.0.0:51042}
2017-09-04 12:32:54.296:INFO:oejs.Server:main: Started @39773ms
Build server is ready
https://192.168.0.163:51042
http://192.168.0.163:51041
Build server version: 3.61
 
Upvote 0

Sberla

Active Member
Licensed User
Longtime User
the build server is in the Local MAC OS and running , I have configure the server even in the IDE
 
Upvote 0

Sberla

Active Member
Licensed User
Longtime User
is there a way to compile in debug mode without the Apple Dev Certificate, I just want to compile the app in Debug mode but without success ?



B4X:
B4i version: 3.60
Parsing code.    (0.01s)
Compiling code.    (0.08s)
Building designer app.    (0.00s)
Building Xcode project    (0.13s)
Sending data to remote compiler.    Error
Error retrieving token: Communication error: Invalid user id
 
Last edited:
Upvote 0

Sberla

Active Member
Licensed User
Longtime User
yes I followed the tutorial and set to static the MAC local IP , I start the buildserver from the MAC , configure the IP of the buildserve ( which is the same as the MAC IP ) in my B4I on Windows and then when I try to debug a test app from IDE it show me the following certification error, I don't want to build the final App I just want to compile it in debug mode, thats all.
I don't know if it is necessary a certificate and provisioning profile even for the debugging ?

B4X:
B4i version: 3.60
Parsing code.    (0.00s)
Compiling code.    (0.03s)
Compiling layouts code.    (0.00s)
Compiling debugger engine code.    (0.57s)
Building Xcode project    (0.11s)
Sending data to remote compiler.    Error
cer file not found.

upload_2017-9-6_11-0-29.png




upload_2017-9-6_11-0-47.png



upload_2017-9-6_11-1-19.png
 
Upvote 0

Sberla

Active Member
Licensed User
Longtime User
nothing, it just save the configuration, even if I set Debug Architecture 32 or 64 bit it doesn't show any error
 
Upvote 0

Sberla

Active Member
Licensed User
Longtime User
this is what I am trying to do, but how can I do this , I have put the B4IBuildserver on a local Mac OS 10 , I start the buildserver with "java -jar B4IBuildserver.jar " command and everything looks fine, I set the buildserver IP of the MAC at the B4I IDE (Build Server -> Server Settings),
when I open the link on safari it works fine ( http://192.168.0.163:51041/test),
but when I go to B4I Build Server -> B4i-Bridge or Run the compiler in Debug mode from the IDE it shows to me the error that I posted here in the previous posts.

Even when I try from an iPhone5 ( I have installed the b4i certificate on the real device ) the IDE compiler in Debug mode show me the same error.

How can I do this ??
 
Upvote 0
Top