Skip to content

Latest commit

 

History

History
 
 

examples

Demo for cocoapods-spm Integration

Run the Demo

Run the following command:

make ex.install

to trigger pod install together with some prebuilt macros (Orcam, MacroCodableKit).

Open the workspace with Xcode and build/test it.

Highlights

Config

Check out the sample config at Podfile#L12-L15:

config_cocoapods_spm(
  dont_prebuild_macros: true,
  default_macro_config: "debug"
)

The dont_prebuild_macros option as true means: do not prebuild macros (if not exist) during pod installation. We can prebuild them using the CLI. With this option as false, the prebuild will be triggered upon pod installation.