1 RCTWebSocket Semantic issue

  • 1.

    打开RCTSCrollView.m Command+F 搜索@implementation RCTCustomScrollView
    只会搜索到一个结果,然后修改:

    @implementation RCTCustomScrollView
    {
          RCTRefreshControl *_refreshControl;//不管原来有什么,在原来的基础上加上这句
    }
    
  • 2.

    //  SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
      (void)SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
    

2 __nw_connection_get_connected_socket_block_invoke

Xocde控制台不断输出 如下log

[] __nw_connection_get_connected_socket_block_invoke * Connection has no connected handler
  1. Xcode menu -> Product -> Edit Scheme…
  2. Environment Variables -> Add -> Name: “OS_ACTIVITY_MODE”, Value:”disable”
  3. Run again

3 Apple Mach-O Linker(Id) Error


TARGETSBuild setting -> Other Linker Flags ->
添加 -lc++

本文地址: http://yongqianvip.github.io/2016/10/18/RN-Erroe-Xcode8/