Skip to content
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

Add a target to the Podfile #1680

Merged
merged 1 commit into from
Apr 15, 2016
Merged

Add a target to the Podfile #1680

merged 1 commit into from
Apr 15, 2016

Conversation

Mitko-Kerezov
Copy link
Contributor

Trying to run pod install with CocoaPods 1.0.0 issues an error in case the Podfile doesn't reference a target. Add the project target to the Podfile.
Upon specifying target to the Podfile, however, the path to the Pods' .xcconfig file changes - reflect that change in code.
In addition, truncate and write the Podfile upon each prepare in order to avoid duplication and errors.

Is related to NativeScript/ios-jsc#545
Fixes #1611

Ping @rosen-vladimirov

@Mitko-Kerezov Mitko-Kerezov self-assigned this Apr 14, 2016
@Mitko-Kerezov Mitko-Kerezov added this to the 2.0 milestone Apr 14, 2016
let pluginPodFileContent = this.$fs.readText(pluginPodFilePath).wait();
let contentToWrite = this.buildPodfileContent(pluginPodFilePath, pluginPodFileContent);
this.$fs.appendFile(this.projectPodFilePath, contentToWrite).wait();
let contentToWrite = `use_frameworks!\n\ntarget "${this.$projectData.projectName}" do\n${this.buildPodfileContent(pluginPodFilePath, pluginPodFileContent)}\nend`;
Copy link
Contributor

Choose a reason for hiding this comment

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

os.EOL

@rosen-vladimirov
Copy link
Contributor

👍 after fixing unit tests

@ghost ghost force-pushed the kerezov/cocoa-pods-1.0.0 branch from 28477e1 to 921663d Compare April 15, 2016 11:24
@rosen-vladimirov
Copy link
Contributor

but please take care of comments

@ghost ghost force-pushed the kerezov/cocoa-pods-1.0.0 branch from 921663d to d8339a3 Compare April 15, 2016 11:32
Trying to run `pod install` with CocoaPods 1.0.0 issues an error in case the Podfile doesn't reference a target. Add the project target to the Podfile.
Upon specifying target to the Podfile, however, the path to the Pods' .xcconfig file changes - reflect that change in code.
In addition, truncate and write the Podfile upon each prepare in order to avoid duplication and errors.
@Mitko-Kerezov
Copy link
Contributor Author

This PR provides a fix for #1096 also

@Mitko-Kerezov Mitko-Kerezov merged commit ab8a1b4 into master Apr 15, 2016
@Mitko-Kerezov Mitko-Kerezov deleted the kerezov/cocoa-pods-1.0.0 branch April 15, 2016 14:17
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.

2 participants