我从这里使用 RAMAnimatedTabBarController 模块: https://github.com/Ramotion/animated-tab-bar
我使用 Xcode 6 在 swift 1.2 中开发了整个应用程序,并且该应用程序运行完美。我想使用具有 swift 2.0 的 Xcode 7 尝试“侧面加载”我的应用程序。我有太多错误,我设法解决了大多数错误,但只有三个。
1) 来自 RAMAnimatedTabBarController 模块的这行代码在 Xcode 6 中完美编译时抛出错误,表示无法调用该函数:
var constranints = NSLayoutConstraint.constraintsWithVisualFormat(formatString,options:NSLayoutFormatOptions.DirectionRightToLeft,metrics: nil,views: containersDict as [NSObject : AnyObject])
编译器错误是:
Cannot invoke 'constraintsWithVisualFormat' with an argument list of type '(String, options: NSLayoutFormatOptions, metrics: nil, views: [NSObject : AnyObject])'
2) 抛出另一个异常错误:
linker command failed with exit code 1 (use -v to see invocation)
3)还有另一个:
(null): error: cannot parse the debug map for "/Users/Rakshith/Library/Developer/Xcode/DerivedData/Blubot-heabwwmhqxxvctaabxkwcpgzsadx/Build/Intermediates/SwiftMigration/Blubot/Products/Debug-iphonesimulator/BlubotTests.xctest/BlubotTests": No such file or directory
我的项目到底出了什么问题?仍设置为 iOS 8.3。
最佳答案
禁用 BitCode
Build Settings -> BitCode
关于swift2 - Swift 2.0、Xcode 7 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31159528/