Skip to content

Add check for Podfile before preparing platform #1748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 13, 2016

Conversation

TsvetanMilanov
Copy link
Contributor

@TsvetanMilanov TsvetanMilanov commented May 10, 2016

When preparing iOS need to check if any plugin requires Cocoapods to be installed and configured correctly. If plugin contains Podfile in the platforms/ios directory and Cocoapods is not installed or not configured correctly the platform prepare should fail.
This fixes #1734

When preparing iOS and merging xcconfig files if the project requires xcodeproj to be used (Cocoapods version < 1.0.0 and Xcode version >= 7.3) need to check if xcodeproj is available and fail if it's not.

When preparing iOS need to check if any plugin requires Cocoapods to be installed and configured correctly. If plugin contains podfile in the platforms/ios directory and Cocoapods is not installed or not configured correctly the platform prepare should fail.
@TsvetanMilanov TsvetanMilanov self-assigned this May 10, 2016
@TsvetanMilanov TsvetanMilanov added this to the 2.1 (Under consideration) milestone May 10, 2016
_.each(this.$pluginsService.getAllInstalledPlugins().wait(), (pluginData: IPluginData) => {
if (this.$fs.exists(path.join(pluginData.pluginPlatformsFolderPath(platform), "Podfile")).wait() &&
!this.$sysInfo.getSysInfo(this.$staticConfig.pathToPackageJson).wait().cocoapodVer) {
this.$errors.failWithoutHelp(`${pluginData.name} has Podfile and you don't have Cocoapods installed or it is not configured correctly. Please install Cocoapods and configure it correctly.`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please verify Cocoapods can work on your machine maybe

@rosen-vladimirov
Copy link
Contributor

👍

When preparing iOS and merging xcconfig files if the project requires xcodeproj to be used (Cocoapods version < 1.0.0 and Xcode version >= 7.3) need to check if xcodeproj is available and fail if it's not.
@TsvetanMilanov TsvetanMilanov force-pushed the milanov/check-for-podfile-on-prepare branch from dcab014 to 82a2bf1 Compare May 13, 2016 06:58
@TsvetanMilanov TsvetanMilanov merged commit befd207 into master May 13, 2016
@TsvetanMilanov TsvetanMilanov deleted the milanov/check-for-podfile-on-prepare branch May 13, 2016 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ios builds with 2.0.0: Processing node_modules failed. TypeError: Cannot read property 'split' of null
2 participants