Giter VIP home page Giter VIP logo

Comments (9)

evgenyneu avatar evgenyneu commented on June 2, 2024 2

Hi @renanstig, thank you for kind words. I think I saw this issue before, I do not remember how exactly I fixed it but it was probably a combination of the following:

  1. Clean the project in Xcode and restart.
  2. In the Simulator menu select "Reset Content and Settings".
  3. Clear the DerivedData directory either manually from Preferences > Locations (see screenshot) or from command line:
rm -rfd ~/Library/Developer/Xcode/DerivedData/*
rm -rfd ~/Library/Caches/com.apple.dt.Xcode/*

Sorry for the vague answer. Let me know if it works for you.

clear-derived-data

from cosmos.

ctenuta avatar ctenuta commented on June 2, 2024 2

Hi. I Have the same problem of Renan.

One of the third party libraries of my project is compiled with Swift 2.3. So I have to stuck with Xcode 8 and Swift 2.3.

I try the above mentioned steps without success. The storyboard scene with the CosmosView seems "crashed" and the error doesn't disappear, despite the project compile normally.

I try to use your library directly from code, but in Objective-c seems that I cannot access the settings object for the CosmosView. I can instantitate the view, but how can I change the default settings like, starsize, fillmode etc?

-> CosmosView *rating = [[CosmosView alloc] initWithFrame:CGRectMake(0,0, 199,40)];

Thanks in advance.

Cristiano

from cosmos.

valentinjahanmanesh avatar valentinjahanmanesh commented on June 2, 2024 1

same here :( after updating to xcode8

from cosmos.

ctenuta avatar ctenuta commented on June 2, 2024

The problem seems related to the Xcode automatically refreshing views (Editor -> Automatically Refresh Views) on the Story Board.

from cosmos.

evgenyneu avatar evgenyneu commented on June 2, 2024

Hi @ctenuta, thanks for your report. To be honest, I have no idea why this is happening. However, here is a way to access Cosmos settings from Objective-C as a workaround: https://github.com/marketplacer/Cosmos/wiki/Using-Cosmos-settings-in-Objective-C

Let me know how it works for you.

from cosmos.

ctenuta avatar ctenuta commented on June 2, 2024

I'll try to use the library direct from code. That's not a big deal! Thanks!!

from cosmos.

andre991 avatar andre991 commented on June 2, 2024

same here :/ xcode 8.2.1

from cosmos.

evgenyneu avatar evgenyneu commented on June 2, 2024

Thanks for reporting, people. Feel free to share your solution if anyone managed to fix it (since I can't reproduce this issue).

from cosmos.

guidove avatar guidove commented on June 2, 2024

Great library! Thanks for creating it.
I'm also experiencing this issue. I'm on Xcode 10 swift 4.2.
I included the swift file directly (so not using cocoapods or carthage). Not sure if that could cause this?

No biggie, but would be nice if it would work from storyboard. In the mean time I just use in code.

Thanks again!

from cosmos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.