B4i Library SD: iHttpServer (beta)

I started developing a version of the HttpServer Library for iOs. It is still a beta version and not complete, but already functional. You can start using it to test it. Includes WebSocket and QueryElement implementation
Digest Auth will be added in the future. I have arrived at a first version of the server that allows Digest authentication.
NEW: I have arrived at a first version of the server that allows Digest authentication. It is not included in the distributed version
It is entirely written in B4i, it depends on the iNetwork library

The library has been updated to be cross-platform and you can find it in this THREAD


iHttpServer

Author:
Star-Dust
Version: 0.72
  • QueryElement
    • Events:
      • change (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • click (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • dblclick (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • focus (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • focusin (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • focusout (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • keyup (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • mousedown (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • mouseenter (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • mouseleave (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • mousemove (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
      • mouseup (Resp As ServletResponse, Params As Map) ' QueryElement Event Click
    • Fields:
      • Event_change As NSString*
      • Event_click As NSString*
      • Event_dblclick As NSString*
      • Event_focus As NSString*
      • Event_focusin As NSString*
      • Event_focusout As NSString*
      • Event_keyup As NSString*
      • Event_mousedown As NSString*
      • Event_mouseenter As NSString*
      • Event_mouseleave As NSString*
      • Event_mousemove As NSString*
      • Event_mouseup As NSString*
      • NoEvent As B4IMap*()
    • Functions:
      • Class_Globals As NSString*
      • CreateEvent (ObjectName As NSString*, Event As NSString*, OtherEvent As B4IMap*()) As B4IMap*()
      • Eval (Script As NSString*, Params As B4IList*) As NSString*
      • EvalWithResult (Script As NSString*, Params As B4IList*) As NSString*
      • Initialize (ba As B4I*, Response As B4i_servletresponse*) As NSString*
        Initializes the object. You can add parameters to this method if needed.
      • IsInitialized As BOOL
        Verifica se l'oggetto sia stato inizializzato.
      • RunFunction (function As NSString*, ID As NSString*, Params As B4IList*) As NSString*
        Param = list or array: array as Object is wrong - array as Map is correct
      • RunFunctionWithResult (function As NSString*, ID As NSString*, Params As B4IList*) As NSString*
      • RunMethod (Method As NSString*, ID As NSString*, Params As B4IList*) As NSString*
        Param = list or array: array as Object is wrong - array as Map is correct
      • RunMethodWithResult (Method As NSString*, ID As NSString*, Params As B4IList*) As NSString*
        Param = list or array: array as Object is wrong - array as Map is correct
      • SelectElement (ID As NSString*) As NSString*
      • SetCommand (etype As NSString*, Method As NSString*, property As NSString*, ID As NSString*, Params As B4IList*, Arg As B4IList*) As NSString*
      • SetCSS (id As NSString*, Params As B4IList*) As NSString*
      • SetHtml (id As NSString*, Params As B4IList*) As NSString*

        Public Sub SetHeight (Value As String)
        End Sub
      • SetPropriety (Property As NSString*, Value As B4IList*) As NSString*
    • Properties:
      • AutomaticEvents
  • ServletRequest
    • Fields:
      • CharacterEncoding As NSString*
      • ConnectionAlive As BOOL
      • ContentLength As Long long
      • ContentType As NSString*
      • ID As NSString*
      • LogActive As BOOL
      • LogFirstRefuse As BOOL
      • MultipartFilename As B4IMap*
      • RequestCookies As B4IMap*
      • RequestHeader As B4IMap*
      • RequestParameter As B4IMap*
      • Timeout As Long long
    • Functions:
      • Class_Globals As NSString*
      • Close As NSString*
      • Connected As BOOL
      • GetHeader (Name As NSString*) As NSString*
      • GetHeadersName As NSObject*
        can be used to iterate over Header
        Example
        <code>
        For Each Name As String In ServletRequest.GetHeadersName
        Log("Value = " & ServletRequest.GetHeader(Name))
        Next</code>
      • GetInputStream As B4IInputStream*
      • GetMethod As NSString*
      • GetRequestHOST As NSString*
      • GetRequestURI As NSString*
      • GetWebSocketCompressDeflateAccept As BOOL
      • GetWebSocketCompressGzipAccept As BOOL
      • GetWebSocketMapData As B4IMap*
      • GetWebSocketStringData As NSString*
      • Initialize (ba As B4I*, CallBack As NSObject*, EventName As NSString*, Sck As B4ISocketWrapper*) As NSString*
        Initializes the object. You can add parameters to this method if needed.
      • IsInitialized As BOOL
        Verifica se l'oggetto sia stato inizializzato.
      • ParameterMap As B4IMap*
      • RemoteAddress As NSString*
      • RemotePort As Int
  • ServletResponse
    • Fields:
      • CharacterEncoding As NSString*
      • ContentLenght As Int
      • ContentType As NSString*
      • Status As Int
    • Functions:
      • Class_Globals As NSString*
      • Close As NSString*
      • Connected As BOOL
      • Initialize (ba As B4I*, Req As B4i_servletrequest*, ast As B4IAsyncStreams*, Sck As B4ISocketWrapper*) As NSString*
        Initializes the object. You can add parameters to this method if needed.
      • IsInitialized As BOOL
        Verifica se l'oggetto sia stato inizializzato.
      • ResetCookies As NSString*
      • SendFile (Dir As NSString*, fileName As NSString*) As NSString*
        don't use DirAssets
      • SendFile2 (Dir As NSString*, fileName As NSString*, Content_Type As NSString*) As NSString*
      • SendNotFound (filenameNotFound As NSString*) As NSString*
      • SendRaw (Data As Unsigned char()) As NSString*
      • SendRedirect (Address As NSString*) As NSString*
      • SendString (Text As NSString*) As NSString*
        sending text with Header
      • SendWebSocketBinary (Data As Unsigned char(), Masked As BOOL) As NSString*
      • SendWebSocketClose As NSString*
      • SendWebSocketPing As NSString*
      • SendWebSocketPong As NSString*
      • SendWebSocketString (Text As NSString*, Masked As BOOL, Compressed As NSString*) As NSString*
        Cmpressed as Deflate=zlib, gzip, none - (set always none)
      • SetCookies (Name As NSString*, Value As NSString*) As NSString*
        Set Cokies values on Browser
      • SetHeader (Name As NSString*, Value As NSString*) As NSString*
      • Write (Text As NSString*) As NSString*
        Sending text without header to dynamically send more text after the SendString
    • Properties:
      • OutputStream As B4IOutputStream* [read only]
      • Query As B4i_queryelement* [read only]
  • httpServer
    • Events:
      • Handle (req As ServletRequest, resp As ServletResponse)
      • HandleWebSocket (req As ServletRequest, resp As ServletResponse)
      • NewConection (req As ServletRequest)
      • SwitchToWebSocket (req As ServletRequest, resp As ServletResponse)
      • UploadedFile (req As ServletRequest, resp As ServletResponse)
      • UploadProgress (resp As ServletResponse, Progress As Float) ' Progress = 0-1
      • WebSocketClose (CloseCode As Int, CloseMessage As String)
    • Fields:
      • DigestAuthentication As BOOL
      • DigestPath As NSString*
      • htdigest As B4IList*
      • IgnoreNC As BOOL
      • realm As NSString*
      • Timeout As Int
    • Functions:
      • Class_Globals As NSString*
      • GetMyIP As NSString*
      • GetMyWifiIp As NSString*
      • Initialize (ba As B4I*, CallBack As NSObject*, EventName As NSString*) As NSString*
        Initializes the object. You can add parameters to this method if needed.
      • IsInitialized As BOOL
        Verifica se l'oggetto sia stato inizializzato.
      • Start (Port As Int)
        eg. Start(51051)
      • Stop As NSString*

Sample
ezgif.com-optimize.gif video2.gif
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Update rel 0.3
  • Fix bugs
  • Can see the remote ip address
  • Add TimeOut
  • DIgest authentication is disabled in this free version
 

Star-Dust

Expert
Licensed User
Longtime User
How to carry out the tests:
  1. After starting the example on the mobile device, you can access the page from the browser of your pc by indicating the ip address of the mobile device and the port chosen. (better if it is on a local network)
    For example: http://192.168.1.100:51051

  2. Or using the CURL command from windows:

    For example: curl --location --request POST "http://192.168.1.100:51051" --header "Content-Type: application/x-www-form-urlencoded" --data-urlencode "device=mydevice" --data-urlencode "idConnection=000000002" --data-urlencode "command=CON" --data-urlencode "timeOutLimit=3600" --digest -u User:MyPassword -v
 

ilan

Expert
Licensed User
Longtime User
hi Star-Dust, i try to run your example but i am not able to build it. i am getting lot of errors.

B4i Version: 7.00
Parsing code. (0.00s)
Building folders structure. (0.02s)
Compiling code. (0.00s)
Compiling layouts code. (0.00s)
Compiling debugger engine code. (0.00s)
Building Xcode project. (0.13s)
Preparing project for builder. (0.02s)
Project size: 0.16 MB
Sending data to remote compiler. Error
Out: Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=HttpServer CONFIGURATION_BUILD_DIR=/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Developer: ilan TETRUASHVILI (6Y23UV77K8)" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=05d009bf-f83c-4c63-a190-0d2ca00b78fa -arch arm64

Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY = iPhone Developer: ilan TETRUASHVILI (6Y23UV77K8)
CONFIGURATION_BUILD_DIR = /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = HttpServer
PROVISIONING_PROFILE = 05d009bf-f83c-4c63-a190-0d2ca00b78fa

note: Using new build system
note: Using codesigning identity override: iPhone Developer: ilan TETRUASHVILI (6Y23UV77K8)
note: Planning build
note: Constructing build description
CreateBuildDirectory /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
builtin-create-build-directory /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build

MkDir /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload/HttpServer.app (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
/bin/mkdir -p /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload/HttpServer.app

ProcessProductPackaging /Users/ilantetruashvili/Library/MobileDevice/Provisioning\ Profiles/05d009bf-f83c-4c63-a190-0d2ca00b78fa.mobileprovision /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload/HttpServer.app/embedded.mobileprovision (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
builtin-productPackagingUtility /Users/ilantetruashvili/Library/MobileDevice/Provisioning\ Profiles/05d009bf-f83c-4c63-a190-0d2ca00b78fa.mobileprovision -o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload/HttpServer.app/embedded.mobileprovision

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

ProcessProductPackaging "" /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer.app.xcent (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>


Entitlements:

{
"application-identifier" = "WT28GY4X6M.www.sagital.pinvad";
"com.apple.developer.team-identifier" = WT28GY4X6M;
"get-task-allow" = 1;
}


builtin-productPackagingUtility -entitlements -format xml -o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer.app.xcent

WriteAuxiliaryFile /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/all-product-headers.yaml (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
write-file /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/all-product-headers.yaml

WriteAuxiliaryFile /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer.hmap (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
write-file /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer.hmap

WriteAuxiliaryFile /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-project-headers.hmap (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
write-file /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-project-headers.hmap

WriteAuxiliaryFile /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-own-target-headers.hmap (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
write-file /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-own-target-headers.hmap

WriteAuxiliaryFile /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-generated-files.hmap (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
write-file /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-generated-files.hmap

WriteAuxiliaryFile /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-all-target-headers.hmap (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
write-file /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-all-target-headers.hmap

WriteAuxiliaryFile /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-all-non-framework-target-headers.hmap (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
write-file /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-all-non-framework-target-headers.hmap

CompileC /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_page1.o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/LS_page1.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -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/m4/8jhp1bvs7hgbtr3ndwxnn0kh0000gn/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\=12 -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -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 -iquote /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-generated-files.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-own-target-headers.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-all-target-headers.hmap -iquote /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-project-headers.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload/include -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources-normal/arm64 -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/arm64 -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_page1.d --serialize-diagnostics /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_page1.dia -c /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/LS_page1.m -o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_page1.o

CompileC /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/main.o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -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/m4/8jhp1bvs7hgbtr3ndwxnn0kh0000gn/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\=12 -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -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 -iquote /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-generated-files.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-own-target-headers.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-all-target-headers.hmap -iquote /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-project-headers.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload/include -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources-normal/arm64 -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/arm64 -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/main.d --serialize-diagnostics /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/main.dia -c /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/main.m -o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/main.o

CompileC /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/b4i_main.o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/b4i_main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -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/m4/8jhp1bvs7hgbtr3ndwxnn0kh0000gn/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\=12 -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -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 -iquote /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-generated-files.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-own-target-headers.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-all-target-headers.hmap -iquote /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/HttpServer-project-headers.hmap -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload/include -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources-normal/arm64 -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/arm64 -I/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/b4i_main.d --serialize-diagnostics /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/b4i_main.dia -c /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/b4i_main.m -o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/b4i_main.o
In file included from /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/b4i_main.m:2:
/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/b4i_main.h:3:9: fatal error: 'iHttpServer.h' file not found
#import "iHttpServer.h"
^~~~~~~~~~~~~~~
1 error generated.

WriteAuxiliaryFile /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/HttpServer.LinkFileList (in target 'B4iProject' from project 'B4iProject')
cd /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>
write-file /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/HttpServer.LinkFileList


Error: 2021-02-26 16:35:16.155 xcodebuild[11286:1795381] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/fe5ed65d-8615-48bd-9cfc-461995121242" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/fe5ed65d-8615-48bd-9cfc-461995121242"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/fe5ed65d-8615-48bd-9cfc-461995121242".})
2021-02-26 16:35:16.155 xcodebuild[11286:1795382] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/b71c6eda-66df-4cbc-9d49-db45a7d333da" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/b71c6eda-66df-4cbc-9d49-db45a7d333da"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/b71c6eda-66df-4cbc-9d49-db45a7d333da".})
2021-02-26 16:35:16.160 xcodebuild[11286:1795382] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/1204e782-c7fd-4e28-8a78-5d169b03d4ca" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/1204e782-c7fd-4e28-8a78-5d169b03d4ca"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/1204e782-c7fd-4e28-8a78-5d169b03d4ca".})
2021-02-26 16:35:16.160 xcodebuild[11286:1795290] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/50ed33f2-afe7-46ca-866b-f84f3ea46f99" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/50ed33f2-afe7-46ca-866b-f84f3ea46f99"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/50ed33f2-afe7-46ca-866b-f84f3ea46f99".})
2021-02-26 16:35:16.161 xcodebuild[11286:1795382] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/fb00f0c4-50c0-49eb-9a0f-7c34fc0cb345" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/fb00f0c4-50c0-49eb-9a0f-7c34fc0cb345"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/fb00f0c4-50c0-49eb-9a0f-7c34fc0cb345".})
2021-02-26 16:35:16.166 xcodebuild[11286:1795381] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/7eaa5fc9-9053-4b87-b35c-423f128db696" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/7eaa5fc9-9053-4b87-b35c-423f128db696"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/7eaa5fc9-9053-4b87-b35c-423f128db696".})
2021-02-26 16:35:16.167 xcodebuild[11286:1795381] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/00adb6f8-b8bd-4782-86d0-dfdb9230e503" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/00adb6f8-b8bd-4782-86d0-dfdb9230e503"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/00adb6f8-b8bd-4782-86d0-dfdb9230e503".})
2021-02-26 16:35:16.168 xcodebuild[11286:1795290] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/edca164e-5208-4ac4-b28b-accef4a00bca" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/edca164e-5208-4ac4-b28b-accef4a00bca"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/edca164e-5208-4ac4-b28b-accef4a00bca".})
2021-02-26 16:35:16.171 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/2790a549-0063-4bfb-b2ea-f2cb6b4c8545" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/2790a549-0063-4bfb-b2ea-f2cb6b4c8545"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/2790a549-0063-4bfb-b2ea-f2cb6b4c8545".})
2021-02-26 16:35:16.176 xcodebuild[11286:1795382] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/8a3e832b-9516-4a1a-bc61-7b6911af6f57" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/8a3e832b-9516-4a1a-bc61-7b6911af6f57"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/8a3e832b-9516-4a1a-bc61-7b6911af6f57".})
2021-02-26 16:35:16.182 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/39b3fa98-92e5-44c0-9c27-0907791e8c01" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/39b3fa98-92e5-44c0-9c27-0907791e8c01"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/39b3fa98-92e5-44c0-9c27-0907791e8c01".})
2021-02-26 16:35:16.182 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/2688551d-0a1b-48cc-afea-499866d86853" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/2688551d-0a1b-48cc-afea-499866d86853"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/2688551d-0a1b-48cc-afea-499866d86853".})
2021-02-26 16:35:16.182 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/c1d1c722-cc10-4c56-be32-3b2e05b42075" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/c1d1c722-cc10-4c56-be32-3b2e05b42075"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/c1d1c722-cc10-4c56-be32-3b2e05b42075".})
2021-02-26 16:35:16.183 xcodebuild[11286:1795382] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/47eee113-d360-435a-8916-0ca2b3ed6d70" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/47eee113-d360-435a-8916-0ca2b3ed6d70"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/47eee113-d360-435a-8916-0ca2b3ed6d70".})
2021-02-26 16:35:16.185 xcodebuild[11286:1795382] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/7c86b1e9-3121-4bf2-8b33-ebab55f4f024" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/7c86b1e9-3121-4bf2-8b33-ebab55f4f024"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/7c86b1e9-3121-4bf2-8b33-ebab55f4f024".})
2021-02-26 16:35:16.189 xcodebuild[11286:1795290] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f6195397-0f13-4e33-a98c-e5e87b15373e" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f6195397-0f13-4e33-a98c-e5e87b15373e"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f6195397-0f13-4e33-a98c-e5e87b15373e".})
2021-02-26 16:35:16.190 xcodebuild[11286:1795290] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/798e74c3-8d70-404f-9db9-ca27ef71be89" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/798e74c3-8d70-404f-9db9-ca27ef71be89"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/798e74c3-8d70-404f-9db9-ca27ef71be89".})
2021-02-26 16:35:16.193 xcodebuild[11286:1795381] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/d6c122c3-5ea5-40b5-8316-81a36a79df95" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/d6c122c3-5ea5-40b5-8316-81a36a79df95"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/d6c122c3-5ea5-40b5-8316-81a36a79df95".})
2021-02-26 16:35:16.193 xcodebuild[11286:1795381] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/c205a4af-17ed-4cd1-8cff-2f53e0d3bb01" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/c205a4af-17ed-4cd1-8cff-2f53e0d3bb01"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/c205a4af-17ed-4cd1-8cff-2f53e0d3bb01".})
2021-02-26 16:35:16.193 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/4005516b-b755-4358-9c86-cdc260bd2cb4" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/4005516b-b755-4358-9c86-cdc260bd2cb4"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/4005516b-b755-4358-9c86-cdc260bd2cb4".})
2021-02-26 16:35:16.195 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f255bf3a-1f03-4032-8699-39831cca20e9" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f255bf3a-1f03-4032-8699-39831cca20e9"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f255bf3a-1f03-4032-8699-39831cca20e9".})
2021-02-26 16:35:16.195 xcodebuild[11286:1795381] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/a8657b74-2a21-4244-9577-185edc7b8369" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/a8657b74-2a21-4244-9577-185edc7b8369"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/a8657b74-2a21-4244-9577-185edc7b8369".})
2021-02-26 16:35:16.195 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/00bf07bd-89e5-4c61-a38e-dd7ed37c5023" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/00bf07bd-89e5-4c61-a38e-dd7ed37c5023"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/00bf07bd-89e5-4c61-a38e-dd7ed37c5023".})
2021-02-26 16:35:16.195 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/93b3b75b-560f-49eb-ba9c-242beb073662" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/93b3b75b-560f-49eb-ba9c-242beb073662"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/93b3b75b-560f-49eb-ba9c-242beb073662".})
2021-02-26 16:35:16.195 xcodebuild[11286:1795381] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/8f1e7ed9-3913-486e-a1ce-dc64aa216911" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/8f1e7ed9-3913-486e-a1ce-dc64aa216911"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/8f1e7ed9-3913-486e-a1ce-dc64aa216911".})
2021-02-26 16:35:16.200 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/86538354-4ba3-42fa-952f-2d246b569085" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/86538354-4ba3-42fa-952f-2d246b569085"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/86538354-4ba3-42fa-952f-2d246b569085".})
2021-02-26 16:35:16.201 xcodebuild[11286:1795290] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/46d6a4e1-81f3-4ce1-870a-6c31d3b3ad1e" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/46d6a4e1-81f3-4ce1-870a-6c31d3b3ad1e"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/46d6a4e1-81f3-4ce1-870a-6c31d3b3ad1e".})
2021-02-26 16:35:16.204 xcodebuild[11286:1795290] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/503a60ec-3d44-41bd-aa6c-b966584c93a6" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/503a60ec-3d44-41bd-aa6c-b966584c93a6"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/503a60ec-3d44-41bd-aa6c-b966584c93a6".})
2021-02-26 16:35:16.204 xcodebuild[11286:1795290] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/e9f04271-4c76-410d-8dec-a86e490752ca" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/e9f04271-4c76-410d-8dec-a86e490752ca"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/e9f04271-4c76-410d-8dec-a86e490752ca".})
2021-02-26 16:35:16.204 xcodebuild[11286:1795290] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f0fc81c0-3c1e-48c5-8b70-ae0c5945af75" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f0fc81c0-3c1e-48c5-8b70-ae0c5945af75"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/f0fc81c0-3c1e-48c5-8b70-ae0c5945af75".})
2021-02-26 16:35:16.205 xcodebuild[11286:1795284] DVTProvisioningProfileManager: Failed to load profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/66b4e68c-b5c6-44f3-8381-f7259a2a84a9" (Error Domain=DVTProvisioningProfileSourceErrorDomain Code=0 "No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/66b4e68c-b5c6-44f3-8381-f7259a2a84a9"." UserInfo={NSLocalizedDescription=No provisioning profile provider found for profile "/Users/ilantetruashvili/Library/MobileDevice/Provisioning Profiles/66b4e68c-b5c6-44f3-8381-f7259a2a84a9".})
** BUILD FAILED **


The following build commands failed:
CompileC /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/b4i_main.o /Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/b4i_main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
 

Star-Dust

Expert
Licensed User
Longtime User
Dear Ilan,

I state that this library is still immature. It lacks methods: SendRedirect, SendFile, getUploadFile and other classes for managing connections. The whole is built in b4i and is not a wrap. So you are trying an experimental version.

After this premise, I can tell you that I just tried it and it works. Make sure you have changed the package name and point it to your CertificateFile and ProvisionFile. For the rest, I don't know what errors they are, I'm not that expert in iOs.

Are you using the example I provided without any changes?
 

Star-Dust

Expert
Licensed User
Longtime User
yes

the only change i did is package name and provisions file.
saw this in the error log you posted

Missing the file?
/Users/ilantetruashvili/Downloads/macserver70/UploadedProjects/<user id>/B4iProject/b4i_main.h:3:9: fatal error: 'iHttpServer.h' file not found
#import "iHttpServer.h"
^~~~~~~~~~~~~~~
1 error generated.
 

ilan

Expert
Licensed User
Longtime User
Missing the file?

yes you are right the .h file was missing. now i am able to compile the project. although when i enter the url i am getting a "Out of bounds..." error.

Application_Start
Application_Active
Add: 10.0.0.17:45811
Error occurred on line: 68 (Main)
Out of bounds. Index=7 Length=7
Stack Trace: (
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 1202304
libobjc.A.dylib objc_exception_throw + 60
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 124068
HttpServer -[B4IArray getObjectFast:] + 192
HttpServer -[b4i_servletresponse _completedate:] + 236
HttpServer -[b4i_servletresponse _prepareheader] + 3288
HttpServer -[b4i_servletresponse _sendstring:] + 200
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 1222900
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 7672
HttpServer +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1528
HttpServer -[B4IShell runVoidMethod] + 232
HttpServer -[B4IShell raiseEventImpl:method:args::] + 1800
HttpServer -[B4IShellBI raiseEvent:event:params:] + 1580
HttpServer -[B4ICommon CallSub4::::] + 312
HttpServer -[B4ICommon CallSub3:::::] + 444
HttpServer -[b4i_server _data_handle::] + 668
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 1222900
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 7672
HttpServer +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1528
HttpServer -[B4I raiseEvent:event:params:] + 520
HttpServer -[B4ICommon CallSub4::::] + 312
HttpServer -[B4ICommon CallSub3:::::] + 444
HttpServer -[b4i_servletrequest _astream_newdata:] + 3900
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 1222900
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 7672
HttpServer +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1528
HttpServer -[B4I raiseEvent:event:params:] + 520
HttpServer __50-[B4I raiseEventFromDifferentThread:event:params:]_block_invoke + 56
libdispatch.dylib B92757B1-0434-3E9B-A3AC-B6DA6B81945C + 8780
libdispatch.dylib B92757B1-0434-3E9B-A3AC-B6DA6B81945C + 15792
libdispatch.dylib _dispatch_main_queue_callback_4CF + 836
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 659740
CoreFoundation 727F2644-EB4E-3D57-BC2E-E6803BA92366 + 635168
CoreFoundation CFRunLoopRunSpecific + 600
GraphicsServices GSEventRunModal + 164
UIKitCore 8518EAE3-832B-3FF0-9FA5-9DBE3041F26C + 12357352
UIKitCore UIApplicationMain + 168
HttpServer main + 128
libdyld.dylib 21B19919-1334-38BC-B233-896E929945E0 + 5808
)
 

Star-Dust

Expert
Licensed User
Longtime User
yes you are right the .h file was missing. now i am able to compile the project. although when i enter the url i am getting a "Out of bounds..." error.
What is the request you made on the browser?
 

Star-Dust

Expert
Licensed User
Longtime User
The error is in data reception. The browser is sending an unexpected string as parameters.
Let me check and send an update.
 

Star-Dust

Expert
Licensed User
Longtime User
I can't reproduce the error. What browser did you use?
 

Star-Dust

Expert
Licensed User
Longtime User
my default browser is FireFox but i tried also on chrome and on IE all gave me the same error
Windows or Mac?
 

Star-Dust

Expert
Licensed User
Longtime User
how does the SendString function look like? can you post the code?
B4X:
astream.Write(Text.GetBytes("UTF8"))
???
 

Star-Dust

Expert
Licensed User
Longtime User
Update 0.04
  1. Fix Bug
  2. add SendRedirect
 
Last edited:
Top