MengTo / Spring

A library to simplify iOS animations in Swift.
http://designcode.io
MIT License
14.08k stars 1.8k forks source link

Failed to render and update auto layout status #175

Open tiferrei opened 8 years ago

tiferrei commented 8 years ago

Xcode version: Xcode 8.0 Beta 1 (8S128d) Language: Swift 2.3

Hello there, I use spring in my project mainly to use the designable classes, it was working fine, however, today when I opened Xcode my storyboard is with the buttons not rendered and I have loads of errors like this:

file:///Users/tiferrei/Developer/GL-Dash/GL%20Dash/Graphical%20Resources/Storyboards/Base.lproj/Main.storyboard: error: IB Designables: Failed to render and update auto layout status for LoginViewController (BYZ-38-t0r): dlopen(Spring.framework, 1): Symbol not found: __TMVs20_DisabledRangeIndex_
  Referenced from: Spring.framework
  Expected in: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/../../../../../../Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib
 in Spring.framework

It only happens with view controllers that use Spring:

screen shot 2016-07-03 at 19 19 30 screen shot 2016-07-03 at 19 19 16
jejernig commented 7 years ago

Any work around on this? My project is doing the same

mayooresan commented 7 years ago

me too having the same problem.. Sigh 👎

retsohuang commented 7 years ago

Please try to add this to your Podfile

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'Spring'
      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

https://forums.developer.apple.com/thread/63237