ios - clang: error: linker command failed with exit code 1, only when testing on device -
i test app on device when ran problem, i'm getting linker error. i've checked compile sources , build phases, there's no sign of importing things twice.
ld: duplicate symbol _calculatenextsearchpage in /users/wouter/sites/test/fastpdfkit.embeddedframework/fastpdfkit.framework/fastpdfkit(fastpdfkit) , /users/wouter/sites/test/fastpdfkit.embeddedframework/fastpdfkit.framework/fastpdfkit(fastpdfkit) architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation)
this happens when testing on device, not in simulator.
alright guys had same problem. seems fixed it. using cocapods therefor described standard procedure can not executed.
steps add fastpdfkit cocoapods.
- download fastpdfkit
- in project add files "your project"
- go fastpdfkit folder have downloaded
- locate 1 folder , 1 project file. press , hold command key , add these in project
fastpdfkit.xcodeproj
fastpdfkit.embeddedframework
(note: fastpdfkit.embeddedframework
actual framework , might want open fastpdfkit.xcodeproj standalone before adding project, delete fastpdfkit.embeddedframework folder disk , build fastpdfkit target in project. should see newly created fastpdfkit.embeddedframework
folder)
- go project settings > target > build phases > link binary libraries
- make sure fastpdfkit.framework there.
- if not, drag project , put there.
- clean project, delete derived data
- add
#import <fastpdfkit/fastpdfkit.h>
need , go. here how link binary libraries like
please let me know if have troubles might've missed something.
Comments
Post a Comment