1

I've created a single view iOS app. Added pod 'XBPageCurl'. When I add #import "XBPageCurlView.h" to any view controller I get this error

duplicate symbol _XBAnimationInterpolatorEaseInOut in:
/Users/alexander/Library/Developer/Xcode/DerivedData/CurlTest-fphbvwtzauotgidxuqzdympohxqz/Build/Intermediates/CurlTest.build/Debug-iphoneos/CurlTest.build/Objects-normal/arm64/ViewController.o
/Users/alexander/Library/Developer/Xcode/DerivedData/CurlTest-fphbvwtzauotgidxuqzdympohxqz/Build/Products/Debug-iphoneos/libPods-XBPageCurl.a(XBAnimation.o)
ld: 4 duplicate symbols for architecture arm64 

This is not happening with a test project from github.

Any idea how to get rid of it?

AlexanderZ
  • 2,128
  • 3
  • 20
  • 24
  • Something you're importing has a definition for `XBAnimationInterpolatorEaseInOut` rather than just a declaration. What do references to that symbol look like? – Phillip Mills May 13 '15 at 12:54
  • It's a block. From [here](https://github.com/marcpalmer/XBPageCurl/blob/master/XBPageCurl/XBAnimation.m) – AlexanderZ May 13 '15 at 14:49

2 Answers2

1

In build settings set "No Common Blocks" to NO

0

I removed any reference of interpolator block and moved the logic from it to - (BOOL)step:(NSTimeInterval)dt

AlexanderZ
  • 2,128
  • 3
  • 20
  • 24