[Solved] CocoaPods and Introjucer generated projects - linker error (React Native)

Hi all

I am having trouble getting the React Native libraries via CocoaPods building properly with an Introjucer generated project. I keep hitting the linker error "ld: library not found for -lReact".

I've detailed my process on an SO post: http://stackoverflow.com/questions/34792596/ld-framework-not-found-react

I can confirm that the same process (from the guide at https://facebook.github.io/react-native/docs/embedded-app-ios.html#content) works fine on a fresh project created from within Xcode. I only get the problems with Introjucer generated projects.

Has anyone else successfully added CocoaPods dependencies to a JUCE project? 

So I found what was causing the linker error: 

Introjucer-generated Xcode projects have a default "Per-configuration Build Products Path" (CONFIGURATION_BUILD_DIR) of: $(PROJECT_DIR)/build/$(CONFIGURATION)

Changing this to $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) seems to have sorted it out. 

I cant seem to find how to set CONFIGURATION_BUILD_DIR via Introjucer though?  

3 Likes