-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Cosmos in tvOS app with CocoaPods shows error Library not loaded: @rpath/libswiftCore.dylib #11
Comments
@evgenyneu Yeah, I noticed that too. But that just affects IB, so you cannot preview the stars. tvOS in general has been so buggy so I barely pay attention to such small details as |
@evgenyneu Ok, I may have found a way to fix this, since I got tired of relaunching my Xcode. While I could build and run the app, having this error prevented my from properly designing interface in IB. Maybe there's a way to fix this easily from the code. I'm not that advanced on the topic. Basically I found solution here, if that helps: |
Thank you for the research, @staticdreams. I have set "Embedded Content Contains Swift Code" to YES in the tvOS target of Cosmos library. The storyboard now works in CocoaPods tvOS app without any changes to build settings. The Apple Q&A says this however:
I probably did exactly what Apple recommends against. Just something to keep an eye in the future. |
It looks like I was wrong when I set the "Embedded Content Contains Swift Code" to YES as it caused problems with submision to iTunes Connect. I have reverted the settings back to NO, as the Apple recommends. Let me know if the interface builder issue shows up again (it did not for me). |
Closing the issue. Feel free to reopen when needed. |
@staticdreams, thanks for adding tvOS support. I was testing this change by creating a new tvOS app and adding Cosmos via CocoPods. Then I created a view in storyboard and assigned its class to CosmosView. After that I got an error:
I tried using Cosmos with file and Carthage methods in tvOS app - both worked. It is the CocoaPods method that does not work.
The text was updated successfully, but these errors were encountered: