Uh oh!
There was an error while loading. Please reload this page.
feat(cli-patform-ios): allow setting a path to a Podfile - #1459
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Podfile and fix sourceDir inside run-iosPodfile and fix sourceDir inside run-iosPodfiletido64
commented
Aug 4, 2021
Thanks, @grabbou. I applied the fixes directly to relevant files under |
Kiesco08
commented
Aug 4, 2021
Thanks for the fix! There is another area where it also assumes project root directory is the podfile directory. Would it be possible to apply a change there too? + project_pod_file_dir = File.dirname(config["project"]["ios"]["podfile"])- relative_path = podspec_dir_path.relative_path_from project_root+ relative_path = podspec_dir_path.relative_path_from project_pod_file_dir |
On closer inspection, this doesn't fully work. I ran In addition to @Kiesco08's proposal, I also had to make podfile: path.join(__dirname, "ios", "Podfile"),It's been so long since I looked at it but this is why Edit: ~~It looks like you would also have to let us override ios: {sourceDir: path.join(__dirname,"ios"),project: "node_modules/react-native-test-app/ios/ReactTestApp.xcodeproj",podfile: "ios/Podfile"},Where Edit 2: Alternatively, we can just change this: to Which should be more correct given that we shouldn't be using |
Draft following explanation in #1435 (comment)
To be tested, CC @tido64 and @kelset, as I think I am not getting a successful project initialisation (
.xcworkspacemissing).The
react-native.config.jsof myexamplehas been customised as follows: