Skip to content
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

Error with preview in storyboard #25

Closed
ylecuyer opened this issue Oct 24, 2015 · 19 comments
Closed

Error with preview in storyboard #25

ylecuyer opened this issue Oct 24, 2015 · 19 comments

Comments

@ylecuyer
Copy link

Within Xcode 7.0.1 I get the following error in the storyboard:

file:///../Main.storyboard: error: IB Designables: Failed to update auto layout status: The bundle “$(PRODUCT_NAME)” couldn’t be loaded because its executable couldn’t be located.

And there is no preview of the component

@hsousa
Copy link
Owner

hsousa commented Oct 26, 2015

Just tried it on Xcode 7.1 and Main.storyboard previewed perfectly on the Sample project.

Can you try with 7.1 and report back please?

@ylecuyer
Copy link
Author

I updated xcode to 7.1 and the issue is still there.

On Mon, 26 Oct 2015 11:50 Hugo Sousa notifications@github.com wrote:

Just tried it on Xcode 7.1 and Main.storyboard previewed perfectly on the
Sample project.

Can you try with 7.1 and report back please?


Reply to this email directly or view it on GitHub
#25 (comment)
.

@hsousa
Copy link
Owner

hsousa commented Oct 26, 2015

Are you trying out the Sample project or your own?

If it's the Sample project, did you change anything after cloning?
If it's your own, did you include the code directly or through CocoaPods?

@ylecuyer
Copy link
Author

It's my own. I included it through cocoapods and I have use_frameworks!

On Mon, 26 Oct 2015 13:18 Hugo Sousa notifications@github.com wrote:

Are you trying out the Sample project or your own?

If it's the Sample project, did you change anything after cloning?
If it's your own, did you include the code directly or through CocoaPods?


Reply to this email directly or view it on GitHub
#25 (comment)
.

@hsousa
Copy link
Owner

hsousa commented Oct 26, 2015

Hmm, now that's weird! Can you get me a sample project with that issue that I can try out on my machine and attempt to work out what might be going on?

@K6F
Copy link

K6F commented Nov 4, 2015

My project has same problem too. Open your example , there's no error, designable view present perfect in storyboard. Once I import it in Podfile into my project, problem comes.

@K6F
Copy link

K6F commented Nov 4, 2015

When I import source files directly into my project , it show perfect.

@pinprick
Copy link

Have somebody solved this problem?

@peterkutasi
Copy link

It seems IB_DESIGNABLE does not work with static libraries. I made it work by telling cocoapod to build dynamic framework instead of static lib. My working sample pod setup is:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'

use_frameworks!

pod 'HCSStarRatingView'

Really nice cocoa control btw, gz 👍

@K6F
Copy link

K6F commented Nov 22, 2015

@peterkutasi thx

@hsousa
Copy link
Owner

hsousa commented Dec 5, 2015

That's why use_frameworks! is included in the README :-)

On the other hand, @ylecuyer stated he's using use_frameworks!.

/me scratches head, confused.

@b9AobJ
Copy link

b9AobJ commented Dec 15, 2015

well,if i import user_frameworks!, the project is work for me and no error!
But,my project is supported above ios 7 and user_frameworks! can not work for ios7.
so,what should i do???

@K6F
Copy link

K6F commented Dec 26, 2015

In fact, this error can be ignored, use "use_frameworks!" for design, remove it when distribution.

@hsousa
Copy link
Owner

hsousa commented Feb 10, 2016

Closing this since everyone seems to have found a working solution 👍

@Krusheuski
Copy link

Krusheuski commented May 1, 2018

Not fixed!
Xcode 9.3 (9E145), HCSStarRatingView 1.5

Main.storyboard: error: IB Designables: Failed to render and update auto layout status for ReviewsViewController (oEa-hA-nyK): dlopen(HCSStarRatingView.framework, 1): no suitable image found. Did find: HCSStarRatingView.framework: required code signature missing for 'HCSStarRatingView.framework'

@budowski
Copy link

budowski commented May 2, 2018

It's an issue with CocoaPods 1.5, not this specific component - see here for solution:
https://stackoverflow.com/a/50002531/1233767

@Krusheuski
Copy link

@budowski thx.

@scott-lydon
Copy link

I'm getting this problem without using cocoapods.

@hsousa
Copy link
Owner

hsousa commented Apr 17, 2019

@scott-lydon without CocoaPods?

Weird! Can you get me a quick sample project I can test locally and try to see what's going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants