evgenyneu / Cosmos

A star rating control for iOS/tvOS written in Swift
MIT License
2.18k stars 366 forks source link

Can you please build the framework for the Simulator #183

Closed zahoorahmadgorsi closed 3 years ago

zahoorahmadgorsi commented 3 years ago

Please consider submitting the following information (if relevant):

When running in debug mode from Xcode with debug session active, the app launches in the simulator and I am able to debug. But when I am trying to launch the app in the simulator without debug session (by double clicking on the icon), it crashes with the log message below.

Everything is fine on the real device.

Can you please build the framework for the Simulator?

evgenyneu commented 3 years ago

Hi @zahoorahmadgorsi thanks for reporting the problem. Could you attache the error message please?

zahoorahmadgorsi commented 3 years ago

Aww I am sorry, it wasn't the framework issue.

I fixed it by following these steps

Went to Build Phases. Click the + icon in the top-left of the editor and select New Run Script Phase. Add the following command to the block of code under Run Script:

/usr/local/bin/carthage copy-frameworks

Click the + icon under Input Files and add an entry for each framework: $(SRCROOT)/Carthage/Build/iOS/Cosmos.framework

Issue is solved.

evgenyneu commented 3 years ago

Thank you so much for sharing the solution. Have a great day!