注册

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

步骤:
1,用pod导入sdk
2,建立桥接文件,写入#import
3,设置好工程的build setting里桥接文件的位置
4,在appDelegate.swift里写 import EMSDK,提示找不到module,import HyphenateSDK 也一样
已邀请:
@lizilong:
项目工程名就是: easemobTest
build setting里就设置了 Objective-C Briding Header: easemobTest/easemobTest-Bridging-Header.h
 
xcode 版本7.3, pod 版本0.39 ,pod install --verbose 明细如下:
easemobTest pod install --verbose

  Preparing




Updating local specs repositories




Updating 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.json




CocoaPods 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.org

and the CHANGELOG for this version http://git.io/BaH8pQ.







Analyzing dependencies




Inspecting 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 HyphenateSDK




Downloading dependencies




-> Installing HyphenateSDK (3.1.2)

  - Running pre install hooks




Generating 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.
项目工程名就是: easemobTest
build setting里就设置了 Objective-C Briding Header: easemobTest/easemobTest-Bridging-Header.h

要回复问题请先登录注册