Skip to content

Not working with React Native 0.69 #17

@ammarahm-ed

Description

@ammarahm-ed

The command has stopped working after upgrading my project to RN 0.69. It seems that the property, config.project.ios.pbxprojPath has been removed from react-native.config.js. The following patch fixes this.

diff --git a/node_modules/react-native-cli-bump-version/react-native.config.js b/node_modules/react-native-cli-bump-version/react-native.config.js
index fe5274e..6197368 100644
--- a/node_modules/react-native-cli-bump-version/react-native.config.js
+++ b/node_modules/react-native-cli-bump-version/react-native.config.js
@@ -10,16 +10,14 @@ module.exports = {
                 console.log("My work here is done.");
                 return;
             }
-
             const appGradlePath = path.join(
                 config.project.android.sourceDir,
                 config.project.android.appName,
                 "build.gradle",
             );
-
             versioner({
                 root: config.root,
-                pbxprojPath: config.project.ios.pbxprojPath,
+                pbxprojPath: `${config.project.ios.sourceDir}/${config.project.ios.xcodeProject.name.replace(".xcworkspace",".xcodeproj")}/project.pbxproj`,
                 buildGradlePath: appGradlePath,
                 type: args.type,
                 semver: args.semver,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions