加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

swift2 – Swift 2.0,Xcode 7问题

发布时间:2020-12-14 04:45:38 所属栏目:百科 来源:网络整理
导读:我从这里使用RAMAnimatedTabBarController模块: https://github.com/Ramotion/animated-tab-bar 我使用Xcode 6在swift 1.2中开发了我的整个应用程序,应用程序运行得很好.我想尝试使用带有swift 2.0的Xcode 7对我的应用程序进行“侧载”.我有太多的错误,我设
我从这里使用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,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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读