Giter Site home page Giter Site logo

rac's Issues

下载下来之后报错

The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.
报这个错 网上的方法都没用 是我的问题还是什么

map现在有变动, 绑定bind也有变化

//创建信号
RACSubject * subject = [RACSubject subject];

//map

// RACSignal * bindSignal = [subject map:^id _Nullable(id _Nullable value) {
// return [NSString stringWithFormat:@"%@-mapValue",value];
// }];
// [bindSignal subscribeNext:^(id _Nullable x) {
// NSLog(@"%@",x);
// }];
// [subject sendNext:@"123"];

//flatmap

// RACSignal * bindSignal = [subject flattenMap:^__kindof RACSignal * _Nullable(id _Nullable value) {
// NSLog(@"value = %@",value);
//
// return [RACSignal return:[NSString stringWithFormat:@"change - %@",value]];
// }];
// [bindSignal subscribeNext:^(id _Nullable x) {
// NSLog(@"flatmap = %@",x);
// }];
// [subject sendNext:@"123"];

RACSubject * s1 = [RACSubject subject];
RACSubject * s2 = [RACSubject subject];
[[s1 flattenMap:^__kindof RACSignal * _Nullable(id  _Nullable value) {
    return value;
}] subscribeNext:^(id  _Nullable x) {
    NSLog(@"newSignal %@",x);
}];
[s1 sendNext:s2];
[s2 sendNext:@"123"];

Unsupported Swift Version

编译时报错Unsupported Swift Version,似乎是因为Result用了swift3的代码,而swift3在XCode12中已经不支持了,因此想问下这个该如何解决呀?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.