No such module 'RestKit' with cocoapods and swift

后端 未结 25 2252
再見小時候
再見小時候 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: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
    

提交回复
热议问题