swift2 - Swift 2.0、Xcode 7 问题

标签 swift2 xcode7 ios9 ios8.3

我从这里使用 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/

相关文章:

ios - 在 UIViewControllerAnimatedTransitioning 中隐藏状态栏

in-app-purchase - 如何在 Swift 中使用 Xcode 7 和 SpriteKit 在 iOS 应用程序中修复恢复购买?

xcode - 尝试捕获展开的线吗? swift 2.0、XCode 7

ios - 找不到 xcodebuild 配置文件?

ios - 在仅变换层中更改属性 contentsGravity 将无效

Xcode 6.3 不支持 iOS 9

swift - didFinishPickingMediaWithInfo 是否根据不同的发件人执行不同的操作

ios - 获取 View 大小而不是调整大小

swift - 使用自定义函数删除表格 View 单元格

ipad - Xcode 7.0 和 iOS5 兼容性