8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Xcode 7.3 Cocoapods "Could not build module" の対処法

Posted at

SwiftでかかれたライブラリをObjective-Cで使おうとして、Could not build moduleエラーが出ました(Xcode 7.3 Cocoapods 0.39.0 にて)。

Screen Shot 2016-04-02 at 8.14.58 PM.png

対処法

Allow Non-modular Includes In Framework Modulesの値をYesにします。

Screen Shot 2016-04-02 at 8.15.54 PM.png

Podfile

そのエラーがでた時の設定を書いておきます。

platform:ios, '9.0'
use_frameworks! # Swiftのライブラリを使うための記述

def main
  pod 'ReactiveCocoa', '~> 4.1'
end

# ReactiveCocoaTestというプロジェクト名にライブラリを読み込む
target 'ReactiveCocoaTest' do
  main
end

Screen Shot 2016-04-02 at 8.17.10 PM.png

参照

Can't build after cocoapods install when use_frameworks is enabled #2
:link: https://github.com/ParsePlatform/ParseFacebookUtils-iOS/issues/2

8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?