diff --git a/scripts/postlink/ios/postlink.js b/scripts/postlink/ios/postlink.js index 5403742..fe9f03d 100644 --- a/scripts/postlink/ios/postlink.js +++ b/scripts/postlink/ios/postlink.js @@ -12,6 +12,7 @@ module.exports = () => { console.log("Running ios postlink script"); var ignoreNodeModules = { ignore: "node_modules/**" }; + var ignoreNodeModulesAndPods = { ignore: ["node_modules/**", "ios/Pods/**"] }; var appDelegatePaths = glob.sync("**/AppDelegate.+(mm|m)", ignoreNodeModules); // Fix for https://github.com/Microsoft/react-native-code-push/issues/477 @@ -150,7 +151,7 @@ module.exports = () => { } function getPlistPath(){ - var xcodeProjectPaths = glob.sync(`**/*.xcodeproj/project.pbxproj`, ignoreNodeModules); + var xcodeProjectPaths = glob.sync(`**/*.xcodeproj/project.pbxproj`, ignoreNodeModulesAndPods); if (!xcodeProjectPaths){ return getDefaultPlistPath(); } @@ -193,4 +194,4 @@ module.exports = () => { //(see https://github.com/Microsoft/react-native-code-push/issues/534#issuecomment-302069326 for details) return path.resolve(path.dirname(xcodeProjectPath), '..', plistPathValue.replace(/^"(.*)"$/, '$1')); } -} \ No newline at end of file +}