第一步
Your product in Build Settings MUST have this Header search paths:
"$(BUILT_PRODUCTS_DIR)"
"$(OBJROOT)/UninstalledProducts/include"
"$(TARGET_BUILD_DIR)/usr/local/lib/include"
第二步
Go to the Build Settings, then Linking, then find Other Linker Flags. Then change $(TARGET_BUILD_DIR)/libCordova.a -----> $(BUILT_PRODUCTS_DIR)/libCordova.a
第三步
archive 时 改Release 。就OK了。