Compile Erlang 24.2 for iOS on mac system

Igor Clark igor.clark@REDACTED
Thu Dec 23 17:26:04 CET 2021


Hello, I think I’m missing something key here! Does this mean Erlang/OTP is buildable on iOS now? If so, is there a way to bundle it inside an iOS app? Would it be possible even in theory to communicate with (let alone wrap any of) the iOS UI libs so that at least core logic can be in Erlang?

Last time I looked into doing any of that, it seemed like a hard “no”. Has that changed significantly and I’ve totally missed it? If none of the above, what’s the value of building on iOS?

> On 23 Dec 2021, at 15:14, Dominic Letz <dominic@REDACTED> wrote:
> 
> 
> That has been fixed on master https://github.com/diodechain/otp/commit/b5551600082fda193fe85f7feb5bd69bcc1f858c
> 
> But that change did not make it into the OTP-24 maintenance branch it seems. So I guess you have to apply it yourself manually until there is a point release with the fix.
> 
> Best
> 
>> On Thu, 23 Dec 2021 at 11:08, Michael S <michael_489@REDACTED> wrote:
>> Hello together,
>> 
>> i want to compile Erlang OTP 24.2 on my Mac OS Monterey 12.0.1 - also Xcode and the command line tools are installed on my system.
>> 
>> ./otp_build configure --xcomp-conf=./xcomp/erl-xcomp-arm64-ios.conf --with-ssl=/Users/michael/compile/ios/openssl --disable-dynamic-ssl-lib
>> 
>> and then start the compile with
>> 
>> ./otp_build boot
>> 
>> But it runs into an error of net/if_arp.h no rule to make target - any hints on that?
>> 
>> -----
>> 
>> 
>> *
>> * Cross compiling Erlang/OTP-24 for: aarch64-apple-ios
>> *
>> 
>> .....
>> 
>> CC    obj/aarch64-apple-ios/opt/emu/erl_bif_re.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_unicode.o
>>   CC    obj/aarch64-apple-ios/opt/emu/packet_parser.o
>>   CC    obj/aarch64-apple-ios/opt/emu/safe_hash.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_zlib.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_nif.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_bif_binary.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_ao_firstfit_alloc.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_thr_queue.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_sched_spec_pre_alloc.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_ptab.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_map.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_msacc.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_lock_flags.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_io_queue.o
>>   CC    obj/aarch64-apple-ios/opt/emu/erl_db_catree.o
>>   CC    obj/aarch64-apple-ios/opt/emu/socket_dbg.o
>>   CC    obj/aarch64-apple-ios/opt/emu/socket_tarray.o
>> make[4]: *** No rule to make target `net/if_arp.h', needed by `obj/aarch64-apple-ios/opt/emu/socket_util.o'.  Stop.
>> make[3]: *** [opt] Error 2
>> make[2]: *** [opt] Error 2
>> make[1]: *** [emu] Error 2
>> make: *** [emulator] Error 2
>> 
>> 
>> 
>> Best regards,
>> 
>> Michael
>> 
> 
> 
> -- 
> // Dominic Letz | CTO
> +49 163 9198 211 (.de)
> dominic@REDACTED
> 
> DIODE
> diode.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20211223/5938f38a/attachment.htm>


More information about the erlang-questions mailing list