I am having this problem with a brand new project. This problem happens with both RestKit and Facebook SDK. Strangely SwiftyJSON works just fine. I create a brand new swift
If you're updating Xcode Version 11.0 (11A420a) and nothing else has worked, I recommend updating all libraries to Swift 5.0. This is unfortunately, the only thing that worked for me.
The second option worked for me. In my Project > Info > Configurations, I have 2 targets for my project : the regular one (Quizz) and the test one (QuizzTests):
For the regular one, the configuration was set with "Pods.debug" or "Pods.release" but there was none for QuizzTests. As soon as I filled in the configuration for QuizzTests, everything worked for me.
Does your app build using the primary target?
If so, I was able to get this working by:
pod install
Here is my final Podfile.
platform :ios, '11.3'
target 'myapp' do
use_frameworks!
# Pods for myapp
pod 'KeychainSwift'
pod 'ReachabilitySwift'
pod 'Firebase/Core'
pod 'Fabric'
pod 'Crashlytics'
target 'myappTests' do
inherit! :search_paths
# Pods for testing
end
target 'myappUITests' do
inherit! :search_paths
# Pods for testing
end
target 'myapp-local' do
inherit! :search_paths
# Pods for testing
end
target 'myapp-master' do
inherit! :search_paths
# Pods for testing
end
end
Another potential solution that I found was to add use_frameworks!
to your Podfile if you have not already and then run pod install
again.
It was an issue with Firebase when I added only that pod.
I had the same problem. My solution was to open the project using the .xcworkspace
, not the .xcodeproj
. .xcodeproj
only contains the main project; .xcworkspace
includes everything including Restkit.
For me, deintegrating and re-installing pods fixed the issue.
First
pod deintegrate
and then
pod install