`prepare_command` runs only on `pod install`. Mid-iteration Swift edits to `darwin/Camera/*.swift` would never reach the built binary until the user ran pod install or cleaned the Pods dir — confusing during debugging (NSLog/diag additions silently absent from the running app). Add a `script_phases` build phase to both podspecs that rsyncs darwin/Camera into Classes/Camera-shared before each compile. The existing `prepare_command` stays as the install-time primer that gives CocoaPods the initial file set to glob; the build phase keeps contents fresh on every Swift edit thereafter. Verified: the resulting binary now contains the NSLog strings that the prior build was missing. (Adding new files to darwin/Camera/ still requires pod install so CocoaPods' source_files glob picks them up — script_phases only refreshes content of files CocoaPods already knows about.)
1.5 KiB
1.5 KiB