You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "XuYouyang (JIRA)" <ji...@apache.org> on 2018/06/26 05:41:00 UTC

[jira] [Commented] (WEEX-477) 无法import文件:WXResourceRequestHandlerDefaultImpl.h

    [ https://issues.apache.org/jira/browse/WEEX-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523235#comment-16523235 ] 

XuYouyang commented on WEEX-477:
--------------------------------

[~zackzheng] file 'WeexSDK/WXResourceRequestHandlerDefaultImpl.h' is not a public file, so you can't import them directly.

Maybe 'MJBWeexNetworkImpl' is a Weex handler in your project handling resource request, you just implement the protocol 'WXResourceRequestHandler' and register it.

> 无法import文件:WXResourceRequestHandlerDefaultImpl.h
> ------------------------------------------------
>
>                 Key: WEEX-477
>                 URL: https://issues.apache.org/jira/browse/WEEX-477
>             Project: Weex
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 0.18
>            Reporter: zhengzuanzhe
>            Assignee: xingZhang
>            Priority: Critical
>
> *环境*
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)