iOS Question Compiling strange error

Alessandra Pellegri

Active Member
Licensed User
Longtime User
I obtain this error:
B4X:
B4i version: 2.51
Parsing code.  (0.19s)
Compiling code.  (0.27s)
Compiling layouts code.  (0.00s)
Building Xcode project  (0.04s)
Sending data to remote compiler.  Error
B4i line: 2120
muoviUIObject(SelColEvidenziatore1,LstOpzioni.Le
expected ']'

The involved code is:
B4X:
Private SelColEvidenziatore1 As Label

....
....
....
    muoviUIObject(LstOpzioni.View,PnlOpzioni.Width/2,10dip,PnlOpzioni.Width/2-10dip,50dip)
     muoviUIObject(SelLingua,10dip,20dip,150dip,50dip)
     muoviUIObject(TraspPnlLingue,PnlOpzioni.Width/2,10dip,PnlOpzioni.Width/2-10dip,50dip)
     muoviUIObject(SelColEvidenziatore1,LstOpzioni.Left,LstOpzioni.Top+LstOpzioni.Height+15dip,LstOpzioni.Width,LstOpzioni.Height)
     muoviUIObject(SelColEvidenziatore1_T,10dip,SelColEvidenziatore1.top ,150dip,50dip)
     muoviUIObject(SelColFamiliarizzazione1,LstOpzioni.Left,SelColEvidenziatore1.Top+SelColEvidenziatore1.Height+15dip,LstOpzioni.Width,LstOpzioni.Height)
     muoviUIObject(SelColFamiliarizzazione1_T,10dip,SelColFamiliarizzazione1.top ,150dip,50dip)
....
....


Sub muoviUIObject(ob As View, left As Float, top As Float, width As Float, height As Float)
   ob.Left=left
   ob.Top=top
   ob.Width=width
   ob.Height=height
End Sub

The strange fact is that the same part of code i used in previous releases and it doesn't give any disturb.


What could be ?

Thank you
 

Alessandra Pellegri

Active Member
Licensed User
Longtime User
The same code that Thursday was compiling perfectly, today suddenly started giving the same error. I did no change since Thursday.

Error is:
B4X:
B4i version: 2.51
Parsing code.  (0.23s)
Compiling code.  (0.45s)
Compiling layouts code.  (0.01s)
Compiling debugger engine code.  (3.73s)
Building Xcode project  (0.21s)
Sending data to remote compiler.  Error
B4i line: 2020
muoviUIObject(SelColEvidenziatore1,LstOpzioni.Le
expected ']'

Out: Build settings from command line:
  ARCHS = armv7
  CODE_SIGN_IDENTITY = iPhone
  CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
  OTHER_CODE_SIGN_FLAGS = --keychain <user id>
  PRODUCT_NAME = eIETM
  PROVISIONING_PROFILE = 4902f1be-8540-42cb-95da-cb0f1aa721a2

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

Check dependencies

...
....
....



Error: ** BUILD FAILED **


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

Thank you
 
Last edited:
Upvote 0

Alessandra Pellegri

Active Member
Licensed User
Longtime User
I solved. But the error was not in the code.
I created a New project and i copied and pasted all the modules and all the files and now it works.
 
Upvote 0
Top