В приложении есть 6 проектов, объединенных в xcworkspace. Я успешно добавил через какаоподы и через терминал с помощью командного модуля RxSwift, RxCocoa, OMGHTTPURLRQ, PromiseKit и SVWebViewController. Проекты без зависимостей могут быть успешно построены. Два проекта (библиотеки) с командой «import RxCocoa» и «import RxSwift» в файлах *.swift завершаются с ошибкой «Нет такого модуля 'RxCocoa'».
Я прочитал несколько сообщений Stackoverflow и документацию RxSwift Git, чтобы решить проблему, но безуспешно.
Снимок экрана с ошибкой сборки и добавленная ссылка
Определение подфайла:
Код: Выделить всё
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.1'
use_frameworks!
target 'CheckMyBus' do
pod "OMGHTTPURLRQ", "~> 3.1.2“
pod "RxSwift", "~> 2.3.0"
pod 'RxCocoa', '~> 2.3.0'
pod 'PromiseKit', '~> 3.2.1'
pod 'SVWebViewController', '~> 0.2‘
endУстановка модулей через терминал:
Код: Выделить всё
MacMinis-Mac-mini:CheckMyBus MacMini$ pod install
Analyzing dependencies
Downloading dependencies
Using OMGHTTPURLRQ (3.1.3)
Using PromiseKit (3.2.1)
Using RxCocoa (2.3.1)
Using RxSwift (2.3.1)
Using SVWebViewController (0.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 5 dependencies from the Podfile and 5 total pods installed.
[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
[!] The `CheckMyBus [Debug]` target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setting defined in `Pods/Target Support Files/Pods-CheckMyBus/Pods-CheckMyBus.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `CheckMyBus [Release]` target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setting defined in `Pods/Target Support Files/Pods-CheckMyBus/Pods-CheckMyBus.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
MacMinis-Mac-mini:CheckMyBus MacMini$ Может ли кто-нибудь мне помочь?
Подробнее здесь: https://stackoverflow.com/questions/420 ... le-rxcocoa
Мобильная версия