iOS Question Compile Fails

JMB

Active Member
Licensed User
Longtime User
Hi there,

My first foray into using B4i!

I am running B4i on Windows machine under Parallels on a Mac.

I have started the B4i Server, but when I try to compile I get this message...

B4i Version: 5.51
Parsing code. (0.00s)
Building folders structure. (0.03s)
Compiling code. (0.01s)
Compiling layouts code. (0.00s)
Compiling debugger engine code. (0.65s)
Building Xcode project (0.12s)
Sending data to remote compiler. Error
Out: Build settings from command line:
ARCHS = x86_64
CODE_SIGNING_REQUIRED = NO
CONFIGURATION_BUILD_DIR = /Users/jonathanbinnie/Dropbox/B4X/Source/B4iBuildServer/UploadedProjects/<user id>/Payload
PRODUCT_NAME = My B4i Example
SDKROOT = iphonesimulator12.1

[LOADS AND LOADS OF ERRORS]

The following build commands failed:

CompileC /Users/JMB/Dropbox/B4X/Source/B4iBuildServer/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/x86_64/b4i_main.o /Users/jmb/Dropbox/B4X/Source/B4iBuildServer/UploadedProjects/<user id>/B4iProject/b4i_main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)


I note that the data is not getting sent to the remote compiler.

Do I have to set my user id in b4i when I am not the hosted server but I am using the build server running on my macbook?

Any suggestions?

Thank you.

JMB
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Do I have to set my user id in b4i when I am not the hosted server but I am using the build server running on my macbook?
No. The default id will work.

Please upload the full error message as a text file.

If you have a developer account then it will be easier to start with the hosted builder. Later you can switch to the local builder. Contact [email protected] to receive a temporary id.
 
Upvote 0

JMB

Active Member
Licensed User
Longtime User
Thanks for that. I managed to get it to compile, but when I compile the standard program that B4i powers up with, I get the following errors:

Error occurred on line: 7 (Main)
Unknown command: 0
Stack Trace: (
CoreFoundation __exceptionPreprocess + 331
libobjc.A.dylib objc_exception_throw + 48
CoreFoundation +[NSException raise:format:] + 197
B4i Example -[B4IShell raiseEventImpl:method:args::] + 2258
B4i Example -[B4IShellBI raiseEvent:event:params:] + 1625
B4i Example -[B4IStaticModule initializeModule] + 434
B4i Example -[b4i_main initializeStaticModules] + 67
B4i Example -[B4IShellBI raiseEvent:event:params:] + 232
B4i Example __33-[B4I raiseUIEvent:event:params:]_block_invoke + 50
libdispatch.dylib _dispatch_call_block_and_release + 12
libdispatch.dylib _dispatch_client_callout + 8
libdispatch.dylib _dispatch_main_queue_callback_4CF + 1290
CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
CoreFoundation __CFRunLoopRun + 2342
CoreFoundation CFRunLoopRunSpecific + 625
GraphicsServices GSEventRunModal + 62
UIKitCore UIApplicationMain + 140
B4i Example main + 112
libdyld.dylib start + 1
??? 0x0 + 1
)
Application_Start

I am running the latest version of X-Code and B4i v5.51, and MacBuilder v5.3

Line 7 is the orientation line...

B4X:
'Code module
#Region  Project Attributes 
    #ApplicationLabel: B4i Example
    #Version: 1.0.0 
    'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
    #iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
    #iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
    #Target: iPhone, iPad
    #ATSEnabled: True
    #MinVersion: 8
#End Region

JMB
 
Upvote 0
Top