iOS Question RDC for B4I with macserver & Simulator (Xcode)

schalkgreyling

Member
Licensed User
Good day all,

I've been struggling to get RDC working with B4i, so far I have set up JRDC (as with B4A), add the class DBRequesManager, Bytconverter. I've importerd Irandom, IHTTP, IStringUtils.

When I run the app, i get the exception

"fatal error: 'ByteConverter.h' file not found
#import "ByteConverter.h""

I am sure that BytConverter has been imported (although i used the same one as B4A, maybe this is the issue?)

Or it might be Macserver (or simulator) related ?

Also i's not sure about the compatibility of B4A libraries to B4i, can I use these interchangeably ?

Full exception below:

B4X:
B4i version: 2.51
Parsing code.    (0.01s)
Compiling code.    (0.48s)
Compiling layouts code.    (0.01s)
Compiling debugger engine code.    (1.08s)
Building Xcode project    (0.05s)
Sending data to remote compiler.    Error
Out: Build settings from command line:
    ARCHS = i386
    CODE_SIGNING_REQUIRED = NO
    CONFIGURATION_BUILD_DIR = /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload
    PRODUCT_NAME = B4i Example
    SDKROOT = iphonesimulator10.2

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

Check dependencies

Create product structure
/bin/mkdir -p /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload/B4i\ Example.app

ProcessInfoPlistFile Payload/B4i\ Example.app/Info.plist B4iProject/B4iProject-Info.plist
    cd /Users/<user id>greyling/Documents/macserver_25/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:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
    builtin-infoPlistUtility /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/B4iProject-Info.plist -genpkginfo /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload/B4i\ Example.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload/B4i\ Example.app/Info.plist

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/<user id>greyling/Documents/macserver_25/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:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
    /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/lx/hgjzt8f150n88pt5qlccj5hr0000gn/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/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload/include -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.dia -c /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/main.m -o /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_httpjob.o B4iProject/b4i_httpjob.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/<user id>greyling/Documents/macserver_25/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:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
    /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/lx/hgjzt8f150n88pt5qlccj5hr0000gn/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/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload/include -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_httpjob.d --serialize-diagnostics /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_httpjob.dia -c /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_httpjob.m -o /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_httpjob.o
In file included from /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_httpjob.m:2:
/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_httpjob.h:4:9: fatal error: 'ByteConverter.h' file not found
#import "ByteConverter.h"
        ^
1 error generated.

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_httputils2service.o B4iProject/b4i_httputils2service.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/<user id>greyling/Documents/macserver_25/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:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
    /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/lx/hgjzt8f150n88pt5qlccj5hr0000gn/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/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload/include -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_httputils2service.d --serialize-diagnostics /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_httputils2service.dia -c /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_httputils2service.m -o /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_httputils2service.o
In file included from /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_httputils2service.m:2:
/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_httputils2service.h:4:9: fatal error: 'ByteConverter.h' file not found
#import "ByteConverter.h"
        ^
1 error generated.

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_dbrequestmanager.o B4iProject/b4i_dbrequestmanager.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/<user id>greyling/Documents/macserver_25/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:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
    /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/lx/hgjzt8f150n88pt5qlccj5hr0000gn/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/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload/include -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_dbrequestmanager.d --serialize-diagnostics /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_dbrequestmanager.dia -c /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_dbrequestmanager.m -o /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_dbrequestmanager.o
In file included from /Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_dbrequestmanager.m:2:
/Users/<user id>greyling/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_dbrequestmanager.h:4:9: fatal error: 'ByteConverter.h' file not found
#import "ByteConverter.h"
        ^
1 error generated.


Error: ** BUILD FAILED **


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


Thanks in advance
 
Last edited:
Top