QQ 分享报错 Could not build module 'TencentOpenApi'

2,859 阅读1分钟

iOS QQ分享 报错 Could not build module 'TencentOpenApi',类似这种报错均可参考本方法。

module.modulemap 文件原内容:

module TencentOpenApi {
    umbrella header "TencentOpenApiUmbrellaHeader.h"
    export *
}

module.modulemap 文件修改后的内容:

framework module TencentOpenAPI {
  header "QQApiInterface.h"
  header "QQApiInterfaceObject.h"
  header "TencentOAuth.h"
  header "TencentOpenApiUmbrellaHeader.h"
  header "sdkdef.h"

  export *
}

这样就可以编译通过了!此外,或者把 module.modulemap 删除也是可以的。