AugustRush / Stellar

A fantastic Physical animation library for swift
MIT License
2.94k stars 231 forks source link

"has no member" error #18

Open ghost opened 7 years ago

ghost commented 7 years ago

I want to use Stellar with my project but I have this Value of type 'UIView' has no member error in my very first attempt to use Stellar on an UIView.

I use Carthage to install Stellar the same way as other libraries. It's like Stellar is not "installed". Installation using Stellar 0.65 is OK, and the usual Carthage installation has been followed. Then, I used the direct inclusion of Sourcesdirectory and everything is fine.

I have clean project. This is a weird behavior... Any idea? Is there special configuration for Carthage command?

ghost commented 7 years ago

Any idea?

AugustRush commented 7 years ago

I had update carthage's build just now, you can try it again.

ghost commented 7 years ago

Ok. Still doesn't work. Does Stellar can have problem on UIView subclass?

AugustRush commented 7 years ago

What is it error?

ghost commented 7 years ago

It's like Stellar is not "installed": each line of code where Stellar properties/methods are invoked display Value of type 'UIView' has no member" error.
And there is no warning about included Stellar framework.

So using Stellar source code is OK but framework not. That's why I think there is a problem on Carthage configuration.

AugustRush commented 7 years ago

Yes, you are right, i have rebiuld 'Stellar' for carthage and test it myself, all should be ok. sorry about this. 2017-05-10 4 42 36 2017-05-10 4 42 25

ghost commented 7 years ago

Check with version 0.66: still the same errors! :-(

I built a new version of Stellar framework using source code in Carthage Checkouts directory and checking compilation in Xcode: does not work and no warnings displayed.

ghost commented 7 years ago

This is a weird bug! And I have another direction of research: could it be related to access control settings?

AugustRush commented 7 years ago

OK, i try to rebuild it and create a demo to test, all is right now. you can try it again.

ghost commented 7 years ago

OK, I made it work. But I had to manually change the Deployment Target setting from 9.3 to 8.0 in Stellar Demo project > Target Stellar.

capture d ecran 2017-05-11 a 09 33 44

What was the cause of this issue?

AugustRush commented 7 years ago

I don't think it's this reason,you can checkout my demo for carthage. StellarCarthageDemo.zip

ghost commented 7 years ago

Sorry my previous comment was not clear: there still is one problem on current version of Stellar. Deployment Target must be set to 8.0 in order to make Stellar installation via Carthage work for iOS 8.

I had to changed it myself to make the installation work!