![]() Updated 4/13 to mention repeating these steps for all targets (thanks and to change to the much shorter and more reliable $(BUILD_DIR) (thanks warning: directory not found for option '-L/Users/nathanhyland/Library/Developer/Xcode/DerivedData/bideasy_rn-ddevhacvgkjqoigndhxjmlrtyyog/Build/Products/Staging' Since this path is now in the Header Search Paths of the main project, it gets picked up and everything else builds fine. This places its headers under /Products/Release-iphoneos/include. When my project builds, React builds first, and since it doesn't know about configurations other than Release and Debug, it builds with the Release configuration. ![]() Under > Build Settings > Header Search Paths I added $(REACT_HEADERS_PATH) as an entry. For all configurations not named Debug or Release, I set that to $(BUILD_DIR)/Release-$(PLATFORM_NAME)/include. Under > Build Settings, added a new User-Defined setting, called REACT_HEADERS_PATH. (Sidenote: if you're using fastlane to deploy, keep your project's build target in first place, otherwise fastlane gets confused and thinks you're building a library, so it never builds an ipa).Īdded React under > Build Phases > Target Dependencies, which made Xcode build React before building the rest of the project. ![]() ![]() This is what I did, instead:Īdded the React build target under the current scheme for my project. While adding a configuration with the same name works, it's not the most CI-friendly or future-proof solution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |