As said in similar question iOS Static Library as a Subproject of a Project That Has Custom Build Configurations?, the fix is to add this line
$(BUILD_DIR)/Release$(EFFECTIVE_PLATFORM_NAME)
to your target’s Framework Search Paths
, Header Search Paths
and/or Library Search Paths