PullToDismiss icon indicating copy to clipboard operation
PullToDismiss copied to clipboard

Unable to use it with Objective-C project

Open AnthoPakPak opened this issue 8 years ago • 2 comments

Hi,

Is there any additional step require to use this with an Objective-C project (with manual install, and no previous Swift support) ? The demo is made with a .xcworkspace. It works well. But what if I want to use it in a classic .xcodeproj project ?

I've imported PullToDismiss.framework into my project, and start using PullToDismiss where I want. After some errors and Googling, I succeeded in launching the project on simulator. But, even with adding framework to build phases, linked libraries, and embedded libraries, I get a linker error when trying to launch on device.

I know that linker error comes when implementation isn't found. But, how could it work in simulator (the scrollview behaves with PullToDismiss), whereas it couldn't launch at all on device ?

I've tried a lot of things, as changing @import PullToDismiss; to #import <PullToDismiss/PullToDismiss-Swift.h>, delete app from device, cleaning project, etc…

Thanks a lot for your help !! ;)

AnthoPakPak avatar Oct 09 '17 16:10 AnthoPakPak

I know answer: github "sgr-ksmt/PullToDismiss" ~> 2.2 +last version x-code + swift 5

maestrovsmaster avatar May 25 '19 13:05 maestrovsmaster

Hi, I've tried install version 2.2, last version Xcode and Swift 5 but still can't import PullToDismiss in objc project. Do you have any answers?

gannasong avatar Jun 09 '20 04:06 gannasong