Skip to content

Instantly share code, notes, and snippets.

@akisute
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akisute/9320910 to your computer and use it in GitHub Desktop.
Save akisute/9320910 to your computer and use it in GitHub Desktop.
I'm getting hatred to this buggy tool named CocoaPods...
# CocoaPods could completely break up your MyProject.xcodeproj to the state where even CocoaPods itself can't fix it,
# (for example, losing PODS_ROOT configulations)
# if you specify some broken Podfile. Adding `target "xxx" do ~ end` structure to your Podfile might be a trigger of this.
# So here's a tip: DO NOT ADD `target` unless absolutely nessessary.
#--------------------------------------------------------------------------------
# WORKED
platform :ios, "7.0"
target "MyProject" do
pod 'Masonry', '~> 0.4'
end
target "MyProjectTests" do
pod 'Masonry', '~> 0.4'
end
#--------------------------------------------------------------------------------
# WORKED
platform :ios, "7.0"
pod 'Masonry', '~> 0.4'
#--------------------------------------------------------------------------------
# NOT TESTED (perhaps broken)
platform :ios, "7.0"
target "MyProject" do
pod 'Masonry', '~> 0.4'
end
#--------------------------------------------------------------------------------
# BROKEN, DO NOT DO THIS
platform :ios, "7.0"
pod 'Masonry', '~> 0.4'
target "MyProject" do
end
target "MyProjectTests" do
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment