I can build for debugging just fine. I've triple checked that the static library is included in the build phases settings for the project. I've also tried other things like header include paths and such to no avail.
When I try to build an IPA for test flight, I get an error:
#import <MBProgressHUD/MBProgressHUD.h>
I've been able to build an IPA before, but it didn't implement/use the MBProgressHUD static library before.
I can include the the header and code file manually instead of statically linking it, but I prefer to know what's going on here.
Thanks.
PS - I used the "Static Library" instructions given https://github.com/jdg/MBProgressHUD
By default Xcode puts the build products into $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
, this equates to build/Release-iphoneos
for instance. This is the folder that the products get built into and where the headers will get copied to.
When we duplicate the Release configuration to say one called "App Store", Xcode now builds into build/App Store-iphoneos
. The problem is, really, that the static libraries are still being built with their Release configuration, into the Release build folder.
Because the App Store config (for me, at least) is only there to easily switch between provisioning profiles, my solution is to change the "Per-configuration Build Products Path" for the App Store config to $(BUILD_DIR)/Release$(EFFECTIVE_PLATFORM_NAME)
so that the App Store config also builds into the Release build folder.