~/talk

Use C, C++ and Objective C Libraries in a Swift Project

Talkat App Builders Switzerland 2019 · 2019-04-29..04-30· [swift]
slides:none on file

Shows step-by-step how to import C, C++ and Objective‑C into Swift by linking frameworks and static libs (e.g. add LibbasicCPP.a and LibpureC.a), creating an Obj‑C shim (rename .m to .mm), and exposing C headers via module.modulemap. Covers pointer handling (use String(cString:) and explicitly free C‑allocated memory), function pointers as @convention(c) closures that must be non‑capturing (store in globals), and wrapping C++ objects with new/delete. Provides working example projects and open‑source code — it works.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:00Spotify's tech stack history
  3. 5:08Interoperability overview
  4. 6:45Integrating Objective-C
  5. 8:03Wrapping C++ with Objective-C
  6. 10:00Integrating C via modules
  7. 12:21Building friendly wrappers
  8. 15:32Memory management and closures
  9. 18:56Complex closure bridging
  10. 20:30Advanced C++ integration
  11. 22:25Conclusion and recap
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.