环信3.0, ios使用swift直接桥接sdk提示找不到module

问题描述

步骤:1,用pod导入sdk2,建立桥接文件,写入#import <HyphenateSDK/EMSDK.h>3,设置好工程的build setting里桥接文件的位置4,在appDelegate.swift里写 import EMSDK,提示找不到module,import HyphenateSDK 也一样

解决方案

@lizilong:项目工程名就是: easemobTestbuild setting里就设置了 Objective-C Briding Header: easemobTest/easemobTest-Bridging-Header.h xcode 版本7.3, pod 版本0.39 ,pod install --verbose 明细如下:easemobTest pod install --verbose  PreparingUpdating local specs repositoriesUpdating spec repo `master`  $ /usr/bin/git pull --ff-only  From https://github.com/CocoaPods/Specs     ee23395..19508dd  master     -> origin/master  Updating ee23395..19508dd  Fast-forward   Specs/HCSharePush/0.0.9/HCSharePush.podspec.json   | 77 ++++++++++++++++++++++   .../0.1.1/ZXPopPresentation.podspec.json           | 19 ++++++   2 files changed, 96 insertions(+)   create mode 100644 Specs/HCSharePush/0.0.9/HCSharePush.podspec.json   create mode 100644 Specs/ZXPopPresentation/0.1.1/ZXPopPresentation.podspec.jsonCocoaPods 1.0.0 is available.To update use: `gem install cocoapods`Until we reach version 1.0 the features of CocoaPods can and will change.We strongly recommend that you use the latest version at all times.For more information see http://blog.cocoapods.organd the CHANGELOG for this version http://git.io/BaH8pQ.Analyzing dependenciesInspecting targets to integrate  Using `ARCHS` setting to build architectures of target `Pods`: (``)  Using `ARCHS` setting to build architectures of target `Pods-easemobTest`:  (``)Fetching external sources-> Pre-downloading: `HyphenateSDK` from `https://github.com/easemob/hyphenate-cocoapods.git` > Git download > Git download     $ /usr/bin/git clone https://github.com/easemob/hyphenate-cocoapods.git     /var/folders/w9/dzp1bkxx7dx_4h6f0qpwxn9m0000gn/T/d20160518-10513-1wbp9s0     --single-branch --depth 1     Cloning into '/var/folders/w9/dzp1bkxx7dx_4h6f0qpwxn9m0000gn/T/d20160518-10513-1wbp9s0'...  > Copying HyphenateSDK from  `/Users/heqichang/Library/Caches/CocoaPods/Pods/External/HyphenateSDK/1bdd07c79193708b5127dadde32186b8`  to `Pods/HyphenateSDK`Resolving dependencies of `Podfile`Comparing resolved specification to the sandbox manifest  A HyphenateSDKDownloading dependencies-> Installing HyphenateSDK (3.1.2)  - Running pre install hooksGenerating Pods project  - Creating Pods project  - Adding source files to Pods project  - Adding frameworks to Pods project  - Adding libraries to Pods project  - Adding resources to Pods project  - Linking headers  - Installing targets    - Installing target `Pods-easemobTest` iOS 9.3  - Running post install hooks  - Writing Xcode project file to `Pods/Pods.xcodeproj`    - Generating deterministic UUIDs  - Writing Lockfile in `Podfile.lock`  - Writing Manifest in `Pods/Manifest.lock`Integrating client project[!] Please close any current Xcode sessions and use `easemobTest.xcworkspace` for this project from now on.Integrating target `Pods-easemobTest` (`easemobTest.xcodeproj` project)  Adding Build Phase 'Embed Pods Frameworks' to project.  Adding Build Phase 'Copy Pods Resources' to project.  Adding Build Phase 'Check Pods Manifest.lock' to project.  - Running post install hooks    - cocoapods-stats from    `/Library/Ruby/Gems/2.0.0/gems/cocoapods-stats-0.6.2/lib/cocoapods_plugin.rb`Sending stats      - HyphenateSDK, 3.1.2  Pod installation complete! There is 1 dependency from the Podfile and 1 total  pod installed.
解决方案二:
项目工程名就是: easemobTestbuild setting里就设置了 Objective-C Briding Header: easemobTest/easemobTest-Bridging-Header.h

时间: 2024-10-18 11:57:34

环信3.0, ios使用swift直接桥接sdk提示找不到module的相关文章

能不能在ios环信SDK3.0中加入红包功能

问题描述 能不能在ios环信SDK3.0中加入红包功能由于SDK改动太多.好难找到对应的api. 解决方案 暂时for 3.0的红包还没有,先用2.x的SDK吧,群红包啥的都有了

iOS 环信3.0 离线透传信息怎么没了

问题描述 iOS 环信3.0 离线透传信息怎么没了,之前版本好多功能,包括撤回,离线透传回调接口都没了 解决方案 3.x 比较于 2.x的SDK,一些回调方法有所改变,比如说2.x的SDK有接收离线消息和在线消息回调的区分,但是3.x就没有了,都是同一个回调去接收的,接收透传消息的回调也是一样的.3.x SDK:例如接收透传消息回调:- (void)didReceiveCmdMessages:(NSArray *)aCmdMessages;接收消息回调:- (void)didReceiveMes

环信UI2.0集成时userProfileManager.h not found

问题描述 环信UI2.0集成时userProfileManager.h not found视频教程中没有出现这个问题,我自己注释掉或从其它文件夹中添加头文件都会一大堆没完没了的错误. 解决方案 这个类加了吗?demo中在Core Data文件夹下解决方案二:添加了一些头文件后,现在的问题变成了这样解决方案三:parse是一个处理昵称,头像的三方库,如果您不用的话,就将parse相关的删除掉,用的话就把依赖库加上

环信3.0,登录admin帐户失败!

问题描述 Hi, 用环信3.0官方demo, 把appkey, 和push证书换成我们自己的, 我们项目用admin帐号来做系统管理员帐号,用来发系统消息, 想用他来做为管理员账户和用户沟通, 但是使用admin帐号,登录, 结果显示:[2016/6/28 12:54:59:505]: current host: domain: 182.92.228.160 port: 80[2016/6/28 12:54:59:505]: fetchTokenForUser()http://182.92.22

我已经集成好了,环信easeUI3.0的demo,但是聊天界面一直没有显示聊天气泡,应该怎么在界面上添加聊天气泡

问题描述 解决方案 搞定了,只是没有调用EaseBaseMessageCell解决方案二:是android 环信3.0的吗

环信3.0 与高德最新sdk冲突

问题描述 环信3.0 与高德最新SDK在一个项目里成功编译后走到[[EMClient sharedClient] initializeSDKWithOptions:options];或者                    EMError *error = [[EMClient sharedClient] loginWithUsername: password: ];就会奔溃(高德前个版本不会出现这个问题) 解决方案 具体是哪个sdk?

环信3.0 是否支持多人语音通话?

问题描述 环信3.0 是否支持多人语音通话? 解决方案 现在是单对单视频,没有多人视频

环信3.0发图片EMImageMessageBody消息返回Message invalid

问题描述 环信3.0发图片EMImageMessageBody消息返回错误Message invalid 是传入一个image的nsdata类型么?这种转data可以么?  //******* UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage]; NSData *data = UIImagePNGRepresentation(image); //**********EMImageMessageBody

环信3.0是不支持从环信获取好友列表了吗?

问题描述 环信3.0是不支持从环信获取好友列表了吗?一定要有自己的后台服务从自己的后台获取吗? 解决方案 支持啊,参考文档http://docs.easemob.com/doku.p ... dymgm