xcode8 - Single -swift.h shared by multiple targets -


how include single -swift.h in file shared multiple targets in xcode 8?

i want include "projectname-swift.h" once rather have sea of

#if something_specific_for_target_1 #import "target1-swift.h" #elsif something_specific_for_target_2 #import "target2-swift.h" ... 

this objective c swift header file multiple targets

helped.

once have added custom user defined setting swift_module_name foo each , every target can swiftly import foo-swift.h instead of gazillion of target specific targetx-swift.h


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -