Bug? Error detected with remote compile

Derek Johnson

Active Member
Licensed User
Longtime User
I'm getting several errors detected with the remote compile that are not being caught locally.

Can you help with this please? Is there a way to relate the Java line number to the Basic line number?

(Other modules compile OK).

Derek

B4i version: 2.00
Parsing code. (0.04s)
Compiling code. (0.33s)
Compiling layouts code. (0.03s)
Compiling debugger engine code. (1.39s)
Building Xcode project (0.31s)
Sending data to remote compiler. Error
B4i line: 673
Return False 'Normal Processing
switch case is in protected scope

Error: security: SecKeychainDelete: The specified keychain could not be found.

Out: Build settings from command line:
ARCHS = armv7
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/xxxxxxxx/Payload
OTHER_CODE_SIGN_FLAGS = --keychain xxxxxxxx
PRODUCT_NAME = MyLib
PROVISIONING_PROFILE = ec84e930-b897-4421-b469-590e1bxxxxxx

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===
....
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1587:1: error: switch case is in protected scope
default:
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1429:17: note: jump bypasses initialization of retaining variable
id<B4IIterable> group331 = [_result Keys];
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1582:1: error: switch case is in protected scope
case 5:
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1429:17: note: jump bypasses initialization of retaining variable
id<B4IIterable> group331 = [_result Keys];
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1577:1: error: switch case is in protected scope
case 4:
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1429:17: note: jump bypasses initialization of retaining variable
id<B4IIterable> group331 = [_result Keys];
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1549:1: error: switch case is in protected scope
case 3:
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1429:17: note: jump bypasses initialization of retaining variable
id<B4IIterable> group331 = [_result Keys];
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1541:1: error: switch case is in protected scope
case 2:
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1429:17: note: jump bypasses initialization of retaining variable
id<B4IIterable> group331 = [_result Keys];
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1466:1: error: switch case is in protected scope
case 1:
^
/Users/administrator/Documents/UploadedProjects/xxxxxxxx/B4iProject/b4i_main.m:1429:17: note: jump bypasses initialization of retaining variable
id<B4IIterable> group331 = [_result Keys];
^
6 errors generated.
 

Derek Johnson

Active Member
Licensed User
Longtime User
Here's some code that shows the issue

B4X:
Sub test

    Dim result As Map
   
        Select Case "ABC"
        Case "A"
            For Each key As String In result.Keys
                'Log (key & " = " & result.Get(key))
            Next   
            Return True
           
        Case "B"
            Return False

        End Select

    Return True
End Sub

/Users/administrator/Documents/UploadedProjects/xxxxxx/B4iProject/b4i_main.m:97:1: error: switch case is in protected scope
case 1:
^
/Users/administrator/Documents/UploadedProjects/xxxxxx/B4iProject/b4i_main.m:87:17: note: jump bypasses initialization of retaining variable
id<B4IIterable> group20 = [_result Keys];
^
1 error generated.


Error: ** BUILD FAILED **
 
Last edited:
Top