openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

iOS simulator libs

Open dimitre opened this issue 2 years ago β€’ 4 comments

I've recently started to use iOS using github code, so I've noticed the simulator libs are absent. We don't have precompiled libs here http://ci.openframeworks.cc/libs/0.11.2/ too so I suppose the way of getting it working now is to build using apothecary right? Is there a script to build all apothecary formulas for a specific platform?

Suggestions: Simulator libs could be added to ci.openframeworks.cc and some new scripts added in /scripts/ios folder like: download_libs_ios.sh download_libs_ios_simulator.sh download_libs_tvos.sh

dimitre avatar May 07 '22 16:05 dimitre

Definitely they should be apart of it with x86_64 Intel. ARM64 simulator (M1 / Apple Silicon) however needs us to move to the new .xcframework as you can't fat lib (.a) two of the same architecture together. Apple also wants us to use .xcframework so we can version our dependancies and track what version each one is

danoli3 avatar May 12 '22 00:05 danoli3

Nice! @danoli3 what do you think of splitting in two separate files the ios libs and tvos libs ? and how to name this scripts? I can submit a PR. I always interrupt the script when it starts downloading tvos stuff

dimitre avatar May 12 '22 01:05 dimitre

tvOS split here https://github.com/openframeworks/openFrameworks/pull/6975

danoli3 avatar May 12 '22 02:05 danoli3

tvOS split here #6975

Woww thanks @danoli3 :)

dimitre avatar May 23 '22 16:05 dimitre

Simulator libs are present for x86_64

It’s a whole architecture change to get arm64 working as we will need to convert to the new format xcframework

On Sun, 8 May 2022 at 2:43 am, Dimitre @.***> wrote:

I've recently started to use iOS using github code, so I've noticed the simulator libs are absent. We don't have precompiled libs here http://ci.openframeworks.cc/libs/0.11.2/ too so I suppose the way of getting it working now is to build using apothecary right? Is there a script to build all apothecary formulas for a specific platform?

Suggestions: Simulator libs could be added to ci.openframeworks.cc and some new scripts added in /scripts/ios folder like: download_libs_ios.sh download_libs_ios_simulator.sh download_libs_tvos.sh

β€” Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/issues/6966, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGK2HHS7PWD3PDOHE2AYJTVI2MUJANCNFSM5VKUJ5CQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

danoli3 avatar Oct 11 '22 08:10 danoli3

Is it possible to build for simulator on M1 Silicon? Running into this issue using the iOS nightly. ld: in ../../../libs/boost/lib/ios/boost_system.a(error_code.o), building for iOS Simulator, but linking in object file built for iOS, file '../../../libs/boost/lib/ios/boost_system.a' for architecture arm64

NickHardeman avatar Nov 22 '22 16:11 NickHardeman

Not currently 😞 - that is something we need to tackle in apothecary: https://github.com/openframeworks/apothecary/issues/208

ofTheo avatar Nov 22 '22 16:11 ofTheo

Just build for m1 via Designed for iPad it works

On Wed, 23 Nov 2022 at 3:50 am, Theodore Watson @.***> wrote:

Not currently 😞 - that is something we need to tackle in apothecary: openframeworks/apothecary#208 https://github.com/openframeworks/apothecary/issues/208

β€” Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/issues/6966#issuecomment-1323971804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGK2HAMVY2E4LFDFPECL3DWJT2VBANCNFSM5VKUJ5CQ . You are receiving this because you were mentioned.Message ID: @.***>

danoli3 avatar Nov 22 '22 21:11 danoli3

@danoli3 Ok great, thank you. Xcode really wants me to have a developer license/team, is there a way to compile without one?

NickHardeman avatar Nov 23 '22 15:11 NickHardeman