iOS Question Build Failed.. ?

sdleidel

Active Member
Licensed User
Longtime User
B4i Version: 4.81
Parse den Code. (0.06s)
Kompiliere den Code. (0.18s)
Kompiliere Layoutcode. (0.07s)
Building Xcode project (0.61s)
Sende Daten an entfernten Compiler. Error
B4i line: 607
wait for (API.User_Nickname_Check(Create_Kid_Tem
type of property '_api' ('b4i_api *') does not match type of accessor '_api' ('void')

....

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)



The Code in the Modul is:




B4X:
Create_Kid_Temp_Alter=Slider_Kids_Reg1_Alter.Value
        wait for (API.User_Nickname_Check(Create_Kid_Temp_Nickname)) Complete (Result As Boolean)

and the Sub in API Codeblock is:

B4X:
Sub User_Nickname_Check(Nickname As String)  As ResumableSub
Return from this Sub is true or false...

In the Debug Mode, the App ist running... ? Why not in Release ?
 

sdleidel

Active Member
Licensed User
Longtime User
Hi Erel, thanks for your Feedback...

The error message of the line is then wrong, or completely different...
But what is wrong with the syntax...
What did I miss?
 
Upvote 0

sdleidel

Active Member
Licensed User
Longtime User
Hi Erel,
Wait for (Api.User....)
That give me an error in the editor...
Or must I type
Wait for ("Api.User...") ?
I have see the Video, but there is no example when you use Codemodule...

Thanks
Sascha
 
Upvote 0

sdleidel

Active Member
Licensed User
Longtime User
Ok the error is when you type:
wait for (API.User_Login) Complete (success As Boolean)

I think you must write:
wait for API.User_Login Complete (success As Boolean)

The ( ) is the Problem... Right ?
 
Upvote 0
Top