Uploaded image for project: 'Weex (Retired)'
  1. Weex (Retired)
  2. WEEX-477

无法import文件:WXResourceRequestHandlerDefaultImpl.h

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 0.18
    • None
    • iOS
    • None

    Description

      环境
      Weex 版本: Weex iOS SDK 0.18.0
      设备环境: 无(编译问题)

      概述/描述

      步骤1:新建一个swift项目
      步骤2:新建Podfile,添加:pod 'WeexSDK', '0.18.0'
      步骤3:命令行pod install
      步骤3:创建Objective-C类MJBWeexNetworkImpl,生成MJBWeexNetworkImpl.h/MJBWeexNetworkImpl.m
      步骤4:生成xxx-Bridging-Header.h
      步骤5:在MJBWeexNetworkImpl.h文件import下面代码
      #import <WeexSDK/WeexSDK.h>
      #import <WeexSDK/WXResourceRequestHandlerDefaultImpl.h>
      步骤6:在xxx-Bridging-Header.h同样import上面代码

      测试结果
      预期结果是可以编译通过;
      实际结果是在桥接文件和.h文件都提示'WeexSDK/WXResourceRequestHandlerDefaultImpl.h' file not found

      Attachments

        Activity

          People

            acton393 Xing Zhang
            zackzheng zhengzuanzhe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: