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

Failed to render and update auto layout status #349

Closed
retsohuang opened this issue Oct 2, 2016 · 7 comments
Closed

Failed to render and update auto layout status #349

retsohuang opened this issue Oct 2, 2016 · 7 comments

Comments

@retsohuang
Copy link

retsohuang commented Oct 2, 2016

Expected behavior

Interface Builder render correctly.

Actual behavior

Failed to rendering in Interface Builder, but it is OK in Simulator.

../Storyboards/Main.storyboard: error: IB Designables: Failed to render and update auto layout status for CourseDetailViewController (CJ4-8y-5VL): dlopen(IBAnimatable.framework, 1): Symbol not found: __TMVs20_DisabledRangeIndex_
  Referenced from: IBAnimatable.framework
  Expected in: /Applications/Xcode 8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/../../../../../../Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib
 in IBAnimatable.framework

Tested on

Xcode Version

Version 8.0 (8A218a)

Pod Version

2.8.1

Swift Version

2.3

@JakeLin
Copy link
Member

JakeLin commented Oct 2, 2016

Thanks for reporting this issue, how do you use IBAnimatable? Via cocapods? Can you re-install the pod? Can you rebuild the project? If the issue still happens, can you upload a demo project with the issue? Thanks.

@JakeLin
Copy link
Member

JakeLin commented Oct 2, 2016

I also noticed the tool chain is not right, XcodeDefault.xctoolchain , if you use Swift 2.3 the tool chain should not be default

@retsohuang
Copy link
Author

I use IBAnimatable via CocoaPods, I have clean and re-install it not work.

Am I missing something on setting toolchain?

@JakeLin
Copy link
Member

JakeLin commented Oct 2, 2016

I think it is a general issue not specific for IBANimatable . Is IBAnimatable missing a .swift_version file? I don't know the solution since I can not reproduce this issue. If you can upload a small demo project will help us a lot. Or try to google why Xcode use the wrong tool chain.

@retsohuang
Copy link
Author

retsohuang commented Oct 3, 2016

I have clean install Xcode from App Store but it still not working, I can't found anything talking about setting Xcode toolchain.

This is demo project.

And I found same issue from another project.

@JakeLin
Copy link
Member

JakeLin commented Oct 3, 2016

Hi Retso,

Can you have a look at this https://forums.developer.apple.com/thread/63237?
It may fix your issue.

Thanks
Jake

On 3 October 2016 at 14:24, Retso Huang notifications@github.com wrote:

I have clean install but it still not working, I can't found anything
talking about setting Xcode toolchain.

This https://github.com/retsohuang/IBAnimatableBug is demo project.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#349 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjBoJ8eraCz-6sqEDBLeYv10B2DLjkbks5qwHVSgaJpZM4KL9mc
.

@retsohuang
Copy link
Author

Hi @JakeLin

It works, I did this

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'IBAnimatable'
      target.build_configurations.each do |config|
                config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = ['$(inherited)', '/Applications/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator']
      end
    end
end

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

No branches or pull requests

2 participants