我正在使用GCDWebServer
cocoapod 并尝试启动静态代码:
GCDWebServer* webServer = [[GCDWebServer alloc] init];
[webServer addGETHandlerForBasePath:@"/" directoryPath:NSHomeDirectory() indexFilename:nil cacheAge:3600 allowRangeRequests:YES];
[webServer runWithPort:8080];
GCDWebServer
找不到runWithPort
方法。