I try to use RxSwift in my project. My podfile looks like below, ↓
I got this error:
This is my Link Binary With Libraries status:
I have tried to fix it for over three hours. But the answers on the site don't work for me...
Replace your Podfile like below:
platform :ios, '9.0'
target 'RxStudy' do
use_frameworks!
pod 'RxSwift'
pod 'RxCocoa'
target 'RxStudyTests' do
#Add pod here if you want the access of pod in Tests target.
#Example: pod 'RxSwift'
end
target 'RxStudyUITests' do
#Add pod here if you want the access of pod in Tests target.
#Example: pod 'RxSwift'
end
end
Problem with your Podfile is that you are trying to add the pods in the Tests target and not to actual project target. After changing the file as above install the Pods again and then run the project even if you get "No such module error" because it might happen for the first time.
You are inserting the pods in the tests target, not in the project target.
To solve this problem move the pods to the project target as below:
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
target 'RxStudy' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for ProjectName
# Insert your pods here
pod 'RxSwift'
pod 'RxCocoa'
target 'RxStudyTests' do
inherit! :search_paths
# Pods for testing
end
target 'RxStudyUITests' do
inherit! :search_paths
# Pods for testing
end
end
inherit! :search_paths
did the trick for me! Thank you!
Commented
Dec 6, 2020 at 12:38
RxStudyTests
, but not in the regular targets, especially not in the targetRxStudy
(or even better: all targets)