iOS Question Command line compilation for B4i

Discussion in 'iOS Questions' started by Alberto Iglesias, May 31, 2019.

  1. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Hello everyone,

    Any one already set Jenkins or any other toll for Continuos Integration for B4i?

    Have any tool available to compile and create .IPA automatically?


    Thank you!


    @Erel Any possibility to have one tool like B4ABuilder.exe?? for B4i?

    Thanks

    Alberto Iglesias
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Might be added in a future version. The building process is more complicated in B4i compared to B4A and B4J.
     
    ShaneG30 likes this.
  3. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Ok, why not put on the same B4i.exe?

    Like, if have parameters works like command line, if not works like IDE.

    just an idea!
     
  4. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    In addition, I think license verification should be moved to the command line builders - this way we don't need to have the IDE installed to use the command line compilers; this would allow us to create cross-platform IDEs.
     
    Alberto Iglesias likes this.
  5. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Now, I using AZURE PIPELINES to Continuos Integration and works perfectly, look:

    Everytime when I commit my source code, the Pipeline do everything for me: Get the Code, Compile, Sign, push to our servers and you can also publish automatically to Stores.

    But for now we can do just for Android....

    Waiting angrily for B4iBuild.exe !!!


    upload_2019-6-6_13-5-2.png
     
    ShaneG30 likes this.
  6. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Hello @Erel,

    Until this feature is not done, what you recommend to automatic build? From MACOS Side? Do you have some automatic process for this?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    You can use xcodebuild from the command line to build the project. As I wrote the building process is quite complicated and you will need to deal with setting the default keychain and signing the code. If Swift libraries are included then it is much more complicated.
     
  8. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    @Erel do you have any minimum example to compile and create the .IPA from xcodebuild ?

    Is very important thing to automatically compile when you want to put on Continuous integration, if you do that, is a very very improvement to all users, they don't need to worry about compile, just coding!
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Sorry but a minimum example will not help. The process depends on all kinds of factors. This is currently not supported.
     
  10. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    I'm assuming that the compilation is done by the local/hosted builders, right?

    If they are then why not just create a CLI tool that replicates what the IDE does (sending data to the builders)?
     
    Alberto Iglesias likes this.
  11. Erel

    Erel Administrator Staff Member Licensed User

    True.

    Such a builder might be created in the future. I don't think that it will be used by many developers.

    Not really. There are many other much more complicated challenges that you need to solve if you want to develop a new IDE.
     
    Alberto Iglesias and ShaneG30 like this.
  12. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    I thought in put the improvement on the same IDE, as others do. Like: C:> B4i.exe <complete path of b4i project> /release /configuration:xxxxx (and the rest get the default values of projet) if have this parameters, just not open the IDE and after this, close the IDE
     
  13. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    The biggest hurdle would be licensing though that could be solved by having the compilers handle licensing rather than the IDEs. Another hurdle is the designer but there are various solutions I could see using.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice