i'm trying to use the GMGridView
library, everything works but when i tap in a cell the app crash in a method of the library with this error: [UILongPressGestureRecognizer hasRecognizedValidGesture]:
unrecognized selector sent to instance...
I've tried to add "-ObjC -all_load" tho Other Linker Flags section but this give me an error with another library (MWPhotoBrowser
).
There is someone who have resolved this?
Thank you
Asked
Active
Viewed 524 times
1

Kampai
- 22,848
- 21
- 95
- 95

user1575803
- 57
- 6
1 Answers
4
You should specify the linker flags:
-ObjC -all_load
(source).
If you are using Xcode 4.2 and LLVM 3.0, only -ObjC
is needed.
For an explanation of why this is necessary, have a look at this S.O. thread.
Look here for steps to set linker flags in Xcode 3. In Xcode 4, you have to select your targets, and then the Build Settings tab in the right pane.
-
I've tried but when i add -ObjC -all_load i've another error i think because there is another library linked. Xcode error is "duplicate symbol" – user1575803 Aug 04 '12 at 08:26
-
I'm using Xcode 4, i've tried also with -ObjC only but i have the same error. I've added the library in the targets – user1575803 Aug 04 '12 at 08:38
-
please note: Xcode 4.2 and LLVM 3.0 (Xcode 4.2 supports more compilers, so you could be using a different one). which duplicate symbol do you get? – sergio Aug 04 '12 at 08:42
-
I've resolved, i've added -ObjC in Other Linker Flags and then i've removed the link of the other library (that give me the duplicate) from "Copy bundle resources" in build phases. – user1575803 Aug 04 '12 at 09:04