UITextView-Placeholder icon indicating copy to clipboard operation
UITextView-Placeholder copied to clipboard

Fixes spm support

Open AndrewSB opened this issue 3 years ago • 13 comments

AndrewSB avatar Jul 13 '20 21:07 AndrewSB

The current master does not work in Xcode 11.6 with SwiftPM. And also this PR not working.

I believe the header moves to /include will be better. If not change the folder structure. The puclicHeadersPath should be "" empty string. SwiftPM in Xcode 11.6 not accepts "." or nil.

Here is my folk. https://github.com/MainasuK/UITextView-Placeholder/commit/20f513ded04a040cdf5467f0891849b1763ede3b

MainasuK avatar Aug 12 '20 08:08 MainasuK

Screen Shot 2020-08-14 at 8 58 08 AM

I've been using my fork for a few weeks on Xcode 11.6 and the beta 12. Are you sure you're targeting the right branch (AndrewSB/master) in your package manifest?

AndrewSB avatar Aug 14 '20 15:08 AndrewSB

You are right. I'm not change the checkout rules to "branch". After switch to master the package works.

MainasuK avatar Aug 14 '20 16:08 MainasuK

@AndrewSB I am getting this error now on Xcode 12 :

Value of type 'UITextView' has no member 'placeholder'

MalcolmnDEV avatar Sep 22 '20 09:09 MalcolmnDEV

Could you provide more context around the error please? The full compiler message if you can see it? I haven't downloaded 12 yet.

I'm also more than happy to accept a PR that fixes the issue if you'd like to patch it!

AndrewSB avatar Sep 23 '20 04:09 AndrewSB

@AndrewSB Thats the only error message that Xcode gives.

Do you think it might be around objective c files inside the package ?

MalcolmnDEV avatar Sep 23 '20 15:09 MalcolmnDEV

I am trying to access optionTextField.placeholder = ""

This is where the error comes

MalcolmnDEV avatar Sep 23 '20 15:09 MalcolmnDEV

I can't really tell what might the problem without more context. I can take a look in a couple weeks when I upgrade to Xcode 12

AndrewSB avatar Sep 23 '20 18:09 AndrewSB

it's works for me

tangbl93 avatar Jan 06 '21 06:01 tangbl93

I still get an error on Xcode 12.2.

Value of type 'UITextView' has no member 'placeholder'

MalcolmnDEV avatar Jan 06 '21 11:01 MalcolmnDEV

Its as if the package does not include placeholder

MalcolmnDEV avatar Jan 06 '21 11:01 MalcolmnDEV

This is working for me.

4brunu avatar Feb 18 '21 15:02 4brunu

This PR is working, but Xcode is showing the following warning: /Users/user/Library/Developer/Xcode/DerivedData/Project-beynuwyvodgnkhfdlxfcwaisrsll/SourcePackages/checkouts/UITextView-Placeholder/Sources/include/UITextView+Placeholder.h should be renamed to /Users/user/Library/Developer/Xcode/DerivedData/Project-beynuwyvodgnkhfdlxfcwaisrsll/SourcePackages/checkouts/UITextView-Placeholder/Sources/include/UITextView_Placeholder.h to be used as an umbrella header

4brunu avatar Jun 16 '21 11:06 4brunu