No such module 'RestKit' with cocoapods and swift

后端 未结 25 2124
再見小時候
再見小時候 2020-12-01 02:34

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

相关标签:
25条回答
  • 2020-12-01 03:08

    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.

    0 讨论(0)
  • 2020-12-01 03:09

    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): enter image description here

    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.

    0 讨论(0)
  • 2020-12-01 03:09

    Does your app build using the primary target?

    If so, I was able to get this working by:

    1. Adding an entry for every target in the Podfile
    2. Run 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
    
    0 讨论(0)
  • 2020-12-01 03:10

    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.

    0 讨论(0)
  • 2020-12-01 03:14

    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.

    0 讨论(0)
  • 2020-12-01 03:15

    For me, deintegrating and re-installing pods fixed the issue.

    First

    pod deintegrate
    

    and then

    pod install
    
    0 讨论(0)
提交回复
热议问题