1)I have did all steps given at Pinterest developer site here
2)This is my pod file
# Uncomment this line to define a global platform for your project
platform :ios, ‘7.0’
# Uncomment this line if you're using Swift
# use_frameworks!
target 'xyz.com' do
pod "PinterestSDK", :git => "https://github.com/pinterest/ios-pdk.git"
end
target 'xyz.comTests' do
end
3)When I run without #import "PDKPin.h" & following code
[PDKPin pinWithImageURL:[NSURL URLWithString:imageUrl]
link:[NSURL URLWithString:shareUrl]
suggestedBoardName:@""
note:productName
withSuccess:^
{
NSLog(@"Succesful to pin");
}
andFailure:^(NSError *error)
{
NSLog(@"Failed to pin");
}];
it runs without error
4)But when I add the above code it gives linker error
Edit: I have tried it in blank project it works fine. But I am unable to figure out what all the dependencies still there in old project.