My iOS project depends on some CustomLib.framework
. This framework comes as two separate files: one for simulator, another for real device.
I put these files into folders
@(PROJECT_DIR)/device_frameworks/CustomLib.framework
and
@(PROJECT_DIR)/simulator_frameworks/CustomLib.framework
I edited
Build Settings->Search paths->Framework search paths
:
Any iOS Simulator SDK $(PROJECT_DIR)/simulator_frameworks
Any iOS SDK $(PROJECT_DIR)/device_frameworks
What I do not understand is how to add CustomLib.framework
to the Xcode project, and how to add it as embedded framework (Build phases->Embed frameworks
). Because on these steps I have to specify a concrete framework, but I have two separate frameworks in device_frameworks
and simulator_frameworks
folders.